How can one show that $$x \tan x > \frac{4x - \pi}{\pi - 2x},$$ for $x \in \left(0,\frac{\pi}{2}\right)$.
Clearly, for $x \in \left(0,\frac{\pi}{4}\right)$ as $4x - \pi < 0$ and $\pi - 2x > 0$ the term $\frac{4x - \pi}{\pi - 2x}$ is negative while $x \tan x$ is always positive, so one need only show the inequality is true for $x \in \left(\frac{\pi}{4},\frac{\pi}{2}\right)$.
Substitute $x$ by $\frac \pi 2 - x$ (as in Jack D'Aurizio's answer), so that we have to show that $$ \tan x < \frac{x (\pi - 2x)}{\pi - 4x} \quad \text{for } 0 < x < \frac \pi 4 \, . $$ Denote the right-hand side with $g(x)$. The idea is to use the fact that $\tan$ is a solution of the differential equation (initial value problem) $$ y' = 1 + y^2 \, , \quad y(0) = 0 $$ and to show that $g$ satisfies a corresponding differential inequality.
We have $g(0) = 0$, and a straight-forward calculation gives $$ g'(x) - g(x)^2 - 1 = \frac{x(\pi - 2x)(2x^2 - \pi x + 4)}{(\pi - 4x)^2} > 0 $$ for $0 < x < \frac \pi 4$.
It follows that $$ \arctan(g(x)) = \int_0^x \frac{g'(t)}{1 + g(t)^2} \, dt > \int_0^x 1 \, dt = x $$ and therefore $g(x) > \tan x$.