Equation of a Line (y = mx + c)

\( y = mx + c \)
Coordinate Geometry GCSE
Question 12 of 20

Equation of line slope 0 and intercept -4.

Hint (H)
Horizontal line with y-intercept -4.

Explanation

Show / hide — toggle with X

Statement

The equation of a straight line in slope–intercept form is:

\[ y = mx + c \]

Here, \(m\) is the slope (gradient) of the line, and \(c\) is the y-intercept (the value of \(y\) when \(x=0\)).

Why it’s true

  • The slope \(m\) tells us how much \(y\) changes for a unit change in \(x\): \(\Delta y/\Delta x = m\).
  • The intercept \(c\) fixes where the line crosses the y-axis.
  • Together, slope and intercept uniquely define any non-vertical line in the plane.

Recipe (how to use it)

  1. Identify the slope \(m\).
  2. Find the y-intercept \(c\) (where the line meets the y-axis).
  3. Write equation as \(y=mx+c\).

Spotting it

This form is common in graphs of linear equations. If you see a line, its slope and y-intercept can be read directly to form the equation.

Common pairings

  • Gradient formula: \(m=\frac{y_2-y_1}{x_2-x_1}\).
  • Point–slope form \(y-y_1=m(x-x_1)\) (convertible into slope–intercept form).
  • General line form \(ax+by+c=0\).

Mini examples

  1. Slope: 2, Intercept: -3 → \(y=2x-3\).
  2. Slope: -½, Intercept: 4 → \(y=-\tfrac{1}{2}x+4\).
  3. Slope: 0, Intercept: 7 → \(y=7\) (horizontal line).

Pitfalls

  • Mixing up slope with intercept.
  • For vertical lines, slope is undefined—this form cannot be used.

Exam strategy

  • If given two points, calculate slope first and then substitute to find intercept.
  • Sketch by plotting the intercept and using the slope to find another point.

Summary

The slope–intercept equation \(y=mx+c\) is the most direct way to describe a line: \(m\) controls its steepness, and \(c\) tells where it crosses the y-axis.

Worked examples

Show / hide (10) — toggle with E
  1. Write equation of line with slope 3 and y-intercept -2.
    1. \( Equation: y=mx+c \)
    2. \( m=3, c=-2 \)
    3. \( y=3x-2 \)
    Answer: \( y=3x-2 \)
  2. Line crosses y-axis at 5 and has slope -1. Write equation.
    1. \( y=mx+c \)
    2. \( m=-1, c=5 \)
    3. \( y=-x+5 \)
    Answer: \( y=-x+5 \)
  3. Find line with slope ½ and y-intercept 4.
    1. \( y=mx+c \)
    2. \( m=½, c=4 \)
    3. \( y=½x+4 \)
    Answer: \( y=½x+4 \)
  4. Equation of horizontal line with y-intercept 7.
    1. \( Slope m=0 \)
    2. \( y=c=7 \)
    Answer: \( y=7 \)
  5. Line has slope -3 and intercept 2. Write equation.
    1. \( y=mx+c \)
    2. \( y=-3x+2 \)
    Answer: \( y=-3x+2 \)
  6. Find line with slope 4 and y-intercept -5.
    1. \( y=mx+c \)
    2. \( m=4, c=-5 \)
    3. \( y=4x-5 \)
    Answer: \( y=4x-5 \)
  7. Equation of line slope -2.5 with y-intercept 6.
    1. \( y=mx+c \)
    2. \( m=-2.5, c=6 \)
    3. \( y=-2.5x+6 \)
    Answer: \( y=-2.5x+6 \)
  8. Line has slope ⅓ and intercept -4. Write equation.
    1. \( y=mx+c \)
    2. \( m=⅓, c=-4 \)
    3. \( y=⅓x-4 \)
    Answer: \( y=⅓x-4 \)
  9. Write equation of line slope -7 and y-intercept 0.
    1. \( y=mx+c \)
    2. \( c=0 \)
    3. \( y=-7x \)
    Answer: \( y=-7x \)
  10. Equation of line slope 5 and y-intercept 3.
    1. \( y=mx+c \)
    2. \( m=5, c=3 \)
    3. \( y=5x+3 \)
    Answer: \( y=5x+3 \)