Find period of the following function

514 Views Asked by At

Find period of :

$$f(x)=| \sin(x) + \cos(x) |$$

Attempt: Let $$f(x)=|\sin x +\cos x|\tag{I}$$ Let $t$ be the required period, So,

$f(x)=f(x+t)$

Putting $x=0$ we get,

$f(0)=f(t)$

f(0)=1 (from 'I')

Now we have the following,

$1=| \sin t + \cos t |$

If we put $t=\pi/2$ ,that would satisfy the equation. But when I put $t=\pi/2$ in $f(x+t)$,

I do not get $f(x)$ ,that means $\pi/2$ is not the period of the function. What I have done wrong?

4

There are 4 best solutions below

2
On BEST ANSWER

$$f(x)=| \sin(x) + \cos(x) | =\sqrt{2}\Big|\sin(x+{\pi\over 4})\Big|$$

Now $$f(x+\pi) = \sqrt{2}\Big|\sin(x+{\pi\over 4}+\pi)\Big| = \sqrt{2}\Big|\sin(\pi-(x+{\pi\over 4}+\pi))\Big|$$ $$=\sqrt{2}\Big|\sin(-x-{\pi\over 4})\Big|= \sqrt{2}\Big|-\sin(x+{\pi\over 4})\Big|=f(x)$$

So the peroid of $f$ is $\pi$.

8
On

Write $\sin(x) + \cos(x)=K\sin(x+\theta)=\sqrt{2}\sin(x+\frac{\pi}{4})$. Hint: expanding the right hand side. $\pi$ is the period of $f(x)=|\sqrt{2}\sin(x+\frac{\pi}{4})|$ because $\sin(x)$ is positive in $(2m\pi,(2m+1)\pi)$, negative in $((2m+1)\pi,2(m+1)\pi)$ for some $m\in\mathbb{Z}$.

$|\sin(x)|$ then has period $\pi$ as the negative part becomes positive. Note that $f(x)=|\sin(x) + \cos(x)|=|\sqrt{2}\sin(x+\frac{\pi}{4})|$ is just a scaled and shifted version of $|\sin(x)|$.

2
On

Let's assume you do not know the shape of the graphs but want to find the period. We will assume that you can evaluate the functions and know the sum and difference formulas for sine and cosine. \begin{eqnarray} |\sin x+\cos x|&=&|\sin(x+t)+\cos(x+t)|\\ &=&|\sin x\cos t+\cos x\sin t+\cos x\cos t-\sin x\sin t|\\ &=&|\sin x\cos t+\cos x\sin t+\cos x\cos t+\sin x\sin t-2\sin x\sin t|\\ &=&|(\sin x+\cos x)(\sin t+\cos t)-2\sin x\sin t| \end{eqnarray}

Since $\sin\pi=0$ and $\cos\pi=-1$we see that when $t=\pi$ we get

$$|(\sin x+\cos x)(\sin \pi+\cos \pi)-2\sin x\sin \pi|=|-(\sin x+\cos x)|$$

But $|-(\sin x+\cos x)|=|\sin x+\cos x|=f(x)$

0
On

Another approach: $\mid \sin x + \cos x\mid$ will have the same period as $(\sin x + \cos x)^2 = 1 + \sin{2x}$. Period of $\sin{2x} = 2\pi/2 = \pi$