Skip to main content
Factor
Tick mark Image
Evaluate
Tick mark Image
Graph

Similar Problems from Web Search

Share

factor(2x-x^{2}+1)
Combine x and x to get 2x.
-x^{2}+2x+1=0
Quadratic polynomial can be factored using the transformation ax^{2}+bx+c=a\left(x-x_{1}\right)\left(x-x_{2}\right), where x_{1} and x_{2} are the solutions of the quadratic equation ax^{2}+bx+c=0.
x=\frac{-2±\sqrt{2^{2}-4\left(-1\right)}}{2\left(-1\right)}
All equations of the form ax^{2}+bx+c=0 can be solved using the quadratic formula: \frac{-b±\sqrt{b^{2}-4ac}}{2a}. The quadratic formula gives two solutions, one when ± is addition and one when it is subtraction.
x=\frac{-2±\sqrt{4-4\left(-1\right)}}{2\left(-1\right)}
Square 2.
x=\frac{-2±\sqrt{4+4}}{2\left(-1\right)}
Multiply -4 times -1.
x=\frac{-2±\sqrt{8}}{2\left(-1\right)}
Add 4 to 4.
x=\frac{-2±2\sqrt{2}}{2\left(-1\right)}
Take the square root of 8.
x=\frac{-2±2\sqrt{2}}{-2}
Multiply 2 times -1.
x=\frac{2\sqrt{2}-2}{-2}
Now solve the equation x=\frac{-2±2\sqrt{2}}{-2} when ± is plus. Add -2 to 2\sqrt{2}.
x=1-\sqrt{2}
Divide -2+2\sqrt{2} by -2.
x=\frac{-2\sqrt{2}-2}{-2}
Now solve the equation x=\frac{-2±2\sqrt{2}}{-2} when ± is minus. Subtract 2\sqrt{2} from -2.
x=\sqrt{2}+1
Divide -2-2\sqrt{2} by -2.
-x^{2}+2x+1=-\left(x-\left(1-\sqrt{2}\right)\right)\left(x-\left(\sqrt{2}+1\right)\right)
Factor the original expression using ax^{2}+bx+c=a\left(x-x_{1}\right)\left(x-x_{2}\right). Substitute 1-\sqrt{2} for x_{1} and 1+\sqrt{2} for x_{2}.
2x-x^{2}+1
Combine x and x to get 2x.