To find roots of given equation

51 Views Asked by At

If $f(x)=x^2$ and $g(x)=x\sin(x)+\cos(x)$ then i have to find number of points$(x)$ such that $f(x)=g(x)$

I write $h(x)=f(x)-g(x)$. So $h(x)=x^2-x\sin(x)-\cos(x)$

$h'(x)=x(2-\cos(x))$. Since $2-\cos x$ is bounded so By taking limits as $x$ goes to plus and minus infinity $h'(x)$ goes to plus and minus infinity.which means $h$ has root in between. I am not sure

2

There are 2 best solutions below

0
On BEST ANSWER

Note that $h(0)=-1\neq 0$. Therefore, in case of $x$ is a root of $h$, then $x>0$ or $x<0$. Also, $\lim_{x\to\pm\infty}h(x)=\pm\infty$ (Prove it!)...(*)

If $x>0$, then $h^\prime(x)>0$, so $h$ is an increasing function on $(0,\infty)$, anb by continuity, also it is on $[0,\infty)$. But $h(0)<0$ and using (*) we conclude that there is a unique root of $h$ in $(0,\infty)$ (Intermediate Value Theorem and monotonicity).

Finally, an analogous argument shows that there is a unique root of $h$ in $(-\infty,0)$. Another way to conclude this is noting that $h$ is an even function.

Conclusion: there are exactly two roots of $h$.

0
On

Clearly $h'(x)=x(2-\cos x)$ and $\cos x \leq1 \Rightarrow 2-\cos x >0$ for each $x \in \mathbb R$.

Thus $h'(x)=0$ if and only if $x=0$ .

So $h'(x)$ has only one root.

Thus $h(x)$ has only one critical point namely at $x=0$.

Clearly $h(x)$ is even. So $x=0$ must be the axis of symmetry.

Now observe that $h(0)=-1$ and $h(\frac{\pi}{2})=\frac{\pi^2}{4}-\frac{\pi}{2}>0$

Since $h(0)<0$ and $h(\frac{\pi}{2})>0$ , $h$ must have a root in between $0$ and $\frac{\pi}{2}$.

Thus by the symmetry , there must be a root in between $0$ and $-\frac{\pi}{2}$.

Since $h$ has its only critical point at $x=0$ , clearly $h$ has only two roots.