A line in a coordinate plane forms two angles with the x-axis, which are supplementary. The angle (say) θ made by the line l with positive direction of x-axis and measured anti-clockwise is called the inclination of the line. Obviously 0∘≤θ≤180∘ (Fig above).
Important Points to Remember
Slope (Gradient) of a line when coordinates of any two points on the line are given
We know that a line is completely determined when we are given two points on it. Hence, we proceed to find the slope of a line in terms of the coordinates of two points on the line. Let P(x1,y1) and Q(x2,y2) be two points on non-vertical line l whose inclination is θ. Obviously, x1≠x2, otherwise the line will become perpendicular to x-axis and its slope will not be defined. The inclination of the line l may be acute or obtuse. Let us take these two cases.
Draw perpendicular QR to x-axis and PM perpendicular to RQ as shown in Figs. 10.3 (i) and (ii).
Case-I: When angle θ is acute: Any angle that measures greater than 0∘ and less than 90∘ is called an acute angle.
In Fig 10.3 (i), ∠MPQ=θ…(1).
Therefore, slope of line l=m=tanθ.
But in △MPQ, we have tanθ=MQMP=y2−y1x2−x1…(2).
From equations (1) and (2), we have
m=tanθ=y2−y1x2−x1
Case II: When angle θ is obtuse: An obtuse angle is an angle which is greater than 90∘ and less than 180∘.
In Fig 10.3 (ii), we have ∠MPQ=180∘−θ.
Therefore, θ=180∘−∠MPQ.
Now, slope of the line l
m=tanθ=tan(180∘−∠MPQ)=−tan∠MPQ=−MQMP=−y2−y1x1−x2=y2−y1x2−x1.
Consequently, we see that in both the cases the slope m of the line through the points (x1,y1) and (x2,y2) is given by m=y2−y1x2−x1.
Important Points to Remember
Example 1: Find the slope of the lines:
(a) Passing through the points (3,−2) and (−1,4),
(b) Making inclination of 60∘ with the positive direction of x-axis.
Answer:
(a) The slope of the line through (3,−2) and (−1,4) is
m=4−(−2)−1−3=6−4=−32.
(b) Here inclination of the line α=60∘. Therefore, slope of the line is
m=tan60∘=√3.
Example 2: Determine λ, so that 2 is the slope of the line through (2,5) and (λ,3).
Answer: Slope of the line joining (2,5) and (λ,3)
=3−5λ−2=−2λ−2=2⇒−2=2λ−4⇒2λ=2∴λ=1
Conditions for parallelism in terms of their slopes In a coordinate plane
Suppose that non-vertical lines l1 and l2 have slopes m1 and m2, respectively. Let their inclinations be α and β, respectively.
If the line l1 is parallel to l2 (Fig 10.4), then their inclinations are equal, i.e.,
α=β, and hence, tanα=tanβ
Therefore m1=m2, i.e., their slopes are equal.
Conversely, if the slope of two lines l1 and l2 (Fig 10.4) is same, i.e.,
Then
m1=m2.
By the property of tangent function (between 0∘ and 180∘ ), α=β.
Therefore, the lines are parallel.
Note: Hence, two non vertical lines l1 and l2 are parallel if and only if their slopes are equal.
Example 3: Show that the line joining the points (2,−3) and (−5,1) is parallel to the line joining (7,−1) and (0,3).
Answer: Slope of the line joining the points (2,−3) and (−5,1) is
m1=1−(−3)−5−2=−47
and slope of the line joining the points (7,−1) and (0,3) is
m2=3−(−1)0−7=−47
Here, m1=m2
Hence, lines are parallel.
Conditions for perpendicularity in terms of their slopes In a coordinate plane
If the lines l1 and l2 are perpendicular (Fig 10.5), then β=α+90∘. Therefore, tanβ=tan(α+90∘)
=−cotα=−1tanα
i.e., m2=−1m1 or m1m2=−1
Conversely, if m1m2=−1, i.e., tanαtanβ=−1.
Then tanα=−cotβ=tan(β+90∘) or tan(β−90∘)
Therefore, α and β differ by 90∘.
Thus, lines l1 and l2 are perpendicular to each other.
Note: Hence, two non-vertical lines are perpendicular to each other if and only if their slopes are negative reciprocals of each other,
i.e.,
m2=−1m1 or, m1m2=−1
Example 4: Find the equation of the line perpendicular to
y=−2x+3
and passing through the point (−3,9).
Answer: The slope of the given line is -2 . Then the slope of the perpendicular to the given line is
m=−1−2=12.
Now, we have the slope of the perpendicular and a point on the line, so the equation of the perpendicular line is
y−9=12(x−(−3))y−9=x2+32y=x2+212
Example 5: Line through the points (−2,6) and (4,8) is perpendicular to the line through the points (8,12) and (x,24). Find the value of x.
Answer: Slope of the line through the points (−2,6) and (4,8) is
m1=8−64−(−2)=26=13
Slope of the line through the points (8,12) and (x,24) is
m2=24−12x−8=12x−8
Since two lines are perpendicular, m1m2=−1, which gives
13×12x−8=−1 or x=4.
Angle between two lines
When we think about more than one line in a plane, then we find that these lines are either intersecting or parallel. Here we will discuss the angle between two lines in terms of their slopes.
Let L1 and L2 be two non-vertical lines with slopes m1 and m2, respectively. If α1 and α2 are the inclinations of lines L1 and L2, respectively. Then
m1=tanα1 and m2=tanα2.
We know that when two lines intersect each other, they make two pairs of vertically opposite angles such that sum of any two adjacent angles is 180∘. Let θ and ϕ be the adjacent angles between the lines L1 and L2 (Fig10.6). Then
θ=α2−α1 and α1,α2≠90∘.
Therefore tanθ=tan(α2−α1)=tanα2−tanα11+tanα1tanα2=m2−m11+m1m2( as 1+m1m2≠0 ) and ϕ=180∘−θ so that
tanϕ=tan(180∘−θ)=−tanθ=−m2−m11+m1m2, as 1+m1m2≠0
Now, there arise two cases:
Case I: If m2−m11+m1m2 is positive, then tanθ will be positive and tanϕ will be negative, which means θ will be acute and ϕ will be obtuse.
Case II: If m2−m11+m1m2 is negative, then tanθ will be negative and tanϕ will be positive, which means that θ will be obtuse and ϕ will be acute.
Thus, the acute angle (say θ ) between lines L1 and L2 with slopes m1 and m2, respectively, is given by
tanθ=|m2−m11+m1m2|, as 1+m1m2≠0…(1)
The obtuse angle (say ϕ ) can be found by using ϕ=180∘−θ.
Example 6: If the angle between two lines is π4 and slope of one of the lines is 12, find the slope of the other line.
Answer: We know that the acute angle θ between two lines with slopes m1 and m2 is given by
tanθ=|m2−m11+m1m2|…(1)
Let m1=12,m2=m and θ=π4.
Now, putting these values in (1), we get
tanπ4=|m−121+12m| or 1=|m−121+12m|,
which gives m−121+12m=1 or m−121+12m=−1.
Therefore m=3 or m=−13.
Hence, slope of the other line is 3 or −13. Fig 10.7 explains the reason of two answers.
Collinearity of three points
We know that slopes of two parallel lines are equal. If two lines having the same slope pass through a common point, then two lines will coincide. Hence, if A, B and C are three points in the XY-plane, then they will lie on a line, i.e., three points are collinear (Fig 10.8) if and only if slope of AB= slope of BC.
Example 7: Find whether the points
(−a,−b),[−(s+1)a,−(s+1)b] and [(t−1)a,(t−1)b]
are collinear?
Answer: Let A≡(−a,−b),B≡[−(s+1)a,−(s+1)b] and
C≡((t−1)a,(t−1)b)
Then, slope of AB=−(s+1)b+b−(s+1)a+a=ba
and slope of BC=(t−1)b+(s+1)b(t−1)a+(s+1)a=ba
Hence, given points are collinear.
Example 8: For what value of k the points (k,2−2k),(−k+1,2k) and (−4−k,6−2k) are collinear?
Answer: Let A≡(k,2−2k),B≡(−k+1,2k) and C≡(−4−k,6−2k) are collinear, then
Slope of AB= Slope of AC
⇒2k−(2−2k)−k+1−k=6−2k−(2−2k)−4−k−k⇒4k−2−2k+1=4−4−2k(k≠12(∵ Denominator ≠0))⇒(4k−2)(−4−2k)=4(−2k+1)⇒(2k−1)(−2−k)−(−2k+1)=0⇒(2k−1)(−2−k+1)=0∴k≠12,∴k=−1
Example 9: Find the angle between the lines joining the points (0,0),(2,3) and (2,−2),(3,5).
Answer: Let the given points be A≡(0,0),B≡(2,3),C≡(2,−2) and D≡(3,5). Let m1 and m2 be the slopes of the lines AB and CD respectively.
∴m1=3−02−0=32 and m2=5−(−2)3−2=7
Let θ be the acute angle between the lines
∴tanθ=|m1−m2∣1+m1m2|=|32−71+(32)⋅7|=|−1123|=1123∴θ=tan−1(1123)
Example 10: Without using pythagoras theorem, show that the points A(−1,3),B(0,5) and C(3,1) are the vertices of a right angled triangle.
Answer: In △ABC, we have
Slope of side AB=5−30−(−1)=2=m1 (say)
Slope of side BC=1−53−0=−43=m2 (say)
and Slope of side CA=3−1−1−3=−12=m3 (say)
Clearly,
m1m3=2×(−12)=−1
∴AB and CA are perpendicular to each other i.e.
∠BAC=90∘
Hence, the given points are the vertices of a right angled triangle.
Example 11: Show that the triangle which has one of the angles as 60∘, can not have all vertices with integral coordinates.
Answer: Let ABC be a triangle whose vertices are A(x1,y1),B(x2,y2) and C(x3,y3). Assume x1,x2,x3,y1,y2,y3 all are integers.
Let ∠BAC=60∘
Slope of AC=y3−y1x3−x1=∣m1 (say)
and Slope of AB=y2−y1x2−x1=m2 (say)
Here, m1 and m2 are rational numbers (∵x1,x2,x3,y1,y2,y3 are integers)
∴tan(∠BAC)=m1−m21+m1m2= Rational (∵m1 and m2 are rational ) But tan(∠BAC)=tan60∘=√3= Irrational
∵ Rational number ≠ Irrational number
Which is contradiction so our assumption that the vertices are integers is wrong. Hence, the triangle having one angle of 60∘ can not have all vertices with integral coordinates.
Example 12: Three points P(h,k),Q(x1,y1) and R(x2,y2) lie on a line. Show that
(h−x1)(y2−y1)=(k−y1)(x2−x1).
Answer: Since points P, Q and R are collinear, we have
Slope of PQ= Slope of QR, i.e., y1−kx1−h=y2−y1x2−x1
or k−y1h−x1=y2−y1x2−x1,
or (h−x1)(y2−y1)=(k−y1)(x2−x1).
Example 13: In Fig 10.9, time and distance graph of a linear motion is given. Two positions of time and distance are recorded as, when T=0,D=2 and when T=3,D=8. Using the concept of slope, find law of motion, i.e., how distance depends upon time.
Answer: Let ( T,D) be any point on the line, where D denotes the distance at time T. Therefore, points (0,2),(3,8) and (T, D) are collinear so that
8−23−0=D−8 T−3 or 6( T−3)=3(D−8) or D=2( T+1),
which is the required relation.