5.1PureFoundation

y = mx + c

Every straight line can be written as y=mx+cy = mx + c, where mm is the gradient and cc is the yy-intercept. These two numbers tell you everything about the line — its steepness and where it crosses the yy-axis.

25 min Straight Line Graphs
Edexcel Straight Lines — full chapter playlist (Zeeshan Zamurred)Curated by Kepler, not produced by us. Watch it before the notes below.
Open on YouTube

What you'll be able to do

  • Identify the gradient and intercept from y = mx + c
  • Calculate a gradient from two points
  • Sketch a line from its equation
  • Rearrange a linear equation into y = mx + c form
1

Gradient and intercept

In y=mx+cy = mx + c, the coefficient mm is the gradient\textbf{gradient} (how steep) and cc is the y-intercept\textbf{y-intercept} (where it crosses the yy-axis).

y=mx+cy = mx + c
mm = gradient, cc = yy-intercept.
Example 1State the gradient and intercept of y=3x−2y = 3x - 2.
1m=3m = 3, c=−2c = -2.
Answer
gradient 3, intercept −2-2
2

Gradient from two points

The gradient between two points is the change in yy over the change in xx.

m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Rise over run.
Example 1Find the gradient through (1,2)(1, 2) and (4,11)(4, 11).
111−24−1=93\dfrac{11 - 2}{4 - 1} = \dfrac{9}{3}.
Answer
33

Tip — Keep the points in the same order top and bottom: (y₂ − y₁) over (x₂ − x₁).

3

Rearranging into the form

Equations are not always given as y=mx+cy = mx + c. Rearrange to make yy the subject so you can read off mm and cc.

Example 1Find the gradient of 2x+y=52x + y = 5.
1Rearrange: y=−2x+5y = -2x + 5.
Answer
gradient −2-2

Formula recap

y=mx+cy = mx + c
Gradient-intercept form.
m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Gradient from two points.

Common mistakes to avoid

Reading the gradient off before rearranging to y = ….
Make y the subject first, then m is the coefficient of x.
Calculating the gradient as Δx/Δy.
It is Δy/Δx — rise over run.

Key takeaways

  • y = mx + c: m is the gradient, c is the y-intercept.
  • Gradient between points = (y₂ − y₁)/(x₂ − x₁).
  • Rearrange to y = … before reading off m and c.

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. In y=4x+1y = 4x + 1, the gradient is:

    • 44
    • 11
    • −4-4
    • 00
    Show answer and explanation

    Answer: 44

    m is the coefficient of x.

  2. In y=4x+1y = 4x + 1, the y-intercept is:

    • 11
    • 44
    • 00
    • −1-1
    Show answer and explanation

    Answer: 11

    c = 1.

  3. The gradient through (1,2)(1, 2) and (4,11)(4, 11) is:

    • 33
    • 99
    • 13\tfrac{1}{3}
    • 1313
    Show answer and explanation

    Answer: 33

    9/3 = 3.

  4. Rearranged, 2x+y=52x + y = 5 has gradient:

    • −2-2
    • 22
    • 55
    • 12\tfrac{1}{2}
    Show answer and explanation

    Answer: −2-2

    y = −2x + 5.

  5. The gradient measures:

    • Steepness
    • The y-intercept
    • The length
    • The area
    Show answer and explanation

    Answer: Steepness

    How fast y changes with x.

  6. A line with gradient 0 is:

    • Horizontal
    • Vertical
    • Diagonal
    • A curve
    Show answer and explanation

    Answer: Horizontal

    No change in y.

Finished this lesson?

Loading your progress…

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 5 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.