ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude

Parallel and perpendicular lines: comparing slopes

Compare slopes to tell when two lines are parallel or perpendicular, read the slope of ah + bv = c as -a/b, find the k that makes two lines parallel or perpendicular, write a line through a point parallel or perpendicular to another, and test three points for lying on one line.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

As in the graphs of linear equations lesson, a point is written (h, v): h is measured along the horizontal axis and v up the vertical axis, since x is kept for multiplication. A line such as 2h - 3v = 6 is made of all the points whose two numbers satisfy it. The slope of the line through (h1, v1) and (h2, v2) is (v2 - v1) / (h2 - h1), the change in v divided by the change in h. A horizontal line has slope 0, and a vertical line, h = constant, has no slope because its run is 0. Finding intercepts and meeting points belongs to that lesson and is not repeated here. In this lesson m stands for a slope and k for an unknown number, and all the lines lie in one flat plane, such as a sheet of graph paper or a town map.

The core rule: equal slopes, or slopes that multiply to -1

Two lines that are not vertical are parallel exactly when their slopes are equal: they climb at the same rate, so the gap between them never changes and they never meet. If they also share a point, they are not two lines at all but one line written twice. Two lines that are neither vertical nor horizontal are perpendicular, meeting at a right angle, exactly when their slopes multiply to -1. So the perpendicular slope is found by turning the fraction upside down and changing its sign: slope 2/3 gives -3/2, slope -4 gives 1/4, and slope 1 gives -1. The two slopes always have opposite signs, since one line rises from left to right while the other falls. Horizontal and vertical lines are the special case. Any two horizontal lines are parallel, any two vertical lines are parallel, and every horizontal line is perpendicular to every vertical line, even though the product rule cannot be used, because a vertical line has no slope.

A method: the slope of ah + bv = c, and finding k

To read the slope of ah + bv = c with b not 0, get v on its own: bv = c - ah, so v = c/b - (a/b)h, and the slope is -a/b. For 5h - 2v = 7, a = 5 and b = -2, so the slope is -5/(-2) = 5/2. When b = 0 the line is vertical, and when a = 0 it is horizontal. For two lines ah + bv = c and ph + qv = r, cross-multiplying the slope conditions gives two quick tests. The lines are parallel, or are one and the same line, when a x q = p x b. They are perpendicular when a x p + b x q = 0, and this second test also covers a horizontal line with a vertical one: 0h + 1v = 2 and 1h + 0v = 5 give 0 x 1 + 1 x 0 = 0. So for kh + 3v = 7 and 4h - 6v = 1, parallel needs k x (-6) = 4 x 3, that is k = -2, and perpendicular needs 4k + 3 x (-6) = 0, that is k = 4.5. With slopes, -k/3 must equal 2/3, or must multiply with 2/3 to give -1.

A further case: lines through a point, and three points in a line

The line through (h1, v1) with slope m holds every point (h, v) for which v - v1 = m x (h - h1), since that is the slope condition between the two points. When a line ah + bv = c is given, there is a quicker way. A parallel line keeps a and b and changes only the constant, so the line through (h1, v1) parallel to it is ah + bv = a x h1 + b x v1. A perpendicular line swaps the numbers in front of h and v and changes the sign of one of them. Through (2, -1), the line parallel to 3h - 5v = 8 is 3h - 5v = 6 + 5 = 11, and the perpendicular line is 5h + 3v = 10 - 3 = 7. The slopes of 3h - 5v = 8 and 5h + 3v = 7 are 3/5 and -5/3, which multiply to -1, as they should. Three points P, Q and R lie on one line exactly when the slope of PQ equals the slope of PR. Equal slopes alone would only make two lines parallel, but here both lines pass through P, so they must be the same line. If P and Q have the same h, the line is vertical, and R must have that h too.

Common mistakes

Reading the slope of ah + bv = c as a/b, b/a or -b/a; when unsure, get v on its own. For a perpendicular slope, turning the fraction over without changing its sign, or changing the sign without turning it over: a line perpendicular to slope 2/5 has slope -5/2, not 5/2 or -2/5. Calling 2h + 3v = 6 and 4h + 6v = 12 parallel, when the second is the first doubled and both describe one line. Giving a vertical line the slope 0, which belongs to horizontal lines. Changing a and b when writing a parallel line, or keeping the old constant instead of putting the given point in to find the new one. In the three-point test, comparing the slope of PQ with the slope of a line that does not pass through P or Q, or taking the two differences in a slope in opposite orders, which flips its sign.

A routine for parallel and perpendicular questions

1. Write each line as ah + bv = c. 2. Its slope is -a/b; b = 0 means a vertical line and a = 0 a horizontal one. 3. Parallel: equal slopes, or a x q = p x b for ah + bv = c and ph + qv = r; make sure the two equations are not multiples of each other. 4. Perpendicular: slopes that multiply to -1, or a x p + b x q = 0; a horizontal line is always perpendicular to a vertical one. 5. Line through a given point: keep a and b for a parallel line, swap them and change one sign for a perpendicular line, then put the point in to find the constant. 6. Three points P, Q and R: compare the slopes of PQ and PR. 7. Check the final equation by putting the given point into it and multiplying the slopes.

Worked examples

  1. Find the value of k for which the lines 6h + kv = 11 and 4h - 10v = 3 are parallel, and the value for which they are perpendicular.

    1. The slope of 4h - 10v = 3 is -4/(-10) = 2/5. The slope of 6h + kv = 11 is -6/k.
    2. Parallel: -6/k = 2/5, so 2k = -30 and k = -15. The quick test agrees: 6 x (-10) = 4 x k gives k = -15.
    3. With k = -15 the first line is 6h - 15v = 11. Multiplying the second line by 1.5 gives 6h - 15v = 4.5. The left sides now match but the right sides do not, so these are two separate parallel lines rather than one line.
    4. Perpendicular: (-6/k) x (2/5) = -1, so -12 = -5k and k = 12/5 = 2.4. Quick test: 6 x 4 + k x (-10) = 0 gives 10k = 24, so k = 2.4.

    Answer: The lines are parallel when k = -15 and perpendicular when k = 2.4.

  2. On a grid map of a new township near Indore, a main road runs along the line 2h - 3v = 6. A service lane must pass through the school at S(4, 5) parallel to the road, and a water pipe must pass through S perpendicular to the road. Find the equations of the lane and the pipe.

    1. The road has slope -2/(-3) = 2/3.
    2. The lane keeps the numbers 2 and -3: 2h - 3v = c. Putting in S gives c = 2 x 4 - 3 x 5 = 8 - 15 = -7, so the lane is 2h - 3v = -7.
    3. The pipe swaps 2 and -3 and changes one sign: 3h + 2v = c. Putting in S gives c = 3 x 4 + 2 x 5 = 12 + 10 = 22, so the pipe is 3h + 2v = 22.
    4. Check the slopes: the pipe has slope -3/2, and (2/3) x (-3/2) = -1, so it is perpendicular to the road. The lane has slope 2/3, the same as the road, and a different constant, so it is parallel.

    Answer: The service lane is 2h - 3v = -7 and the water pipe is 3h + 2v = 22.

  3. Three electric poles along a straight wire in a village near Shimla are marked on a grid at P(-2, 7), Q(1, 1) and R(k, -5). Find k.

    1. Slope of PQ = (1 - 7) / (1 - (-2)) = -6 / 3 = -2.
    2. Slope of PR = (-5 - 7) / (k - (-2)) = -12 / (k + 2).
    3. For one straight line the slopes must be equal: -12 / (k + 2) = -2, so k + 2 = 6 and k = 4.
    4. Check with QR: (-5 - 1) / (4 - 1) = -6 / 3 = -2, the same slope.

    Answer: k = 4, so the third pole is at R(4, -5).

Practice checks

  1. What is the slope of every line perpendicular to 2h - 5v = 10?
  2. For which value of k is the line kh + 6v = 5 parallel to the line 3h - 2v = 8?
  3. Which line passes through the point (3, -2) and is perpendicular to 5h + 2v = 9?
  4. On a grid plan of a straight canal in Punjab, three water gauges stand at P(1, -1), Q(3, 5) and R(k, 11). For which value of k do all three lie on one straight line?
  5. The line through A(2, k) and B(5, 9) is perpendicular to the line 3h + 4v = 7. What is k?

Sources checked