Algebra · real student question

Solve the equation x^2 = 2x + 17.

Question

Solve

x2=2x+17x^{2}=2x+17

Step-by-step solution

  1. Rearrange to standard form. Subtract 2x2x and 1717 from both sides so that one side is zero:

    x22x17=0x^{2}-2x-17=0

    so a=1a=1, b=2b=-2, c=17c=-17. Both moved terms change sign.

  2. Compute the discriminant.

    Δ=(2)24(1)(17)=4+68=72\Delta=(-2)^{2}-4(1)(-17)=4+68=72

    Since Δ=72>0\Delta=72>0 there are two distinct real roots. It is not a perfect square, so factoring over the integers is impossible — no pair of integers multiplies to 17-17 and adds to 2-2, as 1717 is prime.

  3. Apply the quadratic formula.

    x=(2)±722(1)=2±722x=\frac{-(-2)\pm\sqrt{72}}{2(1)}=\frac{2\pm\sqrt{72}}{2}

  4. Simplify the radical before cancelling. Extract the largest square factor: 72=36272=36\cdot2, so 72=62\sqrt{72}=6\sqrt{2}. Then

    x=2±622=2(1±32)2=1±32x=\frac{2\pm6\sqrt{2}}{2}=\frac{2\left(1\pm3\sqrt{2}\right)}{2}=1\pm3\sqrt{2}

    Leaving 72\sqrt{72} unsimplified hides the common factor 22 and blocks the clean cancellation.

  5. Verify both roots. Vieta: the sum should be b/a=2-b/a=2, and (1+32)+(132)=2\left(1+3\sqrt2\right)+\left(1-3\sqrt2\right)=2 ✓. The product should be c/a=17c/a=-17, and 12(32)2=118=171^{2}-\left(3\sqrt2\right)^{2}=1-18=-17 ✓. Numerically x5.2426x\approx5.2426 and x3.2426x\approx-3.2426, both giving residuals below 101110^{-11} in x22x17x^{2}-2x-17 ✓.

Answer

x=1+32orx=132x=1+3\sqrt{2}\quad\text{or}\quad x=1-3\sqrt{2}

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