Proving: $\lim_{x\to 0}\left(\frac{\pi ^2}{\sin ^2\pi x}-\frac1{x^2}\right)=\frac{\pi ^2}3$ without L'Hospital Evaluating
$$\lim_{x\to 0}\left(\frac{\pi ^2}{\sin ^2\pi x}-\frac{1}{x^2}\right)$$
with L'Hospital is so tedious. Does anyone know a way to evaluate the limit without using L'Hospital? I have no idea where to start.
 A: Using Maclaurin expansion we get:
$$
\frac{\sin\pi x}{\pi x}
= \frac{\pi x - \frac16 (\pi x)^3 + O(x^5)}{\pi x}
= 1 - \frac{\pi^2 x^2}{6} + O(x^4)
\\
\frac{\pi x}{\sin\pi x} = 1 + \frac{\pi^2 x^2}{6} + O(x^4) 
\\
\left(\frac{\pi x}{\sin\pi x}\right)^2 = 1 + \frac{\pi^2 x^2}{3} + O(x^4) 
\\
\frac{\pi ^2}{\sin ^2\pi x}-\frac{1}{x^2}
= \frac{1}{x^2}\left[\left(\frac{\pi x}{\sin\pi x}\right)^2-1\right]
= \frac{\pi^2}{3} + O(x^2)
\to \frac{\pi^2}{3}
$$
A: Well, you've got your answer, and it's a good one, I'd use series expansions always in such case, but then, the answerer couldn't know you've ever heard of those expansions, and some of your comments show you aren't too familiar with them. That's why SE encourages sharing information about your mathematical background, btw. Most people ignore that. But then, you risk to get an answer like the following, without any l'Hospitals, based only on elementary principles:
"From the elementary identity
$$\frac1{\sin^2x}-\frac1{x^2}=\sum^\infty_{k=1}3^{-2k}\,\frac{\frac83-\frac{16}9\sin^2\frac{x}{3^k}}{\left(1-\frac43\sin^2 \frac{x}{3^k}\right)^2},$$ letting $x\to0,$ we get $$\frac1{\sin^2x}-\frac1{x^2}\to\sum^\infty_{k=1}3^{-2k}\cdot\frac83=\frac13,$$ and the result we're looking for follows after replacing $x\to\pi x.$"
The joke is: that identity is an elementary consequence of the triplication formula $$\sin3y=3\sin y-4\sin^3y$$ and the limit $\sin y/y\to1$ as $y\to0,$ indeed.
Of course, such an answer isn't helpful, not just because it is rather obscure, but also because the method is applicable only in exceptional cases.
A: Yet another approach: as it's an even function, assume $x>0$. Cut a sector in a radius-$\sqrt{2}$ angle subtending $\pi x$ radians at the centre so $\pi x-\sin\pi x$ is the area in the sector outside the triangle with the same vertices. We'll approximate the arc as a parabola, in Cartesian coordinates with the line segment of the same endpoints a part of the $X$-axis, with extrema at $X=\pm\sqrt{2}\sin\frac{\pi x}{2}\sim\pm\frac{\pi x}{\sqrt{2}}$. The peak is at$$X=0,\,Y=\sqrt{2}(1-\cos\frac{\pi x}{2})=2\sqrt{2}\sin^2\frac{\pi x}{4}\sim\frac{\pi^2x^2\sqrt{2}}{8}.$$At leading order, the parabola is $Y=\frac{\sqrt{2}}{4}(\pi^2x^2/2-X^2)$, so the area below it is$$\int_{-\pi x/\sqrt{2}}^{\pi x/\sqrt{2}}\frac{\sqrt{2}}{4}(\pi^2x^2/2-X^2)dX=\frac{\pi^3x^3}{6}.$$So for small $x$,$$\pi x-\sin\pi x\sim\frac{\pi^3x^3}{6}\implies\frac{1}{\sin\pi x}-\frac{1}{\pi x}\sim\frac{\pi^2x^2}{6\sin\pi x}\sim\frac{\pi x}{6}\implies\frac{1}{\sin^2\pi x}-\frac{1}{\pi^2x^2}\sim\frac{\pi x}{2}\cdot\frac{2}{\pi x}=\frac13.$$
