Question from an entrance paper
If $f(x)=x^{2}$ and $g(x)=x \sin x+\cos x$ then
A. $f$ and $g$ agree at no point
B. $f$ and $g$ agree at exactly one point
C. $f$ and $g$ agree at exactly two point
D. $f$ and $g$ agree at more then two point
My approach
$f(x)=x^{2}$
$g(x)=x \sin x+\cos x$
$\Rightarrow f(x)=g(x)$
$\Rightarrow x^{2}=x \sin x+\cos x$
$\Rightarrow x^{2}-x \sin x-\cos x=0$
$\Rightarrow F(x)=0$
$F(0)=-1$ & $F(\pi)=\pi^{2}+1 >0 $
$F^{\prime}(x)=2 x-x \cos x$
$F^{\prime}(x)=x(2-\cos x)$
Here $2-\cos x$ is greater than $0$ and $x(2-\cos x)$ will be also greater than 0 for $x>0$ $\Rightarrow F(x)$ is strictly increasing function.
So I can conclude there will be exactly two point on which they will meet.
$\boxed{\text{*My question is how to do this without calculus*}}$
Edit $1$:- I had thought like this. This a eq of power $2$,so It must have two roots. These two roots may be real or complex conjugate.Now how to distinguish in general whether it would have real or imaginary roots for all even powered polynomials
ps Dont give solutions which is similar to mine.
Of course all statements that use calculus can be proved without using calculus. But this may be very cumbersome. Let's try it here. Here is a picture of the function weare talking about.
We can define the functions $\sin t$ and $\cos t$ as projection of the unit vector to the x- and y-axis. The angle t is the lenth of the arc.
The following properties we can immediately conclude from the unique circle diagram:
$$\sin(t)\lt t,\; \forall t$$ $$\cos (t) \; \text{is decreasing in}\; (0,\pi)$$ Also the following formula can be deduced or found in Wiki
$$\sin(x)-\sin(y)=2\cos\frac{x+y}2\sin\frac{x-y}2$$
For the function $$f(x)=x^2$$ and $$g(x)=x \sin x+\cos x$$ we prove the following
$$ f(x+h)>f(x), \forall h>0, x,x+h\in (0,\infty)\tag 1$$ $$ f(x+h)-f(x)>g(x+h)-g(x), \forall h>0, x,x+h\in (0,\pi)\tag 2$$ $$f(x)>g(x), \forall x>\pi \tag 3$$
We have $$ f(x+h)-f(x)=2xh+h^2>0,\forall x,h>0$$ and so $(1)$ follows.
From $$ g(x+h)-g(x)\\=(x+h)\sin(x+h)-x\sin x + \cos(x+h)-\cos(x) = $$ $$(x+h)\sin(x+h)-x\sin x \\ = x(\sin(x+h)-\sin(x))+h \sin(x+h) = x( 2 \cos(x+\frac h 2)\sin(\frac h 2) ) + h \sin(x+h)\\ <x(2 \frac h 2)+h(x+h)\\ =2xh+h^2\\ =f(x+h)-f(x) $$
We further have $$ \cos(x+h)-\cos(x)<0$$ and so we proved $(2)$.
Finally $(3)$ we get from $$g(x)<x\cdot 1 +1 < 4+1< 3^2 < x^2=f(x), \; \forall x>\pi$$
We have at least one intersection in $(0,\pi)$ because $f(0)<g(0)$ and $f(1)>g(1)$ and both function are continues. We have only one point of intersection in $(0,\pi)$ because $f$ grows faster than $g$ in $(0,\pi)$ and no further point of intersection in $[\pi,\infty)$ because $f(x)>g(x)$ in $[\pi,\infty)$.
$f$ is even so for symmetry reasons we have exactly two points of intersection.