Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

The Angle Between Two Lines

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

Calculation and Formulas of Angles Between Two Lines

The relationship between two lines can be determined by the angle generated by the two lines. It's the angle formed by the two lines that are being calculated. The acute angle and the obtuse angle are two angles formed by two intersecting lines. We consider the acute angle between two lines while calculating the angle between two lines.


The angle formed by two lines can be used to calculate the angle formed by two sides of a closed polygon. Let's look at the formulas and examples for the angle formed by two lines in a coordinate plane, as well as three-dimensional space.


The topic of straight lines is particularly significant in IIT JEE Mathematics. In competitions such as the IIT JEE, it frequently yields some straight questions. Because the subject is so broad, students should devote enough time to comprehending the numerous concepts. Under straight lines, the angle between two straight lines is a significant head.


When two straight lines intersect, two sets of angles are formed. A pair of acute and another pair of obtuse angles are formed by the intersection. Angles' absolute values are determined by the slopes of crossing lines.


It's also worth noting that if one of the lines intersects with the y-axis, the angle generated by the intersection cannot be determined because the slope of a line parallel to the y-axis is ambiguous.


Angle Between Two Lines Coordinate Geometry

If you know the coordinates of the three points A, B, and C, you can use analytic geometry to calculate the angle between the lines AB and BC.


When the slope of each line is known from the equation, the angle between the two lines may be calculated by calculating the slope of each line and then using it in the formula to get the angle between two lines.


Calculating Angle Between Two Lines in Coordinate Geometry

1. How to Find Angle Between Two Lines


Let us consider three points are given on the x-axis and y-axis whose coordinates are given.


Consider a line whose endpoints have coordinates (x1 y1) and (x2 y2). 


The equation of the slope will be


m = y₂ - y₁/x₂ - x₁


m1  and m2 can be calculated by substituting this in the above formula then the values of m1 and m2 can be substituted in the formula given.


tan θ = ± (m₁ - m₂ ) / (1- m₁*m₂)


2. If the Lines are Parallel


(image will be uploaded soon)


The two lines are parallel means, the angle between them is zero Ɵ = 0°


  • i.e tan Ɵ =0

  • m₁ - m₂/1+m₁m₂=0

  • m₁ - m₂=0

  • m₁ = m₂


The slopes are equal. It shows that the lines are parallel

    

Note: The value of tan Ɵ will always be positive. 



3. If the Lines are Perpendicular


(image will be uploaded soon)


When the two lines are perpendicular angle between them will be 90° i.e Ɵ=90°


  • 1/tan Ɵ = 0

  • 1+m₁m₂/m₁-m₂ = 0

  • 1+m₁m₂ =0

  • m₁m₂ = -1


The product of their slope is -1. It shows that the lines are perpendicular.


Formula to Find the Angle Between Two Lines

Consider two nonparallel lines which have slopes m1 and m2 and Ɵ is the angle between the lines, then the formula for finding the angle between the two lines would be: 


tan Ɵ=(m₂-m₁)/(1+m₁m₂)


Derivation of the Formula

Considering the below figure here, we can see that we have a plane with an x-axis and a y-axis.


Two lines L1 and L2 are intersecting each other. Forming one acute and the other obtuse angle. Let us consider the acute angle as Ɵ. (image will be uploaded soon)


Step 1: At first, We have to show that 


            θ  =  θ₂ - θ₁


Step 2: For proving above, Let us consider ∆ABC


By angle sum property we can state that


θ + θ₂ + x  = 180 ……..(1)


 x + θ₂  = 180…………. (2) (as angle  x and θ2  forms a linear pair)


Step 3: From equations 1 and 2, we can equate them.


θ + θ₁ + x  = x + θ₂ = 180 


Subtracting x from both sides

 

θ + θ₁ + x - x = x + θ₂ - x 


 we get


θ + θ₁ =  θ₂


Step 4: Subtracting θ₁ from both sides


θ + θ₁ - θ₁  =  θ₂ - θ₁


We get,


θ  =  θ₂ - θ₁


Step 5: Applying tangent on both sides


tan θ = tan ( θ₂ - θ₁)


Using the formula of tangents we get 


tan θ = tan θ₂ - tan θ₁/1+tan θ₁tanθ₂


From the inclination of a line, we know that tan θ = m


Hence we can substitute tan θ₁ = m₁ and tan θ₂ = m2 we get,


tan Ɵ= |(m₂ - m₁)/(1+m₁m₂)|


Solved Examples:

Example 1:


If P (2, -1), Q (5, 3), and R (-2, 6) are three points, find the angle between the straight lines PQ and QR.


Solution:


The slope of PQ is given by


  • m = ( y2 – y1 ) / (x2 – x1)

  • m = ( 3 – (- 1) ) / (5 – 2 ))

  • m = 4/3


Therefore, m₁ = 4/3


The slope of QR is given by


  • m= (6 - 3 ) / (−2−5)

  • m= 3/-7

  • Therefore, m₂ = 3/-7


Substituting the values of m2 and m1 in the formula for the angle between two lines we get,


  • tan θ = ± (m₂ – m₁ ) / (1- m₁ m₂)

  • tan θ = ± (3/-7) – (4/3) ) / (1- (3/-7)(4/3))

  • tan θ = ± (37/33)


Therefore,  θ = tan -1 (37 / 33)


Example 2:


Find the angle between the following two lines.


Line 1: 4x -3y = 8


Line 2: 2x + 5y = 4


Solution:


Put  4x -3y = 8 into slope-intercept form so you can clearly identify the slope. 


  • 4x -3y = 8

  • 3y = 4x - 8

  • y = 4x / 3 - 8/3

  • y = (4/3)x - 8/3


Put 2x + 5y = 4 into slope-intercept form so you can clearly identify the slope.


  • 2x + 5y = 4

  • 5y = -2x + 4

  • y = -2x/5 + 4/5

  • y = (-2/5)x + 4/5


The slopes are 4/3 and -2/5 or 1.33 and -0.4. It does not matter which one is m₁ or m₂. You will get the same answer.


Let m₁  = 1.33 and m₂ = -0.4


  •  tan θ = ± (m1 – m₂ ) / (1+ m₁*m₂)

  •  tan θ = ± (1.33 - (- 0.4)) / (1- (1.33)*(-0.4))

  •  tan θ = ± (1.73) / (1- 0.532)

  •  tan θ = ± (1.73 ) / (0.468)

  •  tan θ= 3.696


θ = tan⁻¹ (3.69)


Example 3:


Find the acute angle between y = 3x+1 and y = -4x+3


Solution:


 m₁= 3 and m₂ = -4


  •  tan θ = ±  (m1 – m2 ) / (1+ m₁*m₂)

  •  tan θ = ± (3-(-4) ) / (1+ 3*-4)

  •  tan θ = ±  (7 ) / (1+(-12))

  •  tan θ = ± (7 ) / (-11)

  •  tan θ = ± (7/11)

  •  tan θ = 0.636


θ = tan⁻¹ (0.636)


This is all about angles formed between two lines and how to measure them. Focus on the derivation of the formulas to understand the concepts and grab hold of the idea of measuring angles between two lines.

FAQs on The Angle Between Two Lines

1. What is the standard formula to find the angle between two lines in coordinate geometry?

The acute angle, θ, between two non-perpendicular straight lines with slopes m₁ and m₂ is given by the formula: tan θ = |(m₁ - m₂) / (1 + m₁m₂)|. The modulus (absolute value) is used to ensure the result is the acute angle. The slopes (m₁ and m₂) are determined from the equations of the lines, typically by converting them to the slope-intercept form (y = mx + c).

2. How is the angle between two intersecting lines defined, and which angle is typically calculated?

When two lines intersect, they form two pairs of vertically opposite angles. One pair consists of acute angles (less than 90°) and the other consists of obtuse angles (greater than 90°). By convention, the "angle between two lines" refers to the acute angle. If θ is the acute angle, the corresponding obtuse angle will be 180° - θ.

3. What is the angle between two lines if they are parallel or perpendicular to each other?

The angle depends on the relationship between the slopes of the lines:

  • For parallel lines: The angle between them is . This condition is met when their slopes are equal (m₁ = m₂).
  • For perpendicular lines: The angle between them is 90°. This occurs when the product of their slopes is -1 (m₁ * m₂ = -1).

4. Why is the tangent function central to the formula for the angle between two lines?

The tangent function is used because it directly connects a line's angle of inclination with its slope. The slope (m) of a line is defined as the tangent of its angle of inclination (α) with the positive x-axis, i.e., m = tan(α). The angle (θ) between two lines is the difference between their respective angles of inclination (θ = α₂ - α₁). By applying the trigonometric identity for tan(α₂ - α₁), we can derive the final formula purely in terms of the lines' slopes (m₁ and m₂).

5. What is the significance of the modulus (or ± sign) in the angle formula?

The sign of the expression (m₁ - m₂) / (1 + m₁m₂) determines whether the calculated angle is acute or obtuse.

  • A positive result corresponds to the tangent of the acute angle.
  • A negative result corresponds to the tangent of the obtuse angle.
The modulus `|...|` is used as a standard convention to ensure the formula always yields the positive value, thereby directly providing the acute angle between the two lines.

6. How do you find the angle if one of the lines is vertical (parallel to the y-axis)?

The standard slope-based formula fails if one line is vertical because a vertical line has an undefined slope. In this situation, a different approach is needed. If a non-vertical line has an inclination α (where its slope m = tan α), and the vertical line has an inclination of 90°, the acute angle θ between them is calculated as θ = 90° - α. This avoids the issue of an undefined slope in the formula.

7. Can you show with a simple example how to apply the angle formula?

Certainly. Consider two lines with equations y = 2x + 5 and y = -3x + 1.

  • First, identify the slopes: m₁ = 2 and m₂ = -3.
  • Next, apply the formula: tan θ = |(m₁ - m₂) / (1 + m₁m₂)|.
  • Substitute the values: tan θ = |(2 - (-3)) / (1 + (2)(-3))| = |(5) / (1 - 6)| = |5 / -5| = |-1|.
  • Since the modulus makes the result positive, tan θ = 1.
  • Therefore, the acute angle θ is 45°.