<s>[INST] What is $a$ in $\lim_{t \to 0} \left(\frac{a}{t^2} - \frac{\sin 6t}{t^3 \cos^2 3t}\right) = -18$ 
What is $a$ in $\lim_{t \to 0} \left(\frac{a}{t^2} - \frac{\sin 6t}{t^3 \cos^2 3t}\right) = -18$

We have to make this function defined, by change the cosine into sine or tan. So,
$$\lim_{t \to 0} \left(\frac{a}{t^2} - \frac{2\sin 3t \cos 3t}{t^3 \cos^2 3t}\right) = \lim_{t \to 0} \left(\frac{a}{t^2} - \frac{6}{t^2}\right) = -18$$
But I am confused what should I do next.
 [/INST] Just use Taylor expansion and simplify first $\cos^2 3t = \frac{1+\cos 6t}{2}$.
Hence,
$$\frac{at\cos^2 3t - \sin 6t}{t^3\cos^2 3t}= \frac{at(1+\cos 6t) - 2\sin 6t}{t^3(1+\cos 6t)}$$
$$=  \frac{at + at(1- 18t^2+o(t^3)) - 2(6t-36t^3+o(t^4))}{t^3(1+\cos 6t)}$$
$$= \frac{1}{(1+\cos 6t)}\left(\frac{2a-12}{t^2} -18a+72  + o(t)\right)$$
So, the limit exists only if $\boxed{a=6}$ and then the limit is equal to $\boxed{\frac{-36}{2}}=-18$.
</s>