Period of a function?

798 Views Asked by At

I am trying to find out the period of a function but this function is giving me a different answer from what I expected: \begin{equation*} f(x) = |\sin x| + |\cos x| . \end{equation*} I know that to find the period of $\sin$ and $\cos$ we use the formula $2\pi/ |n|$ , where $n$ is the co-efficient of $x$ . Since, this question contains absolute value of sin n cos , so there respective periods will get cut in half . So , according to me the answer of this question should be $\pi$ but it is not. It's answer is $\pi/2$. Please explain. Thanks !

1

There are 1 best solutions below

0
On BEST ANSWER

Indeed the period of $|\sin x|$ is $\pi$, and the period of $|\cos x|$ is also $\pi$. This means that, for every $x$, you have

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

so it would seem like $\pi$ is the period of $f$, right?

Wrong. The period of a function is defined as the smallest constant for which $f(x+c)=f(x)$ for all values of $x$. That is why the function $\sin x$ has a period of $2\pi$ and not, say, $26\pi$, even though we know that $\sin(x+26\pi)=\sin x$ for all values of $x$.

This means that you still have to find the period of $f$. You only know that the period will be some fraction of $\pi$ (because $\pi$ is a "candidate period"), but you did not exclude the possibility that the period is $\frac\pi n$ for some $n$.

In order to see what the actual period of $f$ is, I advise you to plot your function on $[0,\pi]$. First, plot it on $[0,\frac\pi 2]$, where $\sin x, \cos x\geq 0$, then on $\frac\pi2, \pi]$, where $\cos x \leq 0$