- 1. Where is a point? A recap of coordinate geometry
- 2. How steep is a line? Inclination and slope
- 3. Slope from two points: rise over run
- 4. When are two lines parallel or perpendicular?
- 5. The angle between two lines
- 6. Writing a line as an equation: point-slope form
- 7. Two-point form and y = mx + c
- 8. Intercept form and the general equation Ax + By + C = 0
- 9. How far is a point from a line?
- 10. The distance between two parallel lines
- 11. Where lines meet: intersections, concurrency and areas
- 12. A line as a mirror: images, bounces and equal distances
- Review
7 of 12·NCERT §9.3.3 · §9.3.4·5 min
Two-point form and y = mx + c
The big ideaThrough two points the line is \( y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1) \); with slope \( m \) and y-intercept \( c \) it is \( y = mx + c \).
In simple words
If you know two dots on a line, first work out how steep the line is from them, then use either dot as your starting point. And if you know where the line crosses the up-and-down axis and how steep it is, the rule is simplest of all: the height is "steepness times across, plus where you started".
Two-point form
Let a line pass through \( P_1(x_1, y_1) \) and \( P_2(x_2, y_2) \), and let \( P(x, y) \) be any point on it. The three points \( P_1 \), \( P_2 \) and \( P \) are collinear, so the slope of \( P_1P \) equals the slope of \( P_1P_2 \):
\[ \frac{y - y_1}{x - x_1} = \frac{y_2 - y_1}{x_2 - x_1} \]Multiplying out gives the two-point form:
Two-point form
- \( y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1) \): the line through \( (x_1, y_1) \) and \( (x_2, y_2) \), with \( x_1 \ne x_2 \).
It is just the point-slope form with the slope worked out from the two points. In practice: find the slope first, then write the point-slope form.
Worked example 1
Find the line through \( (2, 3) \) and \( (6, 11) \).
- Slope \( = \frac{11 - 3}{6 - 2} = 2 \).
- \( y - 3 = 2(x - 2) \), so \( 2x - y - 1 = 0 \).
- Check the other point: \( 2(6) - 11 - 1 = 0 \). Both points fit.
Worked example 2
Find the line through \( (-2, 1) \) and \( (4, -2) \).
- Slope \( = \frac{-2 - 1}{4 - (-2)} = \frac{-3}{6} = -\frac{1}{2} \).
- \( y - 1 = -\frac{1}{2}(x + 2) \). Multiply by 2: \( 2y - 2 = -x - 2 \), so \( x + 2y = 0 \).
- No constant term: this line passes through the origin, since \( (0, 0) \) satisfies it.
If \( x_1 = x_2 \), the formula breaks down because the line is vertical; its equation is simply \( x = x_1 \).
Try it: drag the two points and watch every form of the equation, and both intercepts, follow.
Slope-intercept form
Often we know a line's slope and where it crosses an axis. The point where a line crosses the y-axis is \( (0, c) \), and the number \( c \) is called its y-intercept. Picture the line cutting the y-axis 4 units above the origin: then \( c = 4 \). If it cuts the y-axis below the origin, \( c \) is negative.
Case 1: slope \( m \), y-intercept \( c \). The line passes through \( (0, c) \) with slope \( m \), so by point-slope form \( y - c = m(x - 0) \), that is
\[ y = mx + c \]This is the slope-intercept form. It is the most useful form of all, because you can read the slope and the y-intercept straight off it.
Case 2: slope \( m \), x-intercept \( d \). The x-intercept is where the line crosses the x-axis, at \( (d, 0) \). By point-slope form, \( y - 0 = m(x - d) \):
\[ y = m(x - d) \]Worked example 3
(a) Find the line with slope \( \frac{2}{3} \) and y-intercept \( -4 \). (b) Find the line with slope \( -2 \) and x-intercept 3.
- (a) \( y = \frac{2}{3}x - 4 \). Multiply by 3: \( 3y = 2x - 12 \), so \( 2x - 3y - 12 = 0 \).
- (b) \( y = -2(x - 3) \), so \( 2x + y - 6 = 0 \).
Straight lines in real life
Whenever one quantity grows by a fixed amount for each unit of another, the graph is a straight line, and \( y = mx + c \) describes it.
Worked example 4: an auto-rickshaw fare
A city's auto fare is ₹25 to start, plus ₹15 for each kilometre. Write the fare \( y \) for a trip of \( x \) km, and find the fare for 8 km.
- \( y = 15x + 25 \). The slope 15 is rupees per kilometre; the intercept 25 is what you pay before moving.
- For 8 km: \( y = 15(8) + 25 = 145 \), so ₹145.
Try it: change the start fare and the rate, and compare a trip with one twice as long.
Worked example 5: a draining tank
A water tank holds 500 litres and drains at 20 litres a minute. Write the volume \( V \) after \( t \) minutes, and find when it is empty.
- \( V = 500 - 20t \): slope \( -20 \) (falling), V-intercept 500.
- Empty when \( V = 0 \): \( t = 25 \) minutes. On the graph, that is where the line meets the time axis: its \( t \)-intercept.
Try it. (a) Find the line through \( (1, -2) \) and \( (3, 4) \). (b) Write the line with slope \( -\frac{1}{2} \) that cuts the y-axis 3 units above the origin. (c) What are the slope and y-intercept of \( y = 7 - 2x \)?
Answer
- Two-point form
- \( y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1) \).
- y-intercept
- The value \( c \) where the line crosses the y-axis, at \( (0, c) \).
- x-intercept
- The value \( d \) where the line crosses the x-axis, at \( (d, 0) \).
- Slope-intercept form
- \( y = mx + c \); with an x-intercept instead, \( y = m(x - d) \).
Words to know
What are the slope and y-intercept of \( y = -3x + 5 \)?
- Slope \( -3 \), y-intercept 5
- Slope 5, y-intercept \( -3 \)
- Slope 3, y-intercept 5
A line has slope 2 and crosses the x-axis at \( (4, 0) \). What is its equation?
- \( y = 2x + 4 \)
- \( y = 2(x - 4) \)
- \( y = 2(x + 4) \)
A taxi charges ₹40 plus ₹12 per km. On a graph of fare against distance, what does 12 stand for?
- The fare at the start
- The slope of the line
- The x-intercept
Picture and video credits