Skip to content
Marlbridge

Study Guides

IB MYP Mathematics: Functions and models: linear, quadratic, exponential and rational (MYP Mathematics)

Study guide to the MYP Mathematics thinking with models branch: linear, quadratic, exponential and rational functions, transformations and modelling.

Subject
Mathematics
Level
IB
Topic
Functions and models: linear, quadratic, exponential and rational
Updated

Aligned to International Baccalaureate IB Middle Years Programme Mathematics (MYP Mathematics), From 2020, first assessment 2022. Official subject brief .

Syllabus points this page covers

MYP Mathematics

  • 2 Thinking with models

Found an error? Report a correction.

This guide teaches functions and models, one topic area inside the thinking with models part of the IB Middle Years Programme Mathematics guide (first assessment 2022). The framework columns used are the standard and extended levels for years 4 and 5, plus the optional enrichment list. The framework lists nothing for MYP 1-3 here. Linear programming and networks sit in other units and are not covered. Use it with the revision notes and the practice set. The course page is MYP Mathematics, the checklist tracks progress, and all free 10-minute diagnostics show where to start.

The guide treats a model as a depiction of a real event using expressions, equations or graphs. A function is a relation between variables. You should be able to show one idea as a table, a graph and a rule, and say what each tells you. The guide connects this branch to related concepts such as change, equivalence, patterns, quantity, representation and systems.

What this guide covers

Topic Framework column
Mapping, function notation Standard
Linear functions f(x) = mx + c, parallel and perpendicular lines Standard
Simultaneous equations, algebraically and graphically Standard
Quadratics in three forms and their parameters Standard
Exponential functions and horizontal asymptotes Standard
Domain and range; rational functions (ax + b)/(cx + d) Extended
Transforming quadratics: translation, reflection, dilation Extended
Shape of cubic, rational, trigonometric and logarithmic functions, with asymptotes Extended
Transforming cubic and trigonometric functions; ln and e; composite, inverse and logarithmic functions Enrichment (optional, and the guide says not in eAssessments)

Mapping and function notation

A mapping pairs each input with an output. It is a function when every input has exactly one output. Two inputs may share an output (many-to-one). One input may not give two outputs. On a graph, a vertical line crossing the curve twice shows the relation is not a function.

Function notation names the rule. In f(x) = 6 - 4x, the letter f is the name, x is the input and f(x) is the output. The guide says y = is also accepted where the question does not insist on f.

Worked example. For f(x) = 6 - 4x:

  • f(3) = 6 - 4(3) = -6
  • f(a + 1) = 6 - 4(a + 1) = 2 - 4a
  • f(x) = -10 means 6 - 4x = -10, so -4x = -16 and x = 4

The relation x² + y² = 25 is not a function: x = 3 gives y = 4 or y = -4.

A vertical line at x = 3 cuts the circle x squared plus y squared equals 25 twice, at (3, 4) and (3, minus 4), so it is not a function. It cuts the line f(x) = 6 minus 4x once, at (3, minus 6), so that is a function.
A vertical line cutting twice means one input has two outputs.
A function machine for f(x) = 3x minus 5. The input 4 is multiplied by 3 to give 12, then 5 is subtracted to give 7. Putting 2a in the brackets gives 6a and then 6a minus 5. Whatever is in the brackets replaces x.
Whatever goes in the brackets replaces x in the rule.
A mapping diagram for h(x) = x squared minus 4 with domain minus 2, minus 1, 0, 1, 3. The arrows give outputs 0, minus 3, minus 4, minus 3, 5. The range is minus 4, minus 3, 0, 5, each listed once; two inputs may share an output.
The range lists each different output once; two inputs can share an output.

Linear functions

A linear function is f(x) = mx + c. The gradient m is the change in output for each 1 added to the input. The constant c is where the line meets the y-axis. Between points (x₁, y₁) and (x₂, y₂), m = (y₂ - y₁)/(x₂ - x₁).

Worked example. Find the line through (2, 7) and (6, 19).

  1. m = (19 - 7)/(6 - 2) = 12/4 = 3
  2. Substitute (2, 7): 7 = 3(2) + c, so c = 1
  3. The line is y = 3x + 1

Parallel and perpendicular lines. Two lines with the same gradient are parallel. For perpendicular lines the gradients multiply to -1, so the second gradient is the negative reciprocal of the first.

  • Parallel to y = 3x + 1 through (1, -4): m = 3, so -4 = 3 + c, c = -7, giving y = 3x - 7.
  • Perpendicular to y = -2x + 5 through (4, 3): m = 1/2, so 3 = 2 + c, c = 1, giving y = x/2 + 1.

As a model. A taxi fare is a fixed fee c plus a rate m per kilometre, valid only for distances of zero or more.

A taxi cost graph starts at $3 on the vertical axis, the fixed charge. The gradient is 15 dollars per 10 km, $1.50 per km, and $24 is read across to 14 km. A 20 km ride costs $33, not the $36 that scaling would give.
A line with an intercept: gradient is the rate, intercept is the fixed charge, and scaling fails.
The line y = 2x - 1 crosses the y-axis at (0, -1) so c = -1. Between (1, 1) and (3, 5) it goes 2 across and 4 up, so m = 2.
m is the gradient and c is where the line crosses the y-axis.
Lines y = 2x - 1 and y = 2x + 3 each go 1 across and 2 up, so they are parallel. The parallel line through P (1, 5) has c = 3.
Parallel lines share a gradient; use a point to find c.
Two lines meet at right angles at (0, 1). One has gradient 2/3 and the other -3/2; their product is -1.
Perpendicular gradients multiply to -1.

Simultaneous equations

The solution of two equations is the pair of values that satisfies both. Graphically it is the intersection of the two lines. Parallel lines never meet, so there is no solution.

Substitution. Solve y = 2x + 1 and 3x + 2y = 16.

Replace y: 3x + 2(2x + 1) = 16, so 7x + 2 = 16 and x = 2. Then y = 2(2) + 1 = 5.

Elimination. Solve 2x + 3y = 12 and 5x - 3y = 9. Adding removes y: 7x = 21, so x = 3. Then 6 + 3y = 12 gives y = 2. Check in the other equation: 15 - 6 = 9. Correct.

On a graph, draw both lines on one set of axes and read where they cross. A graph gives an approximate answer, so use algebra when exact values are needed.

Two graphs: y = 2x + 1 and 3x + 2y = 16 cross at (2, 5); 2x + 3y = 12 and 5x - 3y = 9 cross at (3, 2). Dashed lines drop to the axes.
The algebraic solution is the crossing point of the two lines.
The lines 2x + y = 7 and x − y = 2 are graphed and cross at (3, 1). Adding the equations gives 3x = 9, so x = 3, and then y = 1. The crossing point is the one pair of values that fits both equations.
The solution of simultaneous equations is where their graphs cross.

Quadratic functions and their parameters

A quadratic has an x² term and graphs as a parabola. The guide lists three forms:

Form Rule Shows directly
General f(x) = ax² + bx + c y-intercept c; axis of symmetry x = -b/(2a)
Factorised f(x) = a(x - p)(x - q) where it crosses the x-axis: p and q
Vertex f(x) = a(x - h)² + k vertex (h, k)

Parameters. If a > 0 the parabola opens upward and has a minimum. If a < 0 it opens downward and has a maximum. A larger |a| makes it narrower. In vertex form, h shifts the graph sideways and k shifts it up or down. The axis of symmetry lies halfway between the two x-intercepts.

Worked example 1. f(x) = x² - 6x + 5.

  • Factorise: (x - 1)(x - 5), so the x-intercepts are 1 and 5.
  • Axis: halfway, x = 3. Then f(3) = 9 - 18 + 5 = -4, so the vertex is (3, -4).
  • Vertex form: f(x) = (x - 3)² - 4. Expanding returns x² - 6x + 5.
  • y-intercept: 5.

Worked example 2. f(x) = -2(x + 1)(x - 3).

  • Intercepts at x = -1 and x = 3, and a = -2 so it opens downward.
  • Axis x = 1. f(1) = -2(2)(-2) = 8. The maximum is 8 at (1, 8).
  • Expanding: -2(x² - 2x - 3) = -2x² + 4x + 6.

Completing the square. To write 3x² - 6x + 1 in vertex form, take out the 3 from the x terms: 3(x² - 2x) + 1. Complete the bracket: 3[(x - 1)² - 1] + 1 = 3(x - 1)² - 3 + 1 = 3(x - 1)² - 2. The vertex is (1, -2).

As a model. A ball is thrown so its height in metres after t seconds is h = -5t² + 20t + 1.

  • Axis: t = -20/(2 × -5) = 2. Then h(2) = -20 + 40 + 1 = 21, so the greatest height is 21 m.
  • Lands when h = 0: t = (20 + √420)/10 ≈ 4.05 s (the negative root is rejected).
  • Limits: the model ignores air resistance and only applies from throwing until landing, so t ≥ 0 and h ≥ 0.
The graph of f(x) = x squared minus 6x plus 5 with its three forms matched to features: factorised form gives x-intercepts 1 and 5, vertex form gives the vertex (3, minus 4), and the general form gives the y-intercept 5. The axis x = 3 is halfway between the roots.
Each form of the same quadratic shows a different feature directly.
The thrown-ball model h = −5t² + 20t + 1 is drawn solid from the throw to the landing at t ≈ 4.05 s, with a greatest height of 21 m at t = 2. The other root, t = −0.05, and negative heights after landing are outside the domain.
A real context restricts the domain: here 0 ≤ t ≤ 4.05.
Graph of y = 3x^2 and y = 3x^2 - 6x + 1; the second is the first moved 1 right and 2 down with vertex (1, -2). Working: 3(x^2 - 2x) + 1, then 3[(x - 1)^2 - 1] + 1, then 3(x - 1)^2 - 2.
Completing the square shows the vertex (1, -2) and the translation from y = 3x^2.
Graphs of y = 0.5x^2, y = x^2 and y = 3x^2. Cut at y = 3 the widths are 4.90, 3.46 and 2.00, so larger a means narrower. A negative a opens downward.
A larger |a| gives a narrower parabola.
A sketch of y = x² + 2x − 15: a U-shape crossing the x-axis at (−5, 0) and (3, 0) and the y-axis at (0, −15), symmetrical about x = −1. The turning point (−1, −16), from completing the square, is Extended only.
A sketch shows shape, roots, y-intercept and symmetry; Extended adds the turning point.
A square of side x + 4 is built from x^2, two strips 4x and a 4 by 4 corner of 16. So x^2 + 8x = (x + 4)^2 - 16, and x^2 + 8x - 5 = (x + 4)^2 - 21.
Half of 8 gives p = 4; the 16 added to complete the square must be taken away.

Exponential functions and horizontal asymptotes

An exponential function has the variable in the power: f(x) = a × bˣ with b > 0 and b ≠ 1. If b > 1 it shows growth. If 0 < b < 1 it shows decay. When x = 0, f(0) = a, so a is the starting value.

The graph of 3 × 2ˣ rises ever more steeply to the right and flattens towards the x-axis on the left without touching it. The line y = 0 is a horizontal asymptote: the graph approaches it without reaching it. Adding a constant moves the asymptote. For f(x) = 5 × (0.5)ˣ + 2 the graph falls towards y = 2 and never reaches it.

Worked example. A laptop is worth V = 900 × 0.85ᵗ dollars after t years.

  • Start: V(0) = 900.
  • After 3 years: 900 × 0.85³ = 552.71, so about $553.
  • Value below $300: V(6) = 339.43 and V(7) = 288.52, so during the seventh year.
  • Limit: the model says the value never reaches zero and gives a smooth curve, but real second-hand prices drop in steps and can fall suddenly if the model is discontinued.

Using models well. Name the assumptions, check the answer is sensible for the context, and be wary of extrapolation, which means using the model beyond the data that built it. Exponential growth cannot continue forever, because algae run out of space.

Two Extended sketches with dashed asymptotes. y = 2/x + 1 has asymptotes x = 0 and y = 1 and crosses the x-axis at (−2, 0). y = 3 × 2ˣ − 6 has asymptote y = −6, y-intercept (0, −3) and root x = 1.
Reciprocal and exponential curves approach their asymptotes but never cross or touch them.
A curve of 3600 fish falling 6% a year with a dashed line at 2000. Year 9 gives 2063 (above) and year 10 gives 1939 (below), so year 10 is the first year below 2000.
Show the years either side of the target to prove which year first passes it.

Extended: domain and range

The domain lists every input the rule accepts and the context allows. The range lists every output the rule produces.

  • f(x) = x² - 6x + 5 has domain all real numbers. Its minimum is -4, so the range is f(x) ≥ -4.
  • g(x) = 2ˣ has domain all reals and range g(x) > 0, because of the asymptote y = 0.
  • A real context restricts the domain: for the ball above the domain is 0 ≤ t ≤ 4.05.
Top graph: g(x) = 3x squared plus 1 has lowest point (0, 1), so its range is g(x) at least 1. Bottom graph: k(x) = 5 over (x minus 4) has a gap at x = 4 where the rule divides by zero, so x = 4 is not in the domain.
g(x) = 3x² + 1 never goes below 1, and k(x) = 5/(x − 4) has no value at x = 4.

Extended: rational functions (ax + b)/(cx + d)

For f(x)=(4x+3)/(x−1)=4+7/(x−1), the denominator gives vertical asymptote x=1 and domain x≠1; the leading-coefficient ratio gives horizontal asymptote y=4 and range y≠4. Intercepts are (−3/4,0) and (0,−3).
For f(x)=(4x+3)/(x−1)=4+7/(x−1), the denominator gives vertical asymptote x=1 and domain x≠1; the leading-coefficient ratio gives horizontal asymptote y=4 and range y≠4. Intercepts are (−3/4,0) and (0,−3). Select the image to enlarge it.

A rational function has a linear expression over a linear expression. The denominator cannot be zero, so there is a vertical asymptote where cx + d = 0.

Worked example. f(x) = (4x + 3)/(x - 1).

  • Vertical asymptote: x - 1 = 0, so x = 1. The domain is x ≠ 1.
  • Rewrite: (4x + 3)/(x - 1) = 4 + 7/(x - 1). For very large x the fraction shrinks towards zero, so the horizontal asymptote is y = 4. In general it is y = a/c. The range is f(x) ≠ 4.
  • x-intercept: 4x + 3 = 0, so x = -3/4. y-intercept: f(0) = 3/(-1) = -3.
  • The graph has two separate branches, one each side of x = 1.
The graph of f(x) = (4x + 3)/(x − 1) has two branches either side of the vertical asymptote x = 1 and approaches the horizontal asymptote y = 4. It crosses the axes at (−3/4, 0) and (0, −3). The domain excludes x = 1 and the range excludes 4.
The denominator gives the vertical asymptote; a/c gives the horizontal one.

Extended: transforming quadratics

Starting from y = x², these changes act on the graph:

Change to the rule Effect
f(x) + k translation k units up (down if k is negative)
f(x - h) translation h units right (left if h is negative)
-f(x) reflection in the x-axis
f(-x) reflection in the y-axis
a f(x) vertical dilation, scale factor a
f(bx) horizontal dilation, scale factor 1/b

Worked example. Describe y = -2(x - 3)² + 1 as a transformation of y = x².

  1. Translate 3 units right.
  2. Dilate vertically by factor 2.
  3. Reflect in the x-axis (the negative sign).
  4. Translate 1 unit up.

The vertex is (3, 1) and the maximum value is 1, so the range is y ≤ 1. Vertex form is the transformation written as a rule. Reflecting y = x² in the y-axis changes nothing, because the parabola is symmetric about that axis.

The point (1, 1) on y = x squared is followed through right 3, stretch by 2, reflection in the x-axis and up 1, ending at (4, minus 1) on the curve y = minus 2(x minus 3) squared plus 1. The vertex moves from (0, 0) to (3, 1).
Following one point shows the four transformations in the order the lesson gives.

Extended: shapes of other functions

Function Shape and key features
Cubic, for example (x + 1)(x - 2)(x - 4) up to three x-intercepts; rises on one end and falls on the other; y-intercept is the product at x = 0, here 8
Rational, 1/x two branches; asymptotes x = 0 and y = 0
Trigonometric, sin x repeating wave between -1 and 1; period 360°
Trigonometric, tan x repeating curve; vertical asymptotes at 90°, 270° and every 180° after that
Logarithmic, log₂ x passes (1, 0) and (2, 1); vertical asymptote x = 0; only positive inputs

An asymptote is read from the rule: look for inputs that make a denominator zero, a tangent undefined, or a logarithm’s argument zero. For a rational function that is the vertical asymptote. For exponentials it is the horizontal asymptote.

Graph of y = 2^x and y = log2 x as mirror images in y = x. The log curve passes (1, 0), (2, 1), (4, 2), (8, 3), has asymptote x = 0 and only x > 0. A note gives ln x as base e, about 2.718, and e^x = 7 giving x = ln 7, about 1.95.
The logarithm curve is the reflection of the exponential curve in y = x.
Sketch of y = x³ − 4x² + 3x = x(x − 1)(x − 3). The curve crosses the x-axis at 0, 1 and 3, coming up from bottom left, turning twice, and rising to top right because the x³ coefficient is positive.
Factorise a cubic to find its roots, then follow the rise, turn, fall, turn, rise.
Graphs of y = sin x and y = cos x from 0 to 360 degrees with key points marked at multiples of 90 degrees. Both are waves between minus 1 and 1 repeating every 360 degrees; cos is sin shifted by 90 degrees.
Sin and cos are waves between -1 and 1 that repeat every 360 degrees.
Graph of y = tan x from 0 to 360 degrees with dashed asymptotes at 90 and 270 degrees. Branches pass through (0,0), (180,0) and (360,0), approach the asymptotes without touching, and repeat every 180 degrees.
Tan x has asymptotes at 90 and 270 degrees and repeats every 180 degrees.

Enrichment (optional)

  • Transforming cubic and trigonometric functions. The same rules apply. y = 2 sin x + 1 stretches the wave to amplitude 2 and lifts it by 1, so its values lie between -1 and 3.
  • ln and e. The number e is about 2.718. The function ln x is the inverse of eˣ, so eˣ = 7 gives x = ln 7 ≈ 1.95.
  • Composite functions. g∘f(x) means g(f(x)): apply f first. With f(x) = 2x + 3 and g(x) = x², g∘f(3) = g(9) = 81, but f∘g(3) = f(9) = 21. Order matters.
  • Inverse functions. The inverse f⁻¹ reverses f. For f(x) = 2x + 3, write y = 2x + 3, swap to x = 2y + 3, and solve: f⁻¹(x) = (x - 3)/2. Mirror the graph of f in the line y = x to get the graph of f⁻¹.
  • Logarithmic functions. The logarithm of a to base b is the power that b needs to reach a. So log₂ 32 = 5, and 2ˣ = 20 gives x = log₂ 20 ≈ 4.32.
Graph of y = sin x (dashed) and y = 2 sin x + 1 from 0 to 360 degrees. The second has amplitude 2 about the midline y = 1, maximum 3 and minimum -1.
Stretch by 2 and lift by 1 gives values between -1 and 3.

Common errors

  • Calling a relation a function when one input has two outputs.
  • Writing f(a + 1) as f(a) + 1.
  • Taking the reciprocal but forgetting the minus sign for a perpendicular gradient.
  • Reading the vertex of (x - 3)² - 4 as (-3, -4). The x-coordinate is +3.
  • Giving the horizontal asymptote of a rational function as the vertical one.
  • Trusting an exponential model far outside the data it was built from.

Frequently asked questions

What makes a mapping a function? A mapping is a function when every input has exactly one output. The relation x² + y² = 25 is not a function, because x = 3 gives both y = 4 and y = −4.

How do you find the equation of a line through two points? Find the gradient m as the change in y divided by the change in x, then substitute one point into y = mx + c to find c. For (2, 7) and (6, 19), m = 3 and c = 1, so y = 3x + 1.

How do you find the greatest height in a quadratic model? Find the axis of symmetry, t = −b/(2a), and substitute it into the model. For h = −5t² + 20t + 1, the axis is t = 2 and the greatest height is 21 m.

What does the thinking with models branch of MYP Mathematics include? In the IB MYP Mathematics framework, thinking with models includes functions such as linear, quadratic, exponential and rational functions, their transformations, and using them to model real events with expressions, equations or graphs.

Official syllabus

Source: Mathematics guide of the Middle Years Programme, International Baccalaureate Organization; first assessment 2022. Section used: the framework for thinking with models.

Related resources

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.

“International Baccalaureate” and “IB” are trademarks of the International Baccalaureate Organization. Marlbridge is not affiliated with or endorsed by the IB.