# Math Help - how to factor this

1. ## how to factor this

0=2cos^2x + 2*sqrt2 * cos x + 1

When I tried the quadratic formula, the discriminant was equal to zero. So i know this can be factored, but i do not know how to deal with sqrt2.

2. ## Re: how to factor this

\displaystyle \begin{align*} 0 &= 2\cos^2{(x)} + 2\sqrt{2}\cos{(x)} + 1 \\ 0 &= \cos^2{(x)} + \sqrt{2}\cos{(x)} + \frac{1}{2} \\ 0 &= \cos^2{(x)} + \sqrt{2}\cos{(x)} + \left( \frac{\sqrt{2}}{2} \right) ^2 - \left( \frac{\sqrt{2}}{2} \right) ^2 + \frac{1}{2} \\ 0 &= \left[ \cos{(x)} + \frac{\sqrt{2}}{2} \right] ^2 - \frac{1}{2} + \frac{1}{2} \\ 0 &= \left[ \cos{(x)} + \frac{\sqrt{2}}{2} \right] ^2 \end{align*}

3. ## Re: how to factor this

Wow nice!!!, I have a question, how did you know to add and subtract the (sqrt2 / 2)^2 ?? Is it from experience?

4. ## Re: how to factor this

Completing the Square.