We know that
2b=a+c
Putting the value of b in ax+by+c=0, we get
ax+(a+c2)y+c=0
⇒a(2x+y)+c(y+2)=0
⇒(2x+y)+(ca)(y+2)=0
This equation represents a family of straight lines passing through the intersection of 2x+y=0 and y+2=0 which is (1,−2)
Hence, the value of h−k=1+2=3
Alternate solution:
We know that
2b=a+c⇒a−2b+c=0⋯(1)
comparing above equation with ax+by+c=0⋯(2)
Line always through point
⇒x=1,y=−2
∴h−k=1+2=3