# Equation Solver

Source: https://calcsolve.org/equation-solver

Enter an equation and get x with every step: isolating the variable, factoring, the quadratic formula, rational roots, logarithms and more.

## Types of equations this solver handles

| Type | Example | Main method |
| --- | --- | --- |
| Linear | 3(x − 2) = 2x + 4 | Expand, collect like terms, isolate x |
| Quadratic | 2x² + 3x − 4 = 0 | Factoring or the quadratic formula |
| Cubic / polynomial | x³ − 6x² + 11x − 6 = 0 | Rational root test, then factor |
| Rational | 1/(x−1) + 2 = 3/(x−1) | Clear denominators, then check for excluded values |
| Radical | √(2x+1) = x − 1 | Square both sides, then check every answer |
| Exponential and log | 2^x = 32, ln(x) = 2 | Take logarithms or exponentiate |
| Trigonometric | 2sin(x) = 1 | Inverse trig, then all solutions in the interval |
| Absolute value | |2x − 3| = 7 | Split into two cases |

## Worked example: a linear equation

### Solve 3(x − 2) = 2x + 4

1. Expand the bracket: 3x − 6 = 2x + 4.
2. Subtract 2x from both sides: x − 6 = 4.
3. Add 6 to both sides: x = 10.
4. Check: 3(10 − 2) = 24 and 2(10) + 4 = 24, so both sides match.

**Answer:** x = 10

## Worked example: the quadratic formula

### Solve 2x² + 3x − 4 = 0

1. Here a = 2, b = 3 and c = −4.
2. Discriminant: b² − 4ac = 9 + 32 = 41, which is positive but not a perfect square, so the roots are real and irrational.
3. Apply x = (−b ± √D) / 2a = (−3 ± √41) / 4.
4. With √41 ≈ 6.403 the two values are about 0.851 and −2.351.

**Answer:** x = (−3 ± √41)/4 ≈ 0.851 or −2.351

## Extraneous solutions: why checking matters

Squaring both sides of an equation can create answers that do not satisfy the original. Radical and rational equations are the usual culprits.

### Solve √(2x + 1) = x − 1

1. Square both sides: 2x + 1 = x² − 2x + 1.
2. Rearrange: x² − 4x = 0, so x(x − 4) = 0 and x = 0 or x = 4.
3. Test x = 0: √1 = 1, but x − 1 = −1. This fails.
4. Test x = 4: √9 = 3 and x − 1 = 3. This works.

**Answer:** x = 4 (x = 0 is extraneous)

## Solving for a different letter

Formulas are equations too. To rearrange A = P(1 + rt) for t, divide by P, subtract 1, then divide by r to get t = (A/P − 1)/r. Choose the variable in the options, or type “solve A = P(1 + rt) for t”.

## Solve for r: rearranging common formulas

“Solve for r” means get r alone on one side of the formula. Treat every other letter as a number and undo the operations around r in reverse order.

| Formula | Solved for r | Operations undone |
| --- | --- | --- |
| C = 2πr (circumference) | r = C / 2π | Divide by 2π |
| A = πr² (area of a circle) | r = √(A / π) | Divide by π, then take the square root |
| I = Prt (simple interest) | r = I / (Pt) | Divide by P and by t |
| V = ⅓πr²h (cone volume) | r = √(3V / πh) | Multiply by 3, divide by πh, square root |

### Solve I = Prt for r when I = 150, P = 2000 and t = 3

1. Divide both sides by Pt: r = I / (Pt).
2. Substitute: r = 150 / (2000 × 3) = 150 / 6000.
3. Simplify: r = 0.025, which is 2.5%.

**Answer:** r = 0.025 (2.5% a year)

## When there is no neat answer

Equations such as x = cos(x) have no algebraic solution. The solver then uses Newton's method, shows the iterations and clearly labels the result as a numerical approximation.

## Frequently asked questions

### Can it solve for a letter other than x?

Yes. Choose the variable in the options, or type “solve A = P(1 + rt) for t”.

### What if there is no exact answer?

The solver switches to Newton's method and gives accurate decimal solutions, with the iterations shown.

### How do I know if my equation has no solution?

If the variable cancels and you are left with a false statement such as 3 = 5, there is no solution. If it cancels to a true statement such as 4 = 4, every real number is a solution.

### Does the solver find complex roots?

Yes. When the discriminant is negative, for example in x² + 2x + 5 = 0, the answer is given as complex numbers: x = −1 ± 2i.
