IB Middle Years Programme · Mathematics (Standard) MYP Year 5

Graphs and Relations

Cover illustration for Graphs and Relations (Mathematics (Standard) MYP Year 5).
MYP · Mathematics (Standard) MYP Year 5

Graphs and Relations

MYP Year 5 Mathematics — Number & Algebra strand: Graphs and Relations

22 min readStandardCore strand — tested every unit through Criterion B (Investigating Patterns) and Criterion C (Communicating), and it's the backbone of almost every real-life modelling task you'll see on a summative.

A graph is just a frozen story — two quantities changing together, drawn so you can read the plot without watching the whole movie. The skill examiners actually test isn't plotting points (a computer does that); it's translating between three languages — the picture, the equation, and the real-world situation — without losing information crossing between them. Every question in this topic, from a cyclist's journey to a transformed parabola, is really asking: can you move fluently between graph, equation, and context?

Overview

What this topic actually covers

A relation connects two variables; a function is a relation where every input has exactly one output. Almost everything below is one of four skills applied to different graph families: reading a graph, plotting a graph from an equation, finding the equation of a graph, and predicting how a graph changes shape or position.

  • Real-life graphs (distance-time, cost, temperature) test whether you can attach meaning to gradient and intercept, not just calculate them.
  • The Cartesian plane is the shared language — coordinates, distance, midpoint — that every other subtopic depends on.
  • Linear, quadratic, cubic and exponential graphs each have a signature shape; recognising the shape from the equation (and vice versa) is tested constantly.
  • Parallel/perpendicular and transformations are really the same idea in disguise: how does changing a number in the equation change the picture?

The shape of the chapter

Command terms that drive the marks in this topic

Command termWhat it demandsAOMark-earning move
InterpretAttach real-world meaning to a graph feature — say what the gradient/intercept means, not just its numeric value.Criterion A/BFull marks need the unit and the context sentence, not just the number.
SketchShow correct overall shape, intercepts and turning points — proportion matters more than precision plotting.Criterion CMissing an intercept or wrong end-behaviour loses marks even if the shape 'looks right'.
Determine / CalculateProduce a specific numeric answer with working shown.Criterion AMethod mark is separate from the answer mark — write the formula before substituting.
AnalyseBreak down how a change in the equation affects the graph, and explain the connection.Criterion BA description with no algebraic link ('it's steeper') scores lower than one that names the cause.
DeduceUse a given result plus reasoning to reach a new fact without re-deriving from scratch.Criterion BYou may quote the earlier answer directly — re-doing the whole calculation wastes time, not marks, but skipping the logic link does lose marks.
Justify / ExplainGive a reasoned argument, not just a stated conclusion.Criterion CA bare 'yes' or 'no' answer without the supporting calculation earns close to zero.

Key point

Before touching any formula, identify what each axis represents and its units. Most lost marks in this topic come from a correct calculation attached to the wrong meaning — a gradient of 30 is worthless without 'km/h'.

Interpreting Real-Life Graphs

Reading meaning off a graph

On a distance–time graph, gradient is always speed. A steeper line means faster travel; a flat (horizontal) line means the object hasn't moved at all during that interval, even though time is still passing.

  • Gradient formula: — the units it produces (km/h, m/s, km/min) depend entirely on the axis units given, so always check the axes first.
  • A negative gradient on a return leg doesn't mean 'negative speed' — it means the object is moving back towards the start; speed itself is always reported as a positive magnitude.
  • Average speed for an entire multi-segment trip is total distance ÷ total time — this is very rarely equal to the average of the individual segment gradients.
  • Turning points, intercepts and horizontal stretches all carry meaning in context: an intercept is a starting value, a turning point is often a maximum/minimum in the real situation.

Key terms

Distance–time graph
A graph with time on the horizontal axis and distance (from a fixed point) on the vertical axis.Gradient of this graph = speed.
Gradient (in context)
The rate of change of the vertical variable with respect to the horizontal variable.On distance-time: speed. On cost-quantity: price per unit.
Average speed
Total distance travelled divided by total time taken, over the whole journey.Not the same as the mean of the individual leg speeds unless every leg takes equal time.

Distance–time graph with an outward, resting and return segment

A trip out, a rest, then a return journey — the classic three-segment distance-time graph.

A(0, 0)B(2, 60)C(5, 60)D(8, 0)Time (hours)Distance (km)

Speed and average speed

Gradient between two points on any graph.

— gradient / rate of change
— two known points on the line

Never substitute net displacement (final − start position) for total distance travelled.

Worked example

Out-and-back journey (based on a distance–time graph question)

[4]
A distance–time graph shows a journey from to : segment from to ; segment from to ; segment is the return journey, completed in 3 hours. Calculate the gradient of and find the coordinates of .

Worked example

Average speed vs total distance (club qualification check)

[3]
A cyclist's journey: : to ; : to ; : to , time in hours, distance in km. She must average at least 10 km/h over the whole 5-hour trip to qualify for a club record. Does she qualify?

Treating a flat segment as 'no data' instead of 'zero speed'

Some students skip commenting on horizontal segments, assuming there's 'nothing to say' since the line is flat.

Consequence: Loses the explicit interpretation mark — mark schemes specifically award a point for stating 'gradient = 0 → speed = 0 → stationary/resting', not just for drawing or describing the flat line.

Fix: Always write the three-step chain explicitly: gradient = 0, therefore speed = 0, therefore the object is not moving during that interval.

Examiner tip

When a question asks you to 'explain what the gradient represents' (2 marks), you need both the calculation method (rise over run, or distance ÷ time) AND the named physical quantity with units — a description alone ('how steep the line is') without connecting it to speed drops a mark.

Real-world application

Delivery drones and fleet-tracking apps literally plot distance-time graphs from GPS pings in real time. A drone moving at 6 m/s then speeding up to 15 m/s produces exactly the two-segment graph you'd sketch by hand — and the same 20 m/s speed-limit check (is the second gradient under the legal cap?) runs automatically thousands of times a second in delivery software.

Key takeaways

  • Gradient of a distance-time graph is speed; its sign shows direction of travel, not whether the object is stationary.
  • A horizontal segment always means gradient = 0 = stationary, regardless of how long it lasts.
  • Average speed = total distance ÷ total time — never the mean of individual segment gradients, and never based on net displacement.
  • Always state the units your gradient calculation produces — they come from the graph's axis units, not from memory.

Cartesian Plane and Coordinates

Locating points precisely

The Cartesian plane is two perpendicular number lines — the horizontal -axis and vertical -axis — crossing at the origin , splitting the plane into four quadrants.

  • Every point is written as an ordered pair — (horizontal position) always comes first, (vertical position) second; swapping the order names a completely different point.
  • Quadrant sign pattern: QI , QII , QIII , QIV — read anticlockwise starting top-right.
  • The distance and midpoint formulas let you compute lengths and centre points directly from coordinates, without measuring anything on a diagram.

Key terms

Origin
The point where the -axis and -axis intersect.
Quadrant
One of the four regions the plane is divided into by the two axes, numbered I–IV anticlockwise from the top right.
Ordered pair
A coordinate where the order of the two numbers determines a unique, specific point.
Midpoint
The point exactly halfway between two given points along the straight line joining them.

The four quadrants with a plotted point in each

One point per quadrant, showing the sign pattern of coordinates.

Quadrant IQuadrant IIQuadrant IIIQuadrant IVA(3, 2)B(-4, 3)C(-2, -5)D(5, -3)Origin (0,0)

Distance and midpoint

Straight-line distance between two points — derived from Pythagoras' theorem.

— distance between the two points (same units as the axes)

Midpoint is simply the average of the two -coordinates and the average of the two -coordinates.

Worked example

Distance and midpoint between two points

[3]
Find the distance between and , and the midpoint of .

Key point

Subtract in a consistent order for both coordinates in the distance formula — the squaring cancels any sign error, so it's forgiving. The gradient formula in the next section is not forgiving: mixing the order there flips the sign of your answer.

Key takeaways

  • Coordinate order matters: , never .
  • Quadrant signs follow going anticlockwise from top-right.
  • Distance formula is Pythagoras in disguise; midpoint is just an average of each coordinate.
  • Use the midpoint formula to check properties like 'diagonals of a parallelogram bisect each other' without drawing anything.

Graphing Linear Equations

From equation to line and back

Every straight line (that isn't vertical) can be written as , where is the gradient and is the -intercept — the value of when .

  • To sketch quickly: plot the -intercept first, then use the gradient as rise/run to plot a second point.
  • To find the equation from two points: calculate using , then substitute either point into to solve for .
  • The -intercept is found by setting and solving for — it's the point where the line crosses the horizontal axis.

Key terms

Gradient ()
The coefficient of in ; equals rise ÷ run between any two points on the line.
-intercept ()
The value of when — where the line crosses the vertical axis.
-intercept
The value of when — where the line crosses the horizontal axis.

Linear equations

Slope-intercept form of a straight line.

Memorise

Gradient between two known points.

Line with gradient triangle

Plot the intercept first, then use rise/run to fix the line.

y-intercept (0, 4)x-intercept (-2, 0)rise = 4run = 2y = 2x + 4

Worked example

Finding the equation of a line through two points

[3]
Find the equation of the straight line that passes through and .

Mnemonic

Rise over Run

Gradient = vertical change (rise, from the -values) ÷ horizontal change (run, from the -values). Compute the -difference first, then the -difference, to avoid accidentally building the reciprocal fraction.

Flipping the gradient formula

Writing instead of .

Consequence: Produces the reciprocal of the correct gradient — every later step (equation, intercepts, parallel/perpendicular checks) is then wrong, costing the whole remaining chain of marks.

Fix: Write '' explicitly before substituting numbers, every single time.

Key takeaways

  • : is the gradient, is the -intercept — read both directly off the equation.
  • To find an equation from two points: calculate , then substitute one point to solve for .
  • -intercept: set ; -intercept: set .
  • Always verify a found equation using the point you didn't use to solve for .

Graphing Quadratic, Cubic and Exponential Functions

Recognising the signature shapes

Each function family has a distinct silhouette — spotting it from the equation (or the reverse) is what's actually tested, more than plotting by hand.

  • Quadratic : a parabola. opens upward (has a minimum); opens downward (has a maximum). Axis of symmetry: .
  • Cubic : an S-shaped curve with up to two turning points; end-behaviour is always opposite at the two ends (one side rises, one falls) — the sign of decides which way round.
  • Exponential (): never crosses the -axis — it approaches a horizontal asymptote at ; grows explosively if , decays toward zero if ; -intercept is always .
  • Roots (x-intercepts) of a quadratic come from its factorised form, or from setting and solving directly.

Key terms

Vertex
The turning point of a parabola — its minimum (if ) or maximum (if ).
Axis of symmetry
The vertical line through the vertex, about which the parabola is a mirror image of itself.
Asymptote
A line a curve approaches but never touches; exponential graphs have a horizontal asymptote at .

Quadratic with roots and vertex

Roots, axis of symmetry and vertex all come from the same equation.

x = 1x = 3vertex (2, -1)y-intercept (0, 3)axis of symmetry x = 2

Quadratic, cubic and exponential forms

Vertex form of a quadratic; vertex is at .

Axis of symmetry (and the -coordinate of the vertex) for .

Memorise

General exponential function; is the -intercept, controls growth () or decay ().

Worked example

Analysing a quadratic from its equation

[4]
For : find the roots, axis of symmetry, vertex, and -intercept.

Linear vs quadratic vs cubic vs exponential

FeatureLinearQuadraticCubicExponential
General form
ShapeStraight lineParabolaS-curveCurve approaching a flat line
Max turning points0120
End behaviourBoth ends go opposite ways at constant rateBoth ends go the same way (up or down)Ends go opposite waysOne end flattens to an asymptote, other rises/falls without bound
Always has an x-intercept?Yes (unless horizontal)Not always (depends on discriminant)Yes, at least oneNever — asymptote at , never crosses

Examiner tip

'Analyse the shape' questions need the algebraic cause named alongside the visual effect — e.g. 'since , the parabola opens downward and has a maximum' scores full marks; 'it's an upside-down U shape' alone typically doesn't.

Key takeaways

  • Sign of in a quadratic decides upward (min) vs downward (max) opening; magnitude decides how narrow/wide.
  • Axis of symmetry always sits midway between the two roots — use this as a self-check.
  • Cubic graphs always have opposite end behaviour; exponential graphs never cross their asymptote.
  • Roots come from factorising and setting ; vertex comes from substituting the axis-of-symmetry -value back in.

Parallel and Perpendicular Lines

Comparing gradients

Whether two lines are parallel or perpendicular is decided entirely by their gradients — you never need to look at the -intercepts.

  • Parallel lines have exactly equal gradients: . They never meet (unless they're actually the same line).
  • Perpendicular lines have gradients that multiply to : — each gradient is the negative reciprocal of the other.
  • To compare gradients from any given equation, rearrange first into form so the gradient is isolated as the coefficient of .

Parallel and perpendicular conditions

Condition for two lines to be parallel.

Memorise

Condition for two lines to be perpendicular — equivalently .

Memorise

Don't mix these up

Concept AConcept BThe distinction that matters
Parallel linesPerpendicular linesParallel share the identical gradient value; perpendicular gradients are negative reciprocals of one another (their product is exactly ) — they're never equal to each other unless both are undefined/zero cases.
A negative gradientA perpendicular gradientA line simply falling left-to-right has a negative gradient — that alone tells you nothing about perpendicularity. Perpendicularity requires the product of the two specific gradients to equal .

Worked example

Equation of a perpendicular line through a given point

[3]
Find the equation of the line perpendicular to that passes through .

Reciprocal without the sign flip

Using for a 'perpendicular' gradient, without negating it.

Consequence: The resulting line isn't actually perpendicular — any follow-up mark asking to verify perpendicularity, or an angle calculation based on it, is lost even though the algebra 'worked'.

Fix: Always write and check explicitly before finalising the new equation.

Key takeaways

  • Parallel: . Perpendicular: .
  • Rearrange any equation into first so gradients are directly comparable.
  • Perpendicular gradient = negative reciprocal — reciprocate AND negate, not just one or the other.
  • Substitute a known point into to solve for the new -intercept once you have the correct gradient.

Transformations of Graphs

Changing a graph without redrawing from scratch

Every transformation acts directly on or inside the function notation. Translations move the graph without changing its shape; reflections flip it; stretches resize it.

  • Vertical translation : shifts the whole graph up () or down () — every -coordinate changes, -coordinates stay put.
  • Horizontal translation : shifts right () or left () — the sign inside the bracket is the opposite of the direction, which trips up almost everyone the first time.
  • Reflections: flips in the -axis (negates every -value); flips in the -axis (negates every -value).
  • Stretches: stretches vertically by factor ( taller, flatter); stretches horizontally by factor .

Key terms

Translation
A shift of every point on a graph by the same fixed amount, in a fixed direction, with no change in shape or size.
Reflection
A flip of the graph across a line (usually an axis), producing its mirror image.
Dilation (stretch/compression)
A resizing of the graph vertically or horizontally by a scale factor, changing its shape's proportions.
Parent function
The simplest, un-transformed version of a function family, e.g. for all quadratics.

Translating a parabola

Shifting a parabola right 2 and up 3 moves the vertex from (0,0) to (2,3), shape unchanged.

y = x^2y = (x-2)^2 + 3vertex (0, 0)vertex (2, 3)

Transformation rules for

Vertical translation: up if , down if .

Horizontal translation: right if , left if .

Reflection in the -axis.

Reflection in the -axis.

Vertical stretch/compression by factor .

Horizontal stretch/compression by factor .

Transformation rules at a glance

TransformationEquation formEffect on graphEffect on point
Vertical translationShifts up () or down ()
Horizontal translationShifts right () or left ()
Reflection in x-axisFlips top-to-bottom
Reflection in y-axisFlips left-to-right
Vertical stretchTaller () or flatter ()
Horizontal stretchNarrower () or wider ()

Worked example

Combining transformations in the correct order

[4]
Given , describe the graph of and state its vertex.

Getting the horizontal shift direction backwards

Treating as a shift to the left because there's a minus sign in the bracket.

Consequence: The sketched graph, roots, and vertex all end up mirrored left-right from the correct graph — loses the accuracy marks for the sketch and any coordinate follow-up.

Fix: Test with a simple substitution: evaluated at gives — so the feature that used to sit at now sits at , confirming the shift is to the right.

Examiner tip

Describe combined transformations as a numbered sequence (horizontal shift → stretch/reflection → vertical shift), not in the order the equation happens to be written — mark schemes reward correctly sequenced reasoning over a lucky correct final vertex with no working shown.

Key takeaways

  • Translations shift a graph without changing its shape; stretches and reflections do change its shape.
  • Horizontal shift direction is opposite to the sign inside the bracket: moves right when .
  • Reflections negate one coordinate only: flips -values, flips -values.
  • Apply combined transformations in order: horizontal shift, then stretch/reflection, then vertical shift.

Quick Reference

Graphs and Relations — everything on one page

Formulas

  • Gradient between two points — order must match for both coordinates.
  • Slope-intercept form; = gradient, = y-intercept.
  • Distance formula — sign errors cancel because everything is squared.
  • Midpoint = average of each coordinate.
  • Never the average of individual gradients; never based on net displacement.
  • Axis of symmetry / vertex x-coordinate for .
  • Parallel lines condition.
  • Perpendicular lines condition.

Key facts

Gradient of a distance-time graph
= speed
Horizontal segment on distance-time graph
= stationary (speed = 0)
Perpendicular gradient rule
Quadratic axis of symmetry
Exponential asymptote
(never crossed)
Horizontal shift direction for
Right if , left if

Mnemonics

  • Rise over RunGradient = vertical change ÷ horizontal change; compute the -difference before the -difference.

Don't confuse

  • Parallel lines vs Perpendicular lines: Equal gradients (parallel) vs gradients multiplying to (perpendicular).
  • Average speed vs Average of segment speeds: Average speed = total distance ÷ total time; it is not the arithmetic mean of the individual leg speeds unless all legs take equal time.
  • Horizontal translation vs What it looks like it should do: shifts RIGHT when — the bracket sign is opposite to the direction of the shift.

Command terms

Interpret:
State the numeric answer AND its real-world meaning with correct units.
Analyse:
Link the algebraic feature (sign, coefficient) to the visual feature (shape, direction) explicitly.
Deduce:
Use a previously found result plus one line of reasoning — don't re-derive from scratch.
Justify/Explain:
Give the reasoned working, not just a stated conclusion.

Exam checklist

  • Have I checked which quantity each axis represents, and its units, before calculating any gradient?
  • For distance-time questions: is my 'average speed' total distance ÷ total time, not an average of the segment speeds?
  • For gradient calculations: did I subtract -values and -values in the same order?
  • For perpendicular gradients: did I both flip AND negate, and check ?
  • For horizontal shifts: did I remember the sign inside the bracket is opposite to the shift direction?
  • For combined transformations: did I apply horizontal shift, then stretch/reflection, then vertical shift, in that order?