Equation Solver

Solve any equation for x, or a system of linear equations, with each step explained.

Answer

Rational equation
x1=32−52,x2=52+32x_{1} = \frac{3}{2} - \frac{\sqrt{5}}{2},\quad x_{2} = \frac{\sqrt{5}}{2} + \frac{3}{2}

Approximately 0.381966; 2.61803

Checked numerically before it is shown

Step-by-step solution

  1. Domain

    Values that make a denominator zero are excluded:

    x≠0x \ne 0
  2. Multiply by the common denominator

    Multiply both sides by the common denominator xx:

    x2+1=3xx^{2} + 1 = 3 x
  3. Solve the polynomial

    Solve the resulting polynomial equation:

    x2−3x+1=0x^{2} - 3 x + 1 = 0
  4. Coefficients

    Read off the coefficients:

    a=1,b=−3,c=1a = 1,\quad b = -3,\quad c = 1
  5. Discriminant

    Compute the discriminant:

    Δ=b2−4ac=9−4⋅1⋅1=5\Delta = b^{2} - 4ac = 9 - 4 \cdot 1 \cdot 1 = 5
  6. Positive discriminant

    The discriminant 55 is positive: two real solutions.

  7. Quadratic formula

    Apply the quadratic formula:

    x=−b±Δ2a=3±52x = \frac{-b \pm \sqrt{\Delta}}{2a} = \frac{3 \pm \sqrt{5}}{2}
  8. Two solutions

    Take the + sign and the − sign in turn:

    x1=3+52=52+32,x2=3−52=32−52x_{1} = \frac{3 + \sqrt{5}}{2} = \frac{\sqrt{5}}{2} + \frac{3}{2},\quad x_{2} = \frac{3 - \sqrt{5}}{2} = \frac{3}{2} - \frac{\sqrt{5}}{2}
  9. Candidate solutions

    x=32−52,x=52+32x = \frac{3}{2} - \frac{\sqrt{5}}{2},\quad x = \frac{\sqrt{5}}{2} + \frac{3}{2}

Check

  • (32−52)+1(32−52)=3  ✓\left(\frac{3}{2} - \frac{\sqrt{5}}{2}\right) + \frac{1}{\left(\frac{3}{2} - \frac{\sqrt{5}}{2}\right)} = 3\;\checkmark
  • (52+32)+1(52+32)=3  ✓\left(\frac{\sqrt{5}}{2} + \frac{3}{2}\right) + \frac{1}{\left(\frac{\sqrt{5}}{2} + \frac{3}{2}\right)} = 3\;\checkmark

Try an example

Solved examples

About this solver

How to use

  1. Type the equation with an equals sign, for example 2x^2+7x+3=0.
  2. For a system, separate the equations with a comma: 2x+y=5, x-y=1.
  3. Press Solve. Solutions that do not satisfy the original equation are listed as rejected.

How to type math

To enterType
Powerx^2 x^(n+1)
Rootsqrt(x) \sqrt[3]{x}
Fraction(x+1)/(x-1) \frac{1}{x}
Functionssin(x) ln(x) log_2(x) exp(x)
Absolute value|x| abs(x)
Derivatived/dx x^2 sin x (x^2+x)'
Integral\int x^2 dx \int_0^1 x^2 dx
Limitlim x->0 sin(x)/x \lim_{x\to\infty} 1/x
Degreessin(30°)
System of equations2x+y=5, x-y=1

How it works

Linear and quadratic equations are solved by moving terms and by the quadratic formula with the discriminant.

Equations with fractions, roots, logarithms or absolute values are reduced to simpler ones. Every candidate is substituted into the original equation, and candidates outside the domain are rejected.

For systems, separate the equations with a comma, for example 2x+y=5, x-y=1.

Frequently asked questions

Does it give complex solutions?

Yes, for polynomial equations. Equations with roots, logarithms or absolute values are solved over the real numbers.

Why is a solution rejected?

Squaring both sides or clearing fractions can add values that do not satisfy the original equation. They are checked and rejected.

Can it solve systems of equations?

Yes, linear systems with two or three unknowns. Separate the equations with commas.

What if the equation has no solution?

The answer says so, and the steps show why.