The correct option is C x2+y2−hx−ky=0
Let the line passing through (h,k) has slope m then equation of the line will be
y−k=m(x−h)⋯(1)
Now the equation of the perpendicular drawn from origin to the given line will be
x=−my
so putting the value of m in (1)
x2+y2−hx−ky=0 as the locus
Alternate solution:
Let the locus of the foot of perpendicualar be (a,b).
Let the line passing through (h,k) has slope m then equation of the line will be
y−k=m(x−h)⇒mx−y−mh+k=0
using foot of perpendicular formulae
a−0m=b−0−1=−(−mh+k)m2+1
⇒m=−ab,
b=k−mh1+m2
eliminating the m from above equations
a2+b2−ha−kb=0
∴ locus will be
x2+y2−hx−ky=0