Algebra · real student question

Write 2x + x^2 - 1 in standard form and solve 2x + x^2 - 1 = 0.

Question

Write

2x+x212x+x^{2}-1

in standard form and solve 2x+x21=02x+x^{2}-1=0.

Step-by-step solution

  1. Reorder into standard form. Standard form lists terms by descending degree, which is what every quadratic method assumes:

    2x+x21=x2+2x12x+x^{2}-1=x^{2}+2x-1

    so a=1a=1, b=2b=2, c=1c=-1. Reordering changes nothing about the value — addition is commutative — but it prevents misreading 22 as the leading coefficient.

  2. Check for integer factoring, then discard it. Two integers with product 1-1 and sum 22 would be needed; the only integer pair for 1-1 is (1,1)(1,-1), whose sum is 00. So no integer factorisation exists and the roots are irrational.

  3. Complete the square — quicker than the formula when bb is even. Half of b=2b=2 is 11, so

    x2+2x1=(x+1)211=(x+1)22x^{2}+2x-1=(x+1)^{2}-1-1=(x+1)^{2}-2

    Setting this to zero gives (x+1)2=2(x+1)^{2}=2, a form that can be solved by inspection.

  4. Take square roots, keeping both signs.

    x+1=±2x=1±2x+1=\pm\sqrt{2}\qquad\Longrightarrow\qquad x=-1\pm\sqrt{2}

  5. Cross-check with the quadratic formula.

    x=2±4+42=2±222=1±2 x=\frac{-2\pm\sqrt{4+4}}{2}=\frac{-2\pm2\sqrt{2}}{2}=-1\pm\sqrt{2}\ \checkmark

    (Using 8=22\sqrt{8}=2\sqrt2 so the 22 cancels.) Vieta confirms it too: the roots sum to 2=b/a-2=-b/a ✓ and multiply to 12=1=c/a1-2=-1=c/a ✓. Numerically x0.4142x\approx0.4142 and x2.4142x\approx-2.4142, residuals below 101210^{-12} ✓.

Answer

x=1+2orx=12x=-1+\sqrt{2}\quad\text{or}\quad x=-1-\sqrt{2}

Need to solve a different problem like this? Open the solver →