Prove $x^2 = \sin(x) $ has exactly two solutions on $[0, \pi/2]$

3.6k Views Asked by At

Prove $x^2 = \sin(x)$ has exactly two solutions on $[0, \pi/2]$

I believe I obtained a correct solution, but it feels long and sloppy. I was curious if there's a better/more neat way to do it.

My solution:

Let $f(x) = x^2 - \sin(x)$

$f(0) = 0$ and $f(x_0) = 0$ for some $x_0 \in (\pi/6, \pi/2)$

(the above result I have previously proven using Intermediate Value Theorem)

$$f'(x) = 2x - \cos(x)$$

$$f'(0) = -1 < 0 \space\text{ and }\space f'(\pi/6) = \pi/3 - \sqrt{3}/2 > 0$$

Again using the Intermediate Value Theorem, $\exists\space x_1 \in (0, \pi/6)$ such that $f'(x_1) = 0$.

$$f''(x) = 2 + \sin(x) > 0 \space\space\forall x\in \Re$$

Thus, $f'(x)$ is strictly increasing, so that $x_1$ is the only solution to $f'(x_1) = 0$

This further implies that $f'(x) < 0 \space\space\forall x < x_1$ and $f'(x) > 0 \space\space\forall x > x_1$.

In other words, for $0 \le x < x_1$, $f(x)$ is strictly decreasing, implying that $0$ is the only solution to $f(x) = 0$ in this interval.

Likewise, for $x_1 < x_0 < x \le \pi/2$, $f(x)$ is strictly increasing. Therefore, $x_0$ is the only solution to $f(x) = 0$ in this interval.

This means, $f(x) = x^2 - \sin(x) = 0$ has two solutions on $[0, \pi/2]$

3

There are 3 best solutions below

0
On BEST ANSWER

A slightly shorter way: observe that $f(x):=x^2-\sin(x)$ is continuous in $\Bbb R$ and

$$\lim_{x\to\infty}f(x)=\infty,\quad \lim_{x\to-\infty}f(x)=\infty,\quad f(\pi/4)=\pi^2/16-\sqrt2/2<\frac{10-8\cdot 1.4}{16}<0$$

what implies, by the intermediate value theorem, that $f$ have at least two zeros. And

$$f''(x)=2+\sin x>0$$ so $f$ is strictly convex, which implies that it has exactly two zeros (convex functions can have, at most, one local extremum, a minimum to be precise). This together with the fact that $f(0)=0$, $f(\pi/4)<0$ and $f(\pi/2)>0$ is enough to say that these zeros are in $[0,\pi/2]$.

0
On

It might be a bit long, but it's not sloppy.

If you know Rolle's Theorem you can show that there are at most two solutions more quickly: if there were three solutions to $f(x)=0$ (say $x_1<x_2<x_3$) then there would be at least two solutions to $f'(x)=0$ (there is one in $(x_1,x_2)$ and one in $(x_2,x_3)$), and so at least one solution to $f''(x)=0$. But $f''(x)$ is always positive.

0
On

Your proof is a little bit long but not sloppy.

For quick check with obtaining approximate solutions: By using the Taylor series expansion of $\sin$, we have:

$$x^2-x + \frac{x^3}{6} \cong 0$$ $$\implies x_1 = 0, ~~ x_2 \approx -3+\sqrt{15} \approx 0.87, ~~ x_3 \approx -3-\sqrt{15} $$

where $\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} + \cdots$.

It is clear that from above only two solutions $x_1$ and $x_2$ are in $[0,\frac{\pi}{2}]$; here, $x_2$ is close enough to the exact solution ($x_2 =0.87672$).