• Practice
  • About 22 min
  • 5 practice questions

Straight lines: slope, intercepts and the standard forms

Find the slope and inclination of a line, test collinearity, and write the equation of a line in slope-intercept, point-slope, two-point, intercept, normal and parametric form, including simple linear models.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Find the slope from the angle of inclination, from two points or from ax + by + c = 0.
  • Show that three points are collinear.
  • Choose and use the right form of the equation of a line for the data given.
  • Use the normal form x cos α + y sin α = p and the parametric form.
  • Build a straight-line model from a real situation.

A linear equation ax + by + c = 0, with a and b not both zero, always represents a straight line, which is why it is called linear. Two pieces of information fix a line, and each pair of data, such as a slope and a point or two intercepts, gives a standard form of its equation.

Inclination and slope

The angle of inclination θ of a line is the angle it makes with the positive x-axis, measured anticlockwise, with 0 ≤ θ < 180°. The slope (gradient) is m = tan θ. It can be found in three ways: m = tan θ; m = (y₂ − y₁)/(x₂ − x₁) from two points with x₂ ≠ x₁; and m = −a/b from ax + by + c = 0 with b ≠ 0. A slope is positive when y increases with x (0 < θ < 90°), negative when y decreases (90° < θ < 180°), zero for a horizontal line, and undefined for a vertical line (θ = 90°).

Example. The line through (1, 1) and (3, 1 + 2√3) has slope 2√3/2 = √3, so tan θ = √3 and θ = 60°. A line with slope −1 has θ = 135°.

Collinear points. Three points A, B, C lie on one line if the slope of AB equals the slope of BC. For A(1, 5), B(3, 9) and C(−2, −1): slope AB = (9 − 5)/(3 − 1) = 2 and slope AC = (−1 − 5)/(−2 − 1) = 2, so the points are collinear.

Intercepts

The x-intercept is where the line meets the x-axis (y = 0) and the y-intercept is where it meets the y-axis (x = 0). Intercepts may be positive or negative. The x-axis is the line y = 0 and the y-axis is the line x = 0.

The standard forms

Which form for which data
Data givenFormEquation
Slope m, y-intercept bSlope-intercepty = mx + b
Slope m, point (x₁, y₁)Point-slopey − y₁ = m(x − x₁)
Two pointsTwo-point(y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁)
Intercepts a and b (both non-zero)Interceptx/a + y/b = 1
Length p of the perpendicular from O, its angle αNormalx cos α + y sin α = p
Point (x₁, y₁), inclination θParametric(x − x₁)/cos θ = (y − y₁)/sin θ = r
Any lineGeneralax + by + c = 0

Special cases: y = mx passes through the origin, y = b is parallel to the x-axis, and a vertical line through (x₁, y₁) is x = x₁, which the point-slope form cannot give because its slope is undefined. The intercept form cannot describe lines through the origin or lines parallel to an axis.

Worked example 1: four forms in action

(i) Slope 2/3, y-intercept −4: y = (2/3)x − 4, that is 2x − 3y − 12 = 0. (ii) Through (3, −2) with slope −1/2: y + 2 = −(1/2)(x − 3), so 2y + 4 = −x + 3, that is x + 2y + 1 = 0. (iii) Through (2, 3) and (6, −5): slope = (−5 − 3)/(6 − 2) = −2, so y − 3 = −2(x − 2), that is 2x + y − 7 = 0; check (6, −5): 12 − 5 − 7 = 0. (iv) x-intercept 4 and y-intercept −6: x/4 + y/(−6) = 1; multiplying by 12, 3x − 2y = 12.

The normal form

Let the perpendicular OP from the origin to the line have length p > 0 and make angle α with the positive x-axis. If the line cuts the axes at A and B, the right triangles OPA and OPB give OA = p/cos α and OB = p/sin α. The intercept form x/OA + y/OB = 1 becomes x cos α + y sin α = p. The textbook notes that this holds in every position of the line when p is taken positive and α is measured anticlockwise from the x-axis.

Example. p = 4 and α = 120°: x cos 120° + y sin 120° = 4, that is −x/2 + (√3/2)y = 4, so x − √3y + 8 = 0.

The parametric form

Through Q(x₁, y₁) at inclination θ, a point P at distance r along the line has x − x₁ = r cos θ and y − y₁ = r sin θ. So (x − x₁)/cos θ = (y − y₁)/sin θ = r, and every point of the line is (x₁ + r cos θ, y₁ + r sin θ). The parameter r is positive on one side of Q and negative on the other. This form is the quickest way to find points at a given distance along a line.

Worked example 2: points at a given distance

Find the points 3√2 units from (1, 2) on the line through (1, 2) inclined at 45°. Here cos 45° = sin 45° = 1/√2 and r = ±3√2. So x = 1 ± 3√2 × (1/√2) = 1 ± 3 and y = 2 ± 3. The points are (4, 5) and (−2, −1). Check: the distance from (1, 2) to (4, 5) is √(9 + 9) = 3√2.

Choosing a form

  • A point is known
    • With a slope: point-slope
    • With a second point: two-point
    • With an inclination and distances along the line: parametric
  • Intercepts are known
    • Both: intercept form
    • y-intercept with slope: slope-intercept
  • The perpendicular from O is known
    • Its length p and angle α: normal form

Straight-line models

When one quantity changes at a constant rate with respect to another, the relation is linear, and the constant rate is the slope. The independent variable is plotted on the x-axis and the dependent one on the y-axis; the two axes may use different scales.

Worked example 3: two models (made-up figures)

(i) A water tank holds 1200 litres and drains at a steady 40 litres per minute. With x the time in minutes and y the litres left, the slope is −40 and the y-intercept 1200, so y = 1200 − 40x. The tank is empty when y = 0, that is after x = 30 minutes. (ii) A line with negative slope passes through (1, 4) and cuts the positive axes at P and Q. Write the slope as −k with k > 0: the line y − 4 = −k(x − 1) has intercepts OP = 1 + 4/k and OQ = 4 + k. Then OP + OQ = 5 + (4/k + k) ≥ 5 + 2√(4/k × k) = 9, by AM ≥ GM, with equality when 4/k = k, that is k = 2. So the least value of OP + OQ is 9, for the line 2x + y = 6 (intercepts 3 and 6).

Key takeaways: slope is tan θ, rise over run, or −a/b; equal slopes show collinearity; pick the form that matches the data; the normal form uses the perpendicular from the origin; and the parametric form gives points at a chosen distance along the line.

Check your understanding

  1. 1. What is the slope of the line joining (2, 5) and (6, −3)?

    1. 2
    2. −1/2
    3. −2
    4. 1/2
    Show answer

    Answer: C. m = (y₂ − y₁)/(x₂ − x₁) = (−3 − 5)/(6 − 2) = −8/4 = −2.

  2. 2. What is the angle of inclination of a line whose slope is −√3?

    1. 60°
    2. 120°
    3. 150°
    4. −60°
    Show answer

    Answer: B. tan θ = −√3 with 0 ≤ θ < 180° gives θ = 180° − 60° = 120°. The inclination is never negative, so −60° is not allowed.

  3. 3. Which is the equation of the line with x-intercept 3 and y-intercept −2?

    1. 2x − 3y = 6
    2. 3x − 2y = 6
    3. 2x + 3y = 6
    4. 3x + 2y = 6
    Show answer

    Answer: A. x/3 + y/(−2) = 1. Multiplying by 6: 2x − 3y = 6. Check: y = 0 gives x = 3 and x = 0 gives y = −2.

  4. 4. The perpendicular from the origin to a line has length 2 and makes 30° with the positive x-axis. Which is the line?

    1. x + √3y = 4
    2. √3x − y = 4
    3. √3x + y = 2
    4. √3x + y = 4
    Show answer

    Answer: D. Normal form: x cos 30° + y sin 30° = 2, that is (√3/2)x + (1/2)y = 2. Multiplying by 2: √3x + y = 4.

  5. 5. A taxi charges a fixed ₹40 plus ₹12 per kilometre (made-up rates). Using y = 12x + 40, what does a 10 km ride cost?

    1. ₹160
    2. ₹120
    3. ₹52
    4. ₹400
    Show answer

    Answer: A. The slope 12 is the rate per km and 40 is the y-intercept. For x = 10: y = 120 + 40 = 160 rupees.

Privacy · Terms · Refunds · Delivery