y = mx + c - Definition, Formula, and Examples

y = mx + c - Definition, Formula, and Examples

TL;DR

y = mx + c is the UK form of the straight-line equation, where m is the gradient (slope) and c is the y-intercept. This article defines each term, derives the equation, shows how to graph it and read m and c straight off it, and clears up the one thing that confuses everyone: y=mx+c and y=mx+b are the same equation in different notation.

Last updated on July 22, 2022 8 min read

The Same Line, Written Two Different Ways Across an Ocean

A student in London learns straight lines as y=mx+c. A student in New York learns the identical idea as y=mx+b. Both are staring at exactly the same equation, the same graph, the same gradient, and the same crossing point on the vertical axis. The only thing that changed on the flight across the Atlantic was one letter, and that quiet difference trips up more learners than the actual mathematics ever does.

What Is y = mx + c?

y = mx + c is the slope-intercept form of the equation of a straight line, in which m is the gradient of the line and c is the y-intercept, the value of y where the line crosses the y-axis. Give any straight line's gradient and its crossing point, and this single equation draws it.

Keep the definition in view because two symbols carry the whole idea. The gradient m measures steepness: how much y climbs for each step of 1 in x. A positive m slopes up left-to-right; a negative m slopes down. The intercept c is where the line meets the y-axis, the point (0,c).

So what does c actually mean? It is the value of y when x=0. Set x=0 in y=mx+c and you get y=c - the line's starting height on the vertical axis.

Deriving the Equation

The equation is not handed down; it falls straight out of the definition of gradient. The gradient between the y-intercept (0,c) and any general point (x,y) on the line is

m = (y - c) / (x - 0).

Multiply both sides by x:

mx = y - c.

Add c to both sides:

y = mx + c.

That is the whole derivation. Every symbol earns its place: m came from the gradient definition, c from the intercept point.

y = mx + c and y = mx + b: The Same Equation

This is the point of this article's differentiation, so let it be blunt: y=mx+c and y=mx+b are identical. The letter for the y-intercept is a regional convention, nothing more.

There is no mathematical difference. In both, m is the gradient and the third letter is the y-intercept. If you meet a US textbook using b, read b as "the same thing my book calls c" and carry on.

UK / India form US form
Equation y=mx+c y=mx+b
Gradient symbol m m
Y-intercept symbol c b
The mathematics identical identical

Examples of y = mx + c

Example 1

Write the equation of the line with gradient m=3 and y-intercept c=−5.

Substitute directly into y=mx+c.

y = 3x + (-5).

Final answer: y=3x−5.

Example 2

A line has gradient 4 and passes through (0,2). A student writes y=4x+4 because both numbers are on the line. Correct?

It is tempting to grab both given numbers, the gradient 4 and the x-coordinate 0… no, the student grabbed the gradient and reused it as the intercept, which mixes up two completely different roles.

Watch where it breaks: test x=0 in y=4x+4. You get y=4, but the line is meant to pass through (0,2), so y should be 2. The equation is wrong.

The correct way keeps m and c in their proper slots. The gradient is m=4; the intercept c is the y-value when x=0, which the point (0,2) tells us is 2.

y=4x+2.

Final answer: y=4x+2.

Example 3

Find the gradient and y-intercept of y=−2x+7.

The equation is already in y=mx+c form, so read the values straight off.

m=−2, c=7.

Final answer: gradient −2, intercept 7.

Example 4

Rearrange 5x+4y=12 into y=mx+c form and state the gradient and intercept.

Isolate y one step at a time.

4y = −5x + 12
y = −5/4x + 3.

Now it is in slope-intercept form.

m=−5/4, c=3.

Final answer: y=−5/4x+3; gradient −5/4, intercept 3.

Example 5

A line passes through (2,7) with gradient 3. Find c and write the equation.

Substitute the known point and gradient into y=mx+c and solve for c.

7=3(2)+c 7=6+c c=1.

Final answer: y=3x+1.

Example 6

Find the equation of the line through (1,5) and (3,11).

First find the gradient using the formula, m=(y2−y1)/(x2−x1).

m= (11−5)/(3−1) = 6/2 = 3.

Now find c by substituting one point, say (1,5):

5=3(1)+c 5=3+c c=2.

Final answer: y=3x+2.

Why This Form Matters: "Two Numbers Fix A Whole Line"

The power of y=mx+c is that it compresses an infinite line into two numbers you can read at a glance. That compactness is why straight-line models sit under so much everyday reasoning.

The Mistakes Students Make Most Often

Mistake 1: Swapping the gradient and the intercept

Where it slips in: reading m and c off an equation, or building one from a gradient and a point.

Don't do this: treat the number attached to x as the intercept, or the standalone number as the gradient.

The correct way: m is always the coefficient of x; c is always the standalone term. Anchor it instead: "m sits with the x; c sits alone."

Mistake 2: Reading c wrong when the equation is not yet rearranged

Where it slips in: an equation like 5x+4y=12, where y is not isolated.

Don't do this: call 12 the intercept because it is the standalone number.

The correct way: you can only read m and c once the equation is genuinely in y=mx+c form. Rearrange first, then read.

Mistake 3: Thinking c and b mean different things

Where it slips in: switching between a UK/Indian resource and a US one.

Don't do this: treat y=mx+b as a new, separate formula to relearn.

The correct way: b and c are the same y-intercept; the letter is regional.

Conclusion