Question
Question: The angle between the lines \(kx + y + 9 = 0,y - 3x = 0\) is \({45^ \circ }\), then the value of k i...
The angle between the lines kx+y+9=0,y−3x=0 is 45∘, then the value of k is
A.2 only
B.2 or 2−1
C.– 2 only
D.– 2 and 2−1
Solution
The angle between two lines is given by the formula .tanθ=1+m1m2m2−m1..We just need to calculate the the slope m1and m2 and substitute in the formula to find the value of k
Complete step-by-step answer:
Step 1 : We are the equations of the line to be kx+y+9=0,y−3x=0
We can write an equation of the line in the form of y=mx+c when the coefficient of x , m is the slope of the line.
So now let's write the first equation in this form
y=−kx−9
From this we come to know that the slope of the first line m1=−k
Now let's write the second equation in the form of y=mx+c
y=3x
From this we get that the slope of the second line, m2=3
Step 2:
Now the angle between two lines is given by tanθ=1+m1m2m2−m1
And we are given that the angle between these given lines is 45∘
Therefore , we get
⇒tan45∘=1+(3)(−k)3−(−k)
We now that the value of tan45∘=1
⇒±1=1−3k3+k
Cross multiplying we get
⇒±(1−3k)=3+k
Now let's split it into two cases
Case 1
⇒1−3=k+3k ⇒−2=4k ⇒k=4−2=2−1
In this case we get the value of k to be 2−1
Case 2 :
In this case we get the value of k to be 2
Therefore the value of k is 2−1 and 2
The correct option is B
Note: If one of the line is parallel to y-axis then the angle between two straight lines is given by tanθ=m±1 where ‘m’ is the slope of the other straight line.
If the two lines are a1x+b1y+c1 = 0 and a2x+b2y+c2 = 0, then the formula becomes tanθ=a1a2+b1b2a1b2−b1a2
Generally speaking, the angle between these two lines is assumed to be acute and hence, the value of tan θ is taken to be positive.