WhatsApp us
IB Maths17 Nov 2026

MYP 3 Linear Graphs and Coordinate Geometry: Gradient, y = mx + c, Midpoint and Distance, with Worked Examples

Straight-line graphs are one of the most used ideas in MYP 3 maths. Gradient, y = mx + c, parallel and perpendicular lines, midpoint and distance, four worked examples including a real-life comparison, common mistakes and a self-check set with answers.

MYP 3 Linear Graphs and Coordinate Geometry: Gradient, y = mx + c, Midpoint and Distance, with Worked Examples

A straight-line graph tells you two things at a glance: where the line starts (the y-intercept) and how fast it changes (the gradient). Almost every MYP 3 linear graphs question is a variation on finding those two numbers, writing them as y = mx + c, and explaining what they mean.

In many schools, linear graphs and coordinate geometry sit in an MYP 3 algebra unit, often taught straight after linear equations. The IB does not fix which year a topic is taught, so your school may place it slightly earlier or later. The unit is usually assessed through a test (criteria A and C) and sometimes through a real-life task (criterion D), and it leads directly into simultaneous equations and functions in MYP 4.

If you want a tutor who works from your school's unit plan, our one-to-one MYP 3 maths support covers this unit in detail.

The five facts you need

  • Gradient m = (change in y) ÷ (change in x) = (y₂ − y₁) ÷ (x₂ − x₁). It is the rise for every 1 unit across.
  • Gradient-intercept form: y = mx + c, where m is the gradient and c is the y-intercept (the value of y when x = 0).
  • Point-gradient form: y − y₁ = m(x − x₁). This is the quickest way to write a line when you know one point and the gradient.
  • Parallel lines have equal gradients. In many schools, perpendicular lines also appear: their gradients multiply to −1, so a gradient of 2 pairs with −1/2.
  • Midpoint of (x₁, y₁) and (x₂, y₂) is ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Distance is √((x₂ − x₁)² + (y₂ − y₁)²), which is Pythagoras on a grid.

A positive gradient goes up from left to right. A negative gradient goes down. A gradient of 0 is horizontal. A vertical line has an undefined gradient and an equation of the form x = k.

Worked example 1: the equation of a line through two points

A line passes through A(−2, 7) and B(4, −5). Find its equation and its intercepts.

Gradient. m = (−5 − 7) ÷ (4 − (−2)) = −12 ÷ 6 = −2.

Equation. Use y − y₁ = m(x − x₁) with point A:

y − 7 = −2(x + 2)

y − 7 = −2x − 4

y = −2x + 3

Check with B. −2(4) + 3 = −5. ✓

Intercepts. The y-intercept is (0, 3). For the x-intercept set y = 0: 0 = −2x + 3, so x = 1.5, giving (1.5, 0).

Is (5, −7) on the line? −2(5) + 3 = −7, so yes.

The step most students skip is the check. It takes ten seconds and catches nearly every sign error from the subtraction of negative coordinates.

Worked example 2: rearranging, parallel and perpendicular lines

The line L has equation 3x + 4y = 12.

(a) Find the gradient and y-intercept of L.

Make y the subject:

4y = −3x + 12

y = −0.75x + 3

Gradient −3/4, y-intercept 3. You can also plot it quickly from the intercepts: (0, 3) and (4, 0).

(b) Find the line parallel to L through (6, 1).

Same gradient, −3/4. Then 1 = −0.75(6) + c gives 1 = −4.5 + c, so c = 5.5.

y = −0.75x + 5.5

(c) Find the line perpendicular to L through (6, 1).

The perpendicular gradient is the negative reciprocal of −3/4, which is 4/3. Then 1 = (4/3)(6) + c gives 1 = 8 + c, so c = −7.

y = (4/3)x − 7

A quick way to check (c): (−3/4) × (4/3) = −1. ✓

Worked example 3: midpoint and distance

P is (1, 2) and Q is (7, 10). Find the midpoint of PQ and the length of PQ.

Midpoint: ((1 + 7) ÷ 2, (2 + 10) ÷ 2) = (4, 6).

Distance: the horizontal change is 6 and the vertical change is 8.

PQ = √(6² + 8²) = √(36 + 64) = √100 = 10 units.

Sketching the right-angled triangle under PQ makes the distance formula obvious. It is Pythagoras' theorem with the two shorter sides read off the grid. Our MYP 3 guide to Pythagoras and first trigonometry builds that idea further.

Worked example 4: a real-life comparison (criterion D style)

Two taxi firms charge as follows. Firm A: a fixed ₹60 plus ₹12 per km. Firm B: no fixed charge, ₹18 per km. When is Firm A cheaper?

Define variables. Let d be the distance in km and C the cost in rupees.

Firm A: C = 12d + 60. Firm B: C = 18d.

Interpret the parts. For Firm A, the gradient 12 means each extra km costs ₹12, and the intercept 60 is the fixed charge before the taxi moves. Firm B has a steeper gradient but starts at 0.

Find where they meet. 12d + 60 = 18d, so 6d = 60 and d = 10 km. At 10 km both cost ₹180.

Test either side. At 5 km: A costs ₹120 and B costs ₹90, so B is cheaper. At 15 km: A costs ₹240 and B costs ₹270, so A is cheaper.

Conclusion. Firm A is cheaper for journeys longer than 10 km. Firm B is cheaper for shorter ones.

Reflect. The model assumes a constant rate per km. Real fares can include waiting time in traffic or night charges, so the 10 km point is a guide, not an exact rule. That last sentence is what criterion D asks for: does the answer make sense, and what could change it?

On a graph, the two lines cross at (10, 180). Finding that crossing point algebraically is exactly the skill MYP 4 develops in simultaneous equations and inequalities.

Common mistakes our tutors see

  1. Subtracting in different orders. Writing (y₂ − y₁) on top but (x₁ − x₂) underneath flips the sign of the gradient.
  2. Double negatives. 4 − (−2) is 6, not 2. Most gradient errors in MYP 3 start here.
  3. Reading c from the wrong form. In 3x + 4y = 12 the y-intercept is 3, not 12. Rearrange first.
  4. Gradient upside down. Run over rise instead of rise over run. Say "up over across" out loud.
  5. Axes without scales or labels. A correct line on unlabelled axes loses communication marks. Label both axes, include units in real-life questions, and use a ruler.
  6. Perpendicular by sign only. The perpendicular to a gradient of 2 is −1/2, not −2.

Test and task technique

  • Show the formula, then substitute. Write m = (y₂ − y₁) ÷ (x₂ − x₁) before the numbers. This shows method and helps criterion C.
  • Check one point in your final equation. Every time.
  • In real-life tasks, define your variables in words, give the units, and finish with a sentence that answers the question. Our article on lifting criterion C communication shows what teachers look for.
  • When sketching, mark both intercepts and one other point. Three points tell you immediately if you have made a slip.

Self-check: five questions

  1. Find the gradient of the line through (3, −1) and (−1, 7).
  2. Find the equation of the line with gradient 1/2 through (4, 5).
  3. Find the gradient and y-intercept of 2x − 5y = 10.
  4. Find the midpoint and length of the segment from (1, −2) to (4, 2).
  5. Are y = 3x − 2 and 6x − 2y = 9 parallel?

Answers. (1) −2. (2) y = 0.5x + 3. (3) Gradient 2/5, y-intercept −2. (4) Midpoint (2.5, 0), length 5 units. (5) Yes. The second line is y = 3x − 4.5, so both have gradient 3.

If question 3 caught you out, the problem is usually rearranging, not graphs. Our expanding and factorising guide for MYP 3 covers the algebra underneath.

Where linear graphs lead next

In MYP 4, straight lines become one type of function among many. Students solve pairs of linear equations graphically and algebraically, shade regions for inequalities, and meet quadratic graphs. Extended maths students go further with function notation. A secure y = mx + c in MYP 3 makes all of that easier. To see where this unit sits in the year, read our overview of the MYP 3 year.

How Maths Bodhi helps

In a free demo, the tutor gives one two-point question and one real-life comparison like those above, then watches the working. Most linear graph errors come from signs and rearranging, so we fix those first and then build up to criterion D tasks with full written conclusions. For extra help with straight lines, circles and later coordinate work, see our coordinate geometry tutoring.

Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.

Written and checked by the Maths Bodhi team. Facts checked against official IB sources, November 2026.

Frequently asked questions

What do you learn about linear graphs in MYP 3?
In many schools, MYP 3 covers gradient, the equation y = mx + c, intercepts, parallel lines and often perpendicular lines, plus midpoint and distance between two points. Your school's unit plan sets the exact content.
How do you find the equation of a line from two points?
Find the gradient m = (y₂ − y₁) ÷ (x₂ − x₁), substitute one point into y − y₁ = m(x − x₁), simplify to y = mx + c, then check the other point.
What does the gradient mean in a real-life question?
It is the rate of change: how much y changes for each one-unit increase in x, for example rupees per kilometre or litres per minute. Always say it in the units of the question.
How do you know if two lines are parallel?
Write both in the form y = mx + c. If the gradients are equal (and the intercepts are different) the lines are parallel.
Where can I find MYP 3 linear graphs worksheets?
Use the exercises in your school's textbook and the self-check questions in this guide. A tutor can also set questions matched to your school's unit.
Is coordinate geometry assessed in the MYP 5 eAssessment?
The IB says the on-screen exams can include any topic or skill in the MYP maths framework, and straight-line graphs are part of algebra, so the skills from MYP 3 remain useful right through to MYP 5.
MYP 3 linear graphsgradient and y = mx + cMYP coordinate geometryMYP 3 mathsIB maths tutor Gurgaon

Related guides

Keep exploring this maths topic

IB Maths17 Nov 2026

IB MYP 3 Maths Syllabus (Grade 8): Typical Units, How It Is Assessed and What Parents Can Check

There is no single IB list of MYP 3 maths topics. Schools write their own units inside the IB framework. Here is what MYP 3 (usually Grade 8) typically covers in many schools, how criteria A to D are used, the usual sticking points and a term-by-term checklist for parents.

IB MYP 3 mathsMYP 3 maths syllabusMYP Grade 8 mathsMYP maths criteria

By Maths Bodhi Team

Read guide

IB Maths17 Nov 2026

MYP 3 Algebra: Expanding Brackets and Factorising, Step by Step (with a Pattern Investigation)

Expanding removes brackets and factorising puts them back. A practical MYP 3 guide to single and double brackets, common factors, grouping, quadratic trinomials and the difference of two squares, with worked examples, a short criterion B investigation, common errors and a self-check set.

MYP 3 algebraexpanding and factorisingMYP 3 factorisingdifference of two squares

By Maths Bodhi Team

Read guide

IB Maths17 Nov 2026

MYP 3 Pythagoras and Trigonometry: From a² + b² = c² to Your First SOH CAH TOA Questions

Pythagoras' theorem finds a missing side when you know two sides. Right-angled trigonometry finds sides and angles when you know one side and an angle. Four worked examples for MYP 3, the hypotenuse and calculator-mode mistakes, and a self-check set with answers.

MYP 3 PythagorasMYP 3 trigonometrySOH CAH TOAMYP 3 geometry

By Maths Bodhi Team

Read guide

IB Maths17 Nov 2026

How to Prepare for an MYP 3 Maths Test: A Two-Week Plan, a Sample Mini-Test and Model Answers

MYP 3 maths tests are written and marked by your school against the IB criteria, not set by the IB. How to revise for criterion A and C questions, how to get ready for B and D tasks inside a unit, a two-week plan, an original sample mini-test with model answers and a checklist.

MYP 3 math testMYP maths test preparationMYP 3 maths revisionMYP maths criteria

By Maths Bodhi Team

Read guide

IB Maths17 Nov 2026

MYP 2 Algebra: Expressions, Brackets and Linear Equations Explained with Worked Examples (Grade 7)

A Grade 7 guide to MYP 2 algebra: simplifying and expanding expressions, solving equations with the unknown on both sides or in fractions, forming equations from real situations, and turning a pattern into an nth-term rule. Four worked examples, common mistakes and a self-check.

MYP 2 algebralinear equations Grade 7expanding bracketsIB MYP maths

By Maths Bodhi Team

Read guide

IB Maths17 Nov 2026

MYP 4 Quadratics and Functions: Factorising, Completing the Square, the Formula and Graphs, with Worked Examples

Quadratics are the largest algebra unit of MYP 4 in most schools. Four original worked examples take you from factorising to completing the square, the quadratic formula and a real-life model, with function notation, common mistakes and a self-check.

MYP 4 quadraticsMYP 4 functionsquadratic equationsMYP extended maths

By Maths Bodhi Team

Read guide