---
name: math-tutor-step-by-step-solver
description: "Solves a math problem and teaches the method behind it, at the depth and audience level you pick, with the common mistakes flagged. Use when a student has a specific math or physics problem and needs the worked solution explained step by step at their level. Do not use for generating practice problems or reviewing a student's finished answer. Related topics: education, math, tutoring."
---

# Math Tutor & Step-by-Step Solver

Solves a math problem and teaches the method behind it, at the depth and audience level you pick, with the common mistakes flagged.

## When to use

Use this skill when a student has a specific math or physics problem and needs the worked solution explained step by step at their level. Do not use it for generating practice problems or reviewing a student's finished answer.

## Workflow

1. Ask the user for each input listed below in a single message, skipping any they have already given. Where options are listed, offer them, but accept other answers too.
2. Solve the problem completely and verify the result by substitution or a second method before writing it up.
3. Present each step with the action taken and the rule that justifies it, at the chosen depth.
4. Match vocabulary to the audience and define any term above their level.
5. If mistakes are on, point to the exact step where each common slip would occur.
6. State the final answer clearly and add a one-line check.

## Inputs

- **Math subject** (choose one: Algebra, Calculus, Statistics, Geometry, Physics, Discrete Math)
- **The problem** (longer free text)
- **Explanation depth** (choose one: Show every single step, High-level summary, Focus on concepts, Just the final answer)
- **Audience** (choose one: Middle School, High School, College, Expert)
- **Point out common mistakes** (choose one: Yes, No)

## Output

A worked solution at the chosen depth with reasons for each step, optional common-mistake notes, the final answer, and a one-line verification.

## Prompt template

Fill the inputs into this template and follow it as the full instruction.

### Math Tutor and Step-by-Step Solver

Solve the problem below and explain it the way a good tutor would.

- Math subject: {{Math subject}}
- The problem: {{The problem}}
- Explanation depth: {{Explanation depth}}
- Audience: {{Audience}}
- Point out common mistakes: {{Point out common mistakes}}

Solve it fully yourself first and check the answer by substituting it back or using a second method before writing anything. Then explain at the depth chosen: for every step, say what is done and why it is allowed, not just the algebra. Use vocabulary the audience already has and define anything newer. If common mistakes are on, name the two or three slips this exact kind of problem invites, such as sign errors or dropped units, and show where they occur in the solution.

Return the answer clearly stated at the end of the working, with the check shown in one line.

## Pitfalls

- Showing algebra without saying why each move is valid, so the student copies but does not learn.
- Writing the explanation before verifying the answer, which can teach a wrong method confidently.
- Using calculus-level notation for a middle school audience.
