Equation Solver

Solve any algebraic equation with AI-powered step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
sqrt(2x + 1) = x - 1
2^x = 32
|3x - 2| = 7
(x + 1)/(x - 2) = 3

What is an Equation?

An equation is a mathematical statement asserting that two expressions are equal, connected by the == sign:

left side=right side\text{left side} = \text{right side}

Solving an equation means finding all values of the variable(s) that make the statement true. These values are called solutions or roots.

Equations come in many types:

  • Linear: 3x+2=113x + 2 = 11
  • Quadratic: x24x+3=0x^2 - 4x + 3 = 0
  • Rational: x+1x2=3\frac{x+1}{x-2} = 3
  • Radical: 2x+1=x1\sqrt{2x+1} = x - 1
  • Exponential: 2x=322^x = 32
  • Logarithmic: log2(x)=5\log_2(x) = 5
  • Absolute value: 3x2=7|3x - 2| = 7
  • Trigonometric: sin(x)=12\sin(x) = \frac{1}{2}

This general-purpose solver handles all these types and more, choosing the appropriate method based on the equation's structure. Unlike specialized solvers (for just linear or just quadratic), this tool identifies the equation type and applies the best strategy automatically.

How to Solve Different Types of Equations

1. Rational Equations

Multiply both sides by the LCD, solve the resulting polynomial, then check for extraneous solutions (values that make a denominator zero).

Example: x+1x2=3\frac{x+1}{x-2} = 3

  1. Multiply both sides by (x2)(x-2): x+1=3(x2)x + 1 = 3(x-2)
  2. x+1=3x6x + 1 = 3x - 62x=7-2x = -7x=72x = \frac{7}{2}
  3. Check: x=722x = \frac{7}{2} \neq 2

2. Radical Equations

Isolate the radical, then square (or raise to appropriate power) both sides. Always verify solutions.

Example: 2x+1=x1\sqrt{2x+1} = x - 1

  1. Square both sides: 2x+1=(x1)2=x22x+12x + 1 = (x-1)^2 = x^2 - 2x + 1
  2. Rearrange: x24x=0x^2 - 4x = 0x(x4)=0x(x-4) = 0x=0x = 0 or x=4x = 4
  3. Check x=0x = 0: 1=1\sqrt{1} = -1? No! Extraneous.
  4. Check x=4x = 4: 9=3\sqrt{9} = 3

3. Exponential Equations

If bases can be matched, equate exponents. Otherwise, take logarithms.

Example: 2x=32=252^x = 32 = 2^5x=5x = 5

4. Absolute Value Equations

Split into two cases: the expression inside equals +c+c or c-c.

Example: 3x2=7|3x - 2| = 7

  • Case 1: 3x2=73x - 2 = 7x=3x = 3
  • Case 2: 3x2=73x - 2 = -7x=53x = -\frac{5}{3}

5. Logarithmic Equations

Convert to exponential form or use log properties to combine.

Example: log2(x)=5\log_2(x) = 5x=25=32x = 2^5 = 32

Equation TypeStrategyWatch For
RationalMultiply by LCDExtraneous solutions (denominator = 0)
RadicalIsolate & squareExtraneous solutions (squaring inequality)
ExponentialMatch bases or take logDomain: base > 0
Absolute ValueSplit into casesNo solution if equals a negative
LogarithmicConvert to exponentialDomain: argument > 0

Common Mistakes to Avoid

  • Not checking for extraneous solutions: Squaring both sides or multiplying by variable expressions can introduce false solutions. Always substitute back into the original equation.
  • Forgetting domain restrictions: Logarithms require positive arguments; square roots require non-negative radicands; fractions require non-zero denominators.
  • Dropping solutions with absolute value: x=5|x| = 5 has TWO solutions (x=5x = 5 and x=5x = -5). Do not forget the negative case.
  • Incorrect log/exponential manipulation: log(a+b)log(a)+log(b)\log(a+b) \neq \log(a) + \log(b). The log of a sum is NOT the sum of logs.
  • Dividing by a variable without checking if it's zero: If you divide both sides by xx, you might lose the solution x=0x = 0.

Examples

Step 1: Square both sides: 2x+1=(x1)2=x22x+12x + 1 = (x-1)^2 = x^2 - 2x + 1
Step 2: Rearrange: x24x=0x^2 - 4x = 0, so x(x4)=0x(x - 4) = 0, giving x=0x = 0 or x=4x = 4
Step 3: Check: x=0x = 01=1\sqrt{1} = -1 (false, extraneous); x=4x = 49=3\sqrt{9} = 3
Answer: x=4x = 4

Step 1: Case 1: 3x2=73x - 2 = 73x=93x = 9x=3x = 3
Step 2: Case 2: 3x2=73x - 2 = -73x=53x = -5x=53x = -\frac{5}{3}
Step 3: Both values satisfy the original equation ✓
Answer: x=3x = 3 or x=53x = -\frac{5}{3}

Step 1: Multiply both sides by (x2)(x - 2): x+1=3(x2)=3x6x + 1 = 3(x - 2) = 3x - 6
Step 2: Solve: x+1=3x6x + 1 = 3x - 62x=7-2x = -7x=72x = \frac{7}{2}
Step 3: Check domain: x=722x = \frac{7}{2} \neq 2
Answer: x=72x = \frac{7}{2}

Frequently Asked Questions

An extraneous solution is a value that emerges from the solving process but does not satisfy the original equation. It typically appears when you square both sides or multiply by variable expressions. Always check your answers in the original equation.

Look at the structure of the equation. If it has fractions with x in the denominator, it is rational. If it has square roots containing x, it is radical. If x is in an exponent, it is exponential. Each type has a standard approach: multiply by LCD, square both sides, or take logarithms.

Yes. For example, |x| = -3 has no solution because absolute value is never negative. Similarly, sqrt(x) = -2 has no solution because square roots are never negative. Rational equations can also have no valid solution if all candidates are extraneous.

An equation has an equals sign and asks you to find values that make it true. An expression has no equals sign — it is just a mathematical phrase like 3x + 2 that you can simplify or evaluate but not solve.

Related Solvers

LinearQuadraticPolynomialSystem of equationsInequality
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving