JEE Main 2024 Mathematics question — Distance from a line, foot of perpendicular and image
If x2−y2+2hxy+2gx+2fy+c=0 is the locus of a point, which moves such that it is always equidistant from the lines x+2y+7=0 and 2x−y+8=0, then the value of g+c+h−f equals
SOLUTION
The distance of a point P(x,y) from a straight line ax+by+c=0 is a2+b2∣ax+by+c∣.
For a point that is equidistant from the two given lines L1:x+2y+7=0 and L2:2x−y+8=0
we must have
12+22∣x+2y+7∣=22+(−1)2∣2x−y+8∣.
Since 12+22=5 and 22+(−1)2=5, the denominators are equal, so squaring both sides eliminates the absolute value and the square roots:
(x+2y+7)2=(2x−y+8)2.
Expanding the squares:
Left side: (x+2y+7)2=x2+4xy+4y2+14x+28y+49.
Right side: (2x−y+8)2=4x2−4xy+y2+32x−16y+64.
Equating and bringing every term to the left:
x2+4xy+4y2+14x+28y+49−(4x2−4xy+y2+32x−16y+64)=0.
Simplifying term by term: −3x2+8xy+3y2−18x+44y−15=0.
Multiplying by −1 makes the coefficient of x2 positive:
3x2−8xy−3y2+18x−44y+15=0.
Dividing by 3 (so that the coefficient of x2 becomes 1):
x2−38xy−y2+6x−344y+5=0.
Now compare with the general form x2−y2+2hxy+2gx+2fy+c=0.
Thus we read off: 2h=−38⟹h=−34, 2g=6⟹g=3, 2f=−344⟹f=−322, c=5.