Linear trigonometric equation $\sin(x)=\cos(x)$

112 Views Asked by At

I was solving an apparently simple equation but then it turned out I missed one of the solutions that somebody else find using another method.

$\cos x=\sin x$ was the problem.

I tried the associated angle method, so $\sin(x)=\cos\left(\frac{\pi}{2} - x\right)$. Performing the substitution I could equal the argument of Cos and solve the equation in $x$. It turned out I missed $5\pi/4 $ and I cannot understand why. Can somebody explain me the right way to use this method?

4

There are 4 best solutions below

1
On

So, we have $\dfrac\pi2-x=2n\pi\pm x$ where $n$ is any integer

0
On

$$\frac{\pi}{2} -x = x+ k2\pi$$ $$ -2x= -\frac{\pi}{2} +k2\pi$$ $$x= \frac{\pi}{4} - k\pi$$ Which for any integer $k$ , would give the correct result.

1
On

Indeed, $\sin(x) = \cos(\frac\pi2 -x )$, therefore $\sin(x)=\cos(x)$ is equivalent to $\cos(\frac\pi2 -x ) = \cos(x)$.

However, note that trigonometric functions are periodic with a period of $2\pi$ and that cosine is an even function, i.e. $$\cos(x) = \cos(x + 2\pi k), \quad k \in \mathbb Z$$ and $$\cos(x) = \cos (-x),$$ or together $$\cos(x) = \cos(\pm x + 2\pi k), \quad k \in \mathbb Z.$$

Using this, $\sin(x)=\cos(x)$ becomes $$\frac\pi2 - x = \pm x + 2\pi k, \quad k \in \mathbb Z.$$

After rearranging, this finally becomes $$x = \left(n + \frac14\right)\pi, \quad k \in \mathbb Z.$$

0
On

Assume $\sin x = \cos x$.

If $\cos x = 0$ then $\sin^2x + \cos^2 x = 1 $ implies $\sin x = \pm 1$, which is a contradiction.

Therefore certainly $\cos x \ne 0$ so $\sin x = \cos x$ implies $\tan x = \frac{\sin x}{\cos x} = 1$. Therefore $$x = \frac{\pi}4 + k\pi, \quad k \in \mathbb{Z}$$