Just recently, I was asked to solve this question in my exam. It is the following question.
Given $f(x) = \left\{ \begin{array}{ll} \frac{\sin\left(\pi (\cos(x))^2\right)}{x^2}, & \text{ if } x \not= 0 \\ k, & \text{ if } x = 0 \end{array} \right.$
is continuous at $x = 0$. Find the value of $k$.
Since, we know that this function is continuous at $x = 0$. We can imply that, $$\lim_{h\to0}\frac{\sin \left(\pi (\cos(h))^2\right)}{h^2}=k$$
I computed the limit using L'Hospital rule and it was $\pi$, but I was wondering how to compute it without the use of L'Hospital rule.
Using $\sin(\pi-x)=\sin(x)$ we get $$\;\lim_{h\to0}\frac{\sin (\pi (\cos(h))^2)}{h^2}=\lim_{h\to0}\frac{\sin (\pi- \pi (\cos(h))^2)}{h^2}\\ =\lim_{h\to0}\frac{\sin (\pi-\pi (\cos(h))^2)}{\pi- \pi (\cos(h))^2}\cdot \pi \cdot\frac{1- \cos(h)^2}{h^2}=\pi\lim_{h\to0}\frac{\sin (\pi-\pi (\cos(h))^2)}{\pi- \pi (\cos(h))^2}\cdot\frac{\sin(h)^2}{h^2}$$
Now both limits are 1 by the fundamental trig limit.