I'm an adult, independent student working through calculus, trying my hand at trigonometric integrals, digressing with a bit of trigonometry practice, and so playing with the equation $\cos(x) + \sin(x) = 1$. I feel like the following transformations of said equation are all valid, but the result is incorrect. Can someone identify the invalid inference for me?
\begin{align} \cos(x) + \sin(x) &= 1 \\ (\cos(x) + \sin(x))^2 &= 1^2 \\ \cos^2(x) + 2\sin(x)\cos(x)+ \sin^2(x) &= 1 \\ 2\sin(x)\cos(x) + (\sin^2(x) + \cos^2(x)) &= 1 \\ 2\sin(x)\cos(x) + 1 &= 1 \\ 2\sin(x)\cos(x) + 1 -1 &= 1 -1 \\ 2\sin(x)\cos(x) &= 0 \\ \frac{2\sin(x)\cos(x)}{2} &= \frac{0}{2} \\ \sin(x)\cos(x) &= 0 \end{align}
Therefore, $x = \frac{\pi}{2}n$ because at each $\frac{\pi}{2}$ either $\sin(x) \lor \cos(x) = 0$
That said, the graph of $\cos(x) + \sin(x) - 1$ clearly doesn't agree with this outcome; so, I must have made some invalid inference in my trigonometric transformations.
Please forgive the distraction from what is obviously a more serious mathematics discussion than is suggested by this problem, but you know, a fellow seeks help where he can.
Thanks very much in advance, P