For trigo limit, the most important thing is that x->0, sinx / x -> 1.
For (1-cosx)/x^2, we can convert cos into sin by the identity sin^2 x + cos^2 x = 1
(1-cosx)/x^2=(1-cox^2 x) / [x^2(1+cos x)]=sin^2 x/ [x^2 (1+cosx)]
factor the sinx / x, [sinx / x]^2 / (1+cosx).
The denominator is no longer zero, sub x = 0,
Please be aware that
lim x->0 (sinx / x) = lim x->0 (x / sin x) = 1
Prove:
When x -> 0,
sinx -> 0 and x -> 0
sinx/x is undefined when x=0
By L' Hospital Rule, we differentiate both the numerator (x) and the denominator (sinx) with respect to x, in order to obtain cosx / 1. When x->0, the result is cos0 = 1