Question
Question: The perpendicular distance of a line from the origin is 5 units and its slope is -1. Find the equati...
The perpendicular distance of a line from the origin is 5 units and its slope is -1. Find the equation of the line.
Solution
Hint: We have to use the formula for the equation of the line in terms of the perpendicular distance from the origin and its slope. We need to first find the angle of the line joining the origin and the point on the line from which the equation of the line can be obtained.
Complete step-by-step answer:
We are given the perpendicular distance of the line from the origin and its slope. The equation of the line at a perpendicular distance p from the origin and where the perpendicular line from the origin to the line makes an angle θ with the x-axis is given by
xcos(θ)+ysin(θ)=p ........(1.1)
As shown in the figure below:
Now, as the line joining the origin and the line should be perpendicular to the original line, their slopes should satisfy
m1×m2=−1 ...........(1.2)
where m1 is the slope of the line joining the line from origin and m2 is the slope of the original line (which is to be found out in the question).
We are given that slope of the original line = m2=−1
Thus, by using this this value in equation (1.2), we obtain
m1×−1=−1⇒m1=1...........(1.3)
As m1 is the slope of the line joining the origin and the original line, as as slope is the tangent of the angle with the x-axis, we should have
tan(θ)=m1⇒θ=tan−1(m1)=tan−1(1)=45∘
Using this value of θ in equation (1.1), we get
xcos(45∘)+ysin(45∘)=5 ⇒2x+2y=5⇒x+y=52
Thus, the required equation of the line is x+y=52.
Note: We should be careful as θ represents the slope of the line joining the origin to the given line and not the slope of the given line itself. We should be careful to take the tan−1 of the slope to find the angle and then use it in the equation (1.1).