The equation of the line is
y=mx+c
⇒ mx−y+c=0 .......(i)
Here, a=m,b=−1,c=c
The equation of the circle is
x2+y2=a2 .....(ii)
Line (i) will be a tangent to the circle (ii), if the length of perpendicular from the centre (0,0) of circle (ii) on line (i) = the radius a.
⇒±m(0)−0+c√m2+1=a
⇒c=±a√(1+m2)
⇒c2=a2(1+m2)
Which is the required condition.