Let the equation of the line be
ax+by+c=0
Distance of the line from origin is
a(0)+b(0)+c√a2+b2=2
⇒c√a2+b2=2⟶(1)
Now the line passes through (4,−2)
∴ 4a−2b+c=0⟶(2)
From (1), Squaring we get
c2=4(a2+b2)⟶(3)
From (2),
c=2b−4a⟶(4)
Squaring
c2=4b2+16a2−16ab⟶(5)
Putting the value of c2 from equation (3) we get
4a2+4b2=4b2+16a2−16ab
⇒12a2−16ab=0
⇒4a(3a−4b)=0
∴ 3a=4b or a=0 (does not give the line passing through (4,−2))
Now putting
3a=4b
⇒a=4b/3 in equation (2) we get
c=−4a+2b=−16b3+2b=−16b3+2b=−10b3
∴ equation of line will be
4b3x+by−10b3=0⇒4x+3y−10=0