I have been searching non-trigonometric approximations for some trigonometric functions and have found myself in need of showing that,
$$x^2-2x+\sin\left(\frac{\pi}{2}x\right) \le 0,$$
in the range $0\le x \le 2$.
So far, I am not yet satisfied with my proof, in which I managed to argue that one curve is above the other from their geometric properties. Despite the tight argument, it appears cumbersome. Besides, I had to rely on their intercepts, which I was able to observe but not derive algebraically.
The problem may be a bit more trickier than it appears.
I expect much cleaner and clever approaches and would like to know of them from anybody who could provide.
As you said, the expressions can be a little bit messy. One approach, as below, is to simplify the question as much as possible before hitting it with the standard calculus tools.
Since the expression is symmetric about $x = 1,$ we only need to consider $x \in [0,1]$. Notice that $1 - \sin \theta = (\cos \theta/2 - \sin \theta/2)^2.$ Thus,
$$ x^2 - 2x + \sin( \pi x /2) =(x-1)^2 - (\cos(\pi x/4) - \sin(\pi x/4))^2 \\ = (1 - x + \cos(\pi x/4) - \sin(\pi x/4) ) (1 - x - \cos( \pi x /4) + \sin (\pi x /4) )$$
The first term above is always non-negative (since on $[0,\pi/4]$ $\cos$ dominates $\sin$).
So the question becomes to show that on $x \in [0,1],$ $$f(x) := 1 - x - \cos(\pi x/4) + \sin(\pi x/4) \le 0.$$
Notice that on $(0,1),$ $$f'(x) = \frac{\pi}{4} \left( \cos (\pi x /4) + \sin(\pi x /4)\right) - 1 \\ f''(x) = \frac{\pi^2}{16} (\cos (\pi x /4) - \sin (\pi x/4) ) > 0.$$
So, $f$ is a convex function on the interval, and it must attain its maxima at the end points (since any internal stationary point must be a minima). But then on $[0,1]$ $$f(x) \le \max(f(0), f(1)) = 0.$$