# Angle Between Two Lines

Whenever two straight lines intersect, they form two sets of angles. The intersection forms a pair of acute and another pair of obtuse angles. The absolute values of angles formed depend on the slopes of the intersecting lines.

It is also worth noting here that the angle formed by the intersection of two lines cannot be calculated if one of the lines is parallel to the y-axis as the slope of a line parallel to the y-axis is an indeterminate.

## Angle Between Two Straight Lines Formula

If θ is the angle between two intersecting lines defined by y_{1}= m_{1}x_{1}+c_{1} and y_{2}= m_{2}x_{2}+c_{2, }then, the angle θ is given by

tanθ=±(m_{2}-m_{1}) / (1+m_{1}m_{2})

## Angle Between Two Straight Lines Derivation

Consider the diagram below:

In the diagram above, the line L_{1} and line L_{2} intersect at a point.

Let the slope measurement can be taken as

tan θ_{1} = m_{1 }and tan θ_{2} = m_{2}

Also, from the figure, we can infer that θ = θ_{1}-θ_{2}

Now, tan θ = tan (θ_{1}-θ_{2}) = (tan θ_{1} – tan θ_{2} ) / (1- tan θ_{1}tan θ_{2})

Substituting the values of tan θ_{1} and tan θ_{2 } as m_{1} and m_{2} respectively, we have,

tanθ= (m_{1} – m_{2} ) / (1- m_{1}m_{2})

It should be noted that the value of tan θ in this equation will be positive if θ is acute and negative if θ is obtuse.

## Angle Between Two Lines Coordinate Geometry

In analytic geometry, if the coordinates of three points A, B, and C are given, then the angle between the lines AB and BC can be calculated as follows:

For a line whose endpoints are (x_{1}y_{1}) and (x_{2}y_{2}), the slope of the line is given by the equation

m = \(\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\)

The angle between the two lines can be found by calculating the slope of each line and then using them in the formula to determine the angle between two lines when the slope of each line is known from the equation

tan θ=± (m_{1} – m_{2} ) / (1- m_{1}m_{2})

### Problem With Solution

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

The slope of PQ is given by

m = ( y_{2} – y_{1} ) / (x_{2} – x_{2})

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

m= 2/4

Therefore, m_{1}=1/2

The slope of QR is given by

m= (−4−3) / (−2−2)

m= 7/4

Therefore, m_{2} = 7/4

Substituting the values of m2 and m1 in the formula for the angle between two lines when we know the slopes of two sides, we have,

tan θ=± (m_{1} – m_{2} ) / (1- m_{1}m_{2})

tan θ=± ((½) – (7/4) ) / (1- (1/2)(7/4))

tan θ=± ⅔

Therefore, θ = tan -1 (⅔)