We know that
For circle x2 + y2 + 2fx + 2gy + c = 0 & point (x1, y1) the length of tangent is
\(\sqrt{\mathrm x_1^2+y_1^2+2f\mathrm x_1+2gy_1+c}\).
Given circle is x2 + y2 = 25
⇒ x2 + y2 – 25 = 0
Hence, f = 0, g = 0 & c = –25.
Given point is (x1, y1) = (–2, 5)
Therefore, the length of required tangent is
\(=\sqrt{(-2)^2+5^2+0+0-25}\)
\(=\sqrt{4+25-25}\)
\(=\sqrt 4\)
= 2
Alternative:-
let length of required tangent is x.
Since, OAB is right angled triangle.
x2 + r2 = (-2 - 0)2 + (5 - 0)2 (By pythagoras theorem)
⇒ x2 + 25 = 4 + 25 (\(\because\) r = Radius of circle = 5)
⇒ x2 = 4
⇒ x = 2.