Angle between two lines

Short Questions

Write down the formula to find the angle between the lines y = m1x + c1 and y = m2x + c2. Also write the condition of perpendicularity of these lines.

The formula to find the angle between the lines y = m1x + c1 and y = m2x + c2 is:
tanθ = ±(m1m21+m1m2)(\frac{m_1 \, - \, m_2}{1 \, + \, m_{1}m_{2}})

Also, the condition of perpendicularity of these lines is m1 × m2 = -1.

Prove that the straight line passing through the points (3, -4) and (-2, 6) and the straight line having equation 2x + y + 3 = 0 are parallel.

Given equation of straight line,
2x + y + 3 = 0 --- (i)

Slope of equation (i),
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -21\frac 21 = -2 --- (a)

Again, slope of another straight line that pass through the point (3, -4) = (x1, y1) and (-2, 6) = (x2, y2),
m2 = y2 - y1x2 - x1\frac{y_2 \text{ - } y_1}{x_2 \text{ - } x_1} = 6 + 4-2 - 3\frac{\text{6 + 4}}{\text{-2 - 3}} = -2 --- (b)

From (a) and (b),
m1 = m2 = -2

Hence, given straight lines are parallel.

If the lines 3x + my = 5 and x2\frac x2 + y3\frac y3 = 1 are parallel to each other, find the value of m.

Here, Slope of 3x + my = 5 is,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -3m\frac 3m

Again, Slope of x2\frac x2 + y3\frac y3 = 1 is,
m2 = -1213\frac{\frac 12}{\frac 13} = -3m\frac 3m = -32\frac 32

Since, the lines are parallel, m1 = m2 or, - 3m\frac 3m = -32\frac 32
∴ m = 2.

The straight line having equation 3x + 4y = 12 and 2x - py = 5 are perpendicular to each other, find the value of p.

Here, Slope of straight line having equation 3x + 4y = 12 is,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -34\frac 34

Again, slope of 2x - py = 5 is, m2 = 2p\frac 2p

Since, the lines are perpendicular to each other,
m1 × m2 = -1 or, -64p\frac {6}{4p} = -1
∴ p = 32\frac 32

Find the slope of the line perpendicular to the straight line 3x - 4y = 10.

Here, Slope of straight line having equation 3x - 4y = 10 is,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = 34\frac 34

Let, Slope of another line = m2

Since, the lines are perpendicular to each other, m1 × m2 = -1 or, 34\frac 34 × m2 = -1
∴ m2 = -43\frac 43

If the line passing through points (3, -4) and (-2, k) is perpendicular to the line having equation 5x + y = -3, find the value of k.

Here, slope of line passing through points (3, -4) and (-2, k) is,
m1 = y2 - y1x2 - x1\frac{y_2 \text{ - } y_1}{x_2 \text{ - } x_1} = k + 4-2 - 3\frac{\text{k + 4}}{\text{-2 - 3}}

Also, slope of line having equation 5x + y = -3,
m2 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -51\frac 51

Since, the lines are perpendicular, m1 × m2 = -1 or, k + 4-5\frac{\text{k + 4}}{\text{-5}} × -5 = -1
∴ k = -5

Find the acute angle between the lines having slope 3-\sqrt3 and 3\sqrt3 respectively.

Given slopes,
m1 = 3-\sqrt3 and m2 = 3\sqrt3

Now, for acute angle,
tanθ = +m1 - m21 + m1m2\frac{m_1\text{ - }m_2}{1 \text{ + }m_1 m_2} = 3 - 31 - 3\frac{-\sqrt3 \text{ - } \sqrt3}{\text{1 - 3}}
= 232\frac{-2\sqrt3}{-2}
= tan60°
∴ θ = 60°

If the slopes of the lines AB and CD are 3 and -2 respectively, find the acute angle between them.

Given slopes,
Slope of line AB (m1) = 3
Slope of line CD (m2) = -2

Let, θ be the angle between given lines,
tanθ = ±m1 - m21 + m1m2\frac{m_1\text{ - }m_2}{1 \text{ + }m_1 m_2} = ±3 + 21 - 6\frac{3 \text{ + } 2}{\text{1 - 6}}
= ±55\frac 55
= ±1

Taking positive sign,
or, tanθ = 45°
∴ θ = 45°

Note: Acute angle means an angle less than 90° while obtuse angle is an angle greater than 90° but less than 180°. Example for obtuse angle

If the straight lines Px + 3y - 12 = 0 and 4y - 3x + 7 = 0 are parallel to each other, find the value of P.

Here, Slope of line Px + 3y - 12 = 0,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -P3\frac P3

Again, slope of line 4y - 3x + 7 = 0,
m2 = 34\frac 34

Since, the lines are parallel,
m1 = m2 or, -P3\frac P3 = 34\frac 34
∴ P = -94\frac 94

If the lines 2x - 8y + 6 = 0 and px - 12y - 4 = 3 are parallel to each other, find the value of p.

Here, slope of the line 2x - 8y + 6 = 0 is,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = 28\frac 28 = 14\frac 14

Also, slope of the line px - 12y - 4 = 3 is,
m2 = p12\frac{p}{12}

Since, the lines are parallel, m1 = m2 or, -14\frac 14 = p12\frac{p}{12}
∴ p = 3

If two straight lines px + qy + r = 0 and lx - my + n = 0 are perpendicular to each other, show pl = qm.

Here, slope of the line px + qy + r = 0 is,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -pq\frac pq

Also, slope of the line lx - my + n = 0 is,
m2 = lm\frac lm

Since, the lines are perpendicular, m1 × m2 = -1 or, -pq\frac pq × lm\frac lm = -1
∴ pl = qm

Two straight lines px + 3y - 12 = 0 and 4y - 3x + 7 = 0 are perpendicular to each other, find the value of p.

Here, slope of the line px + 3y - 12 = 0 is,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -p3\frac p3

Also, slope of the line 4y - 3x + 7 = 0 is,
m2 = 34\frac 34

Since, the lines are perpendicular, m1 × m2 = -1 or, -p3\frac p3 × 34\frac 34 = -1
∴ p = 4

If a line passing through the points (4, -p) and (-2, 6) is parallel to the line having equation 2y + 3x = -3, find the value of p.

Here, slope of the line passing through the points (4, -p) and (-2, 6) is,
m1 = y2 - y1x2 - x1\frac{y_2 \text{ - } y_1}{x_2 \text{ - } x_1} = 6 + p-2 - 4\frac{\text{6 + p}}{\text{-2 - 4}} = 6 + p-6\frac{\text{6 + p}}{\text{-6}}

Also, slope of the line 2y + 3x = -3 is,
m2 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = 32\frac{-3}{2}

Since, the lines are parallel, m1 = m2 or, 6 + p-6\frac{\text{6 + p}}{\text{-6}} = 32\frac{-3}{2}
or, 6 + p = 9
∴ p = 3

Show that the lines y + 3\sqrt3x + 4 = 0 and x - 3\sqrt3y = 5 are perpendicular to each other.

Here, slope of the line y + 3\sqrt3x + 4 = 0,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = 31\frac{-\sqrt3}{1}

Again, slope of the line x - 3\sqrt3y = 5,
m2 = 13\frac{1}{\sqrt3}

Now, for the case of perpendicular, m1 × m2 = -1 or, 31\frac{-\sqrt3}{1} × 13\frac{1}{\sqrt3} = -1
∴ -1 = -1

Hence, the given lines are perpendicular to each other.

Show that the lines ax + by + c = 0 and bx - ay + c = 0 are perpendicular to each other.

Here, slope of the line ax + by + c = 0,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -ab\frac ab

Again, slope of the line bx - ay + c = 0,
m2 = ba\frac ba

Now, for the case of perpendicular, m1 × m2 = -1 or, -ab\frac ab × ba\frac ba = -1
∴ -1 = -1

Hence, the given lines are perpendicular to each other.

If the straight lines 2x + 3y + 6 = 0 and ax - 5y + 20 = 0 are perpendicular to each other, find the value of a.

Here, slope of the line 2x + 3y + 6 = 0,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = -23\frac 23

Again, slope of the line ax - 5y + 20 = 0,
m2 = a5\frac a5

Since, the lines are perpendicular,
m1 × m2 = -1 or, -23\frac 23 × a5\frac a5 = -1
∴ a = 152\frac{15}{2}

Find the obtuse angle between two lines 2x - y + 4 = 0 and 3x + y + 3 = 0.

Slope of line 2x - y + 4 = 0,
m1 = -Coefficient of xCoefficient of y\frac{\text{Coefficient of x}}{\text{Coefficient of y}} = 2
Slope of line 3x + y + 3 = 0,
m2 = -3

Let, θ be the angle between given lines,
tanθ = ±m1 - m21 + m1m2\frac{m_1\text{ - }m_2}{1 \text{ + }m_1 m_2} = ±2 - (-3)1 - 6\frac{\text{2 - (-3)}}{\text{1 - 6}}
= ±55\frac {5}{-5}
= ± (-1)
= ± 1

Now, for obtuse angle, taking negative sign,
so, tanθ = -tan45°
or, tanθ = tan(180° - 45°)
∴ θ = 135°

Note: Instead of using '±' × '-' = '±' technique you can also go with 'taking positive sign' from '= ± (-1)' step. The main goal is to find the obtuse angle (which means angle between 90° to 180°).