The perpendicular distance of a line from the origin is 5 units, and its slope is -1. Find the equation of the line.

Given: perpendicular distance from orgin is 5 units, and the slope is -1


To find : the equation of the line


Formula used :


We know that the perpendicular distance from a point (x0,y0) to the line ax + by + c = 0 is given by



The equation of a straight line is given by y=mx+c where m denotes the slope of the line.


The equation of the line is mx – y + c =0


Here x0 = 0 and y0= 0 , a = m , b = -y , c = c and D=5 units


D


Slope of the line = m = -1 ,Substituting in the above equation we get,





Thus the equation of the straight line is y = x + 5 or x + y - 5 = 0


1