general equation of sphere,
x2+y2+2gx+2fy+2hz+c=0
centre (−g,−f.−h) and radius =√g2+f2+h2−c
At z=0, x2+y2+2gx+2fy+c=0−−−(i)
x2+y2−4=0−−−(ii)
comparing (i) and (ii), g=0,f=0,c=−4
∴ general equation reduces to,
x2+y2+z2+2hz+4=0 centre (0,0,h), radius=√h2−c
from fig., P is perpendicular drawn from centre to plane and r is radius of sphere. ∴p2+9=r2
4h29+9=h2+4
⇒h=±3
∴ equation of spheres are,
x2+y2+z2+6z−4=0 and x2+y2+z2+6z−4=0