X tends to π, (1 + cosx) / (x - π) ^ 2, find the limit

X tends to π, (1 + cosx) / (x - π) ^ 2, find the limit

Limx tends to π, (1 + cosx) / (x - π) ^ 2
Let X - π = t
x=π+t
Original formula = LIM (T - > 0) (1 + cos (π + T)) / T ^ 2
=lim(t->0) (1-cost)/t^2
=lim(t->0) (t²/2)/t^2
=1/2