← IB Mathematics: Analysis & Approaches · SL · IB Maths AA revision
⭐ 0
IB Diploma Mathematics: Analysis & Approaches SL · Functions
Mini-Lesson

Functions

4 missions. Guess, learn, then check. Your place is saved.

  1. Mission 1Two taxis, two price lines: when does the cheaper one switch?
  2. Mission 2Undo "double it, then add 3": why do you subtract 3 first?
  3. Mission 3A fountain jet traces a parabola. How far out does it land?
  4. Mission 4Why does a drug's concentration never quite reach zero?
Mission 1

Two taxis, two price lines: when does the cheaper one switch?

Make a guess: Two taxis, two price lines: when does the cheaper one switch?

Functions · lines and graphs

Gradient and the forms of a line

Gradient and intercept−1123456−112345Oxyy=0.5x+142c=1
  • Gradient m = (y₂ − y₁)/(x₂ − x₁): the rate of change of y per unit of x.
  • Gradient-intercept form: y = mx + c, where c is the y-intercept.
  • Point-gradient form: y − y₁ = m(x − x₁) through the point (x₁, y₁).
  • General form: ax + by + d = 0.
  • A road climbing 1.2 m over 15 m horizontally has gradient 1.2/15 = 0.08, an 8% incline.
Worked example Functions · lines and graphs

The line through two points

Question
Find the equation of the line through A(2, 5) and B(6, −3). Give your answer in the form ax + by + d = 0, where a, b, d ∈ ℤ.
  1. 1
    Gradient: m = (−3 − 5)/(6 − 2) = (−8)/4 = −2
  2. 2
    Point-gradient form through A: y − 5 = −2(x − 2)
  3. 3
    Expand: y = −2x + 9
  4. 4
    Move every term to one side: 2x + y − 9 = 0
Answer
2x + y − 9 = 0
⚠️ Watch out
subtract the coordinates in the same order. (5 − (−3))/(6 − 2) = 2 has the wrong sign.
Functions · lines and graphs

Parallel and perpendicular lines

  • Parallel lines have equal gradients: m₁ = m₂.
  • Perpendicular lines: m₁ × m₂ = −1, so m₂ = −1/m₁ (the negative reciprocal).
  • To read a gradient from general form, rearrange to y = mx + c. For 2x + 5y − 7 = 0: y = −2/5x + 7/5, so m = −2/5.
  • Any line perpendicular to it has gradient 5/2.
Calculate
?The line L passes through (3, 1) and is perpendicular to 2x + 5y − 7 = 0. Find the y-intercept of L. Give your answer as a decimal.
Functions · lines and graphs

Functions, domain, range and inverses

A function and its inverse−6−4−2246−6−4−22468Oxyff−1y=x(2,3)(3,2)
  • A function gives each input exactly one output. Notation: f(x), v(t), C(n).
  • The domain is the set of allowed inputs; the range is the set of outputs. f(x) = √(2 − x) has domain x ≤ 2 and range f(x) ≥ 0.
  • The inverse function f⁻¹ undoes f: solving f(x) = 10 is the same as finding f⁻¹(10).
  • The graph of f⁻¹ is the reflection of f in y = x. Only one-to-one functions have inverses; the domain of f⁻¹ is the range of f.
Quick check
?The function f is defined by f(x) = √(x − 3) + 1, for x ≥ 3. Which is the range of f?
Functions · lines and graphs

Key features of graphs, with technology

Parabola and linex=1.5−11234−4−3−2−11234567xyy=x2−3xy=2x−3(0,0)(3,0)minimum (1.5,−2.25)
  • Sketch: the shape, with axes and key features labelled. Draw: accurate, to scale.
  • Key features: intercepts, zeros (roots of f(x) = 0), maximum and minimum points, vertex, symmetry, vertical and horizontal asymptotes.
  • To solve f(x) = g(x), graph both on your GDC and find the intersection points. A GDC also graphs sums and differences such as y = f(x) − g(x), whose zeros are the same x-values.
  • On a no-calculator paper, set f(x) = g(x) and solve algebraically instead.
Worked example Functions · lines and graphs

Where two graphs meet

Question
f(x) = x² − 3x and g(x) = 2x − 3. Find the x-coordinates of the points where the graphs of f and g intersect. Give your answers to 3 significant figures.
  1. 1
    Set the functions equal: x² − 3x = 2x − 3
  2. 2
    Rearrange to zero: x² − 5x + 3 = 0
  3. 3
    Use the intersect tool on your GDC (or the quadratic formula): x = (5 ± √13)/2
Answer
x = 0.697 or x = 4.30
⚠️ Watch out
a GDC finds one intersection at a time. Check the window shows every crossing so you do not miss one.
Calculate
?A ball is thrown upwards. Its height in metres after t seconds is modelled by h(t) = −4.9t² + 12t + 2, for t ≥ 0. Use your GDC to find when the ball hits the ground. Give your answer to 3 significant figures.
seconds
Mission check

?Taxi A charges £3.50 plus £1.20 per km. Taxi B charges £6.00 plus £0.95 per km. When does the cheaper one switch?
Mission 2

Undo "double it, then add 3": why do you subtract 3 first?

Make a guess: Undo "double it, then add 3": why do you subtract 3 first?

Functions · composites, inverses and transformations

Composite functions

  • (f ° g)(x) = f(g(x)): apply g first, then f to the result.
  • With f(x) = 2x + 3 and g(x) = x²: (f ° g)(x) = 2x² + 3 but (g ° f)(x) = (2x + 3)². Order matters.
  • In context: n(t) = 50t phones are made in t hours and C(n) = 200 + 4n is their cost in £. Then (C ° n)(t) = 200 + 200t is the cost after t hours.
  • g(x) must lie in the domain of f for f(g(x)) to exist.
Calculate
?f(x) = 3x − 1 and g(x) = x² + 2. Find (g ° f)(2).
Functions · composites, inverses and transformations

Inverse functions

Restricting a domain to find an inverse−3−2−11234567−3−2−112345678xyff−1y=x(3,−2)(−2,3)
  • f⁻¹ undoes f: (f ° f⁻¹)(x) = (f⁻¹ ° f)(x) = x, the identity function.
  • To undo a chain of steps, undo the last step first, like taking off shoes before socks.
  • Method: write y = f(x), rearrange to make x the subject, then swap x and y.
  • An inverse exists only if f is one-to-one. If it is not, restrict the domain. The domain of f⁻¹ is the range of f.
Worked example Functions · composites, inverses and transformations

An inverse with a restricted domain

Question
f(x) = (x − 3)² − 2, for x ≥ 3. Find f⁻¹(x) and state its domain.
  1. 1
    Write y = (x − 3)² − 2 and add 2: y + 2 = (x − 3)²
  2. 2
    Square-root, taking the positive root because x ≥ 3: x − 3 = √(y + 2)
  3. 3
    Make x the subject: x = 3 + √(y + 2)
  4. 4
    Swap x and y: f⁻¹(x) = 3 + √(x + 2)
  5. 5
    The range of f is f(x) ≥ −2, so the domain of f⁻¹ is x ≥ −2
Answer
f⁻¹(x) = 3 + √(x + 2), x ≥ −2
⚠️ Watch out
without the restriction x ≥ 3, f is many-to-one (f(1) = f(5) = 2) and has no inverse.
Quick check
?f(x) = (x + 4)/3. Which is f⁻¹(x)?
Functions · composites, inverses and transformations

Transformations of graphs

  • Translations: y = f(x) + b moves the graph up b; y = f(x − a) moves it right a.
  • Reflections: y = −f(x) in the x-axis; y = f(−x) in the y-axis.
  • Stretches: y = pf(x) is vertical, scale factor p; y = f(qx) is horizontal, scale factor 1/q.
  • Changes outside f act on y-values; changes inside act on x-values, the opposite way to how they look.
Worked example Functions · composites, inverses and transformations

Order in a composite transformation

Stretching and translating a parabola−2−1122468Oxyy=x2× 3+ 2y=3x2+2y=3x2
Question
Describe a sequence of transformations that maps y = x² onto y = 3x² + 2.
  1. 1
    Multiply the outputs by 3: vertical stretch, scale factor 3, gives y = 3x²
  2. 2
    Add 2 to the outputs: translation 2 units up (y = f(x) + 2 with b = 2), gives y = 3x² + 2
  3. 3
    Track a point: (1, 1) → (1, 3) → (1, 5)
Answer
a vertical stretch with scale factor 3, followed by a translation of 2 units up
⚠️ Watch out
in the other order, y = x² + 2 stretched by 3 gives y = 3x² + 6. The order matters.
Calculate
?The point P(6, −4) lies on the graph of y = f(x). The graph is transformed to y = −2f(x) + 5. Find the y-coordinate of the image of P.
Sort it
?Each equation is a transformation of y = f(x). Does it change the x-coordinates or the y-coordinates of points on the graph?

Tap a statement, then tap the group it belongs in. Then press Check.

Mission check

?f(x) = 2x + 3 doubles, then adds 3. Why does f⁻¹ subtract 3 first?
Mission 3

A fountain jet traces a parabola. How far out does it land?

Make a guess: A fountain jet traces a parabola. How far out does it land?

Functions · quadratics

Three forms of a quadratic

Three forms of a quadratic−1123456−5−4−3−2−11234567xyx=3(0,5)(1,0)(5,0)(3,−4)standard form gives cintercept form gives p, qvertex form gives (h,k)
  • A quadratic graph is a parabola: a > 0 opens upwards (minimum), a < 0 downwards (maximum).
  • Standard form f(x) = ax² + bx + c: y-intercept (0, c); axis of symmetry x = −b/2a.
  • Intercept form f(x) = a(x − p)(x − q): x-intercepts (p, 0) and (q, 0); axis halfway, x = (p + q)/2.
  • Vertex form f(x) = a(x − h)² + k: vertex (h, k); axis x = h.
  • x² − 6x + 5 = (x − 1)(x − 5) = (x − 3)² − 4: one graph, three views.
Worked example Functions · quadratics

Changing between forms

Question
f(x) = 2x² + 8x − 10. Write f(x) in the form a(x − h)² + k and in the form a(x − p)(x − q). Hence state the vertex and the x-intercepts.
  1. 1
    Take out the factor 2 from the x terms: 2(x² + 4x) − 10
  2. 2
    Complete the square inside: 2[(x + 2)² − 4] − 10
  3. 3
    Multiply out the bracket and tidy: 2(x + 2)² − 8 − 10 = 2(x + 2)² − 18
  4. 4
    Factorise the standard form: 2(x² + 4x − 5) = 2(x − 1)(x + 5)
Answer
f(x) = 2(x + 2)² − 18 = 2(x − 1)(x + 5); vertex (−2, −18); x-intercepts (1, 0) and (−5, 0)
⚠️ Watch out
the −4 inside the square bracket is also multiplied by 2. Writing 2(x + 2)² − 4 − 10 gives the wrong vertex (−2, −14).
Quick check
?f(x) = −3(x + 2)² + 5. What are the coordinates of the vertex of the graph of f?
Functions · quadratics

Solving, and the discriminant

Roots and the discriminant−2−1123−4−2246xy(i) Δ>0−2−1123−4−2246xy(1,0)(ii) Δ=0−2−1123−4−2246xy(1,2)(iii) Δ<0
  • Solve ax² + bx + c = 0 by factorising, completing the square or the quadratic formula:
x = (−b ± √(b² − 4ac))/2a
  • The solutions are the roots, or zeros of f. Check them with your GDC where allowed.
  • The discriminant Δ = b² − 4ac: Δ > 0 two distinct real roots; Δ = 0 two equal real roots (the graph touches the x-axis); Δ < 0 no real roots.
Sort it
?Use the discriminant to sort each equation by the nature of its roots.

Tap a statement, then tap the group it belongs in. Then press Check.

Calculate
?The equation 3kx² + 2x + k = 0 has two equal real roots. Find the positive value of k. Give your answer to 3 significant figures.
Worked example Functions · quadratics

A quadratic inequality

Question
Solve 2x² + x − 6 ≤ 0.
  1. 1
    Solve the equation first: 2x² + x − 6 = (2x − 3)(x + 2) = 0, so x = 1.5 or x = −2
  2. 2
    Sketch: a = 2 > 0, so the parabola opens upwards and is below the x-axis between its zeros
  3. 3
    Include the endpoints, since the inequality is ≤
Answer
−2 ≤ x ≤ 1.5
⚠️ Watch out
for > 0 or ≥ 0 with a > 0, the solution is the two outside parts, x < p or x > q, not one interval.
Quick check
?The equation 3kx² + 2x + k = 0 has two distinct real roots. Find the possible values of k.
Calculate
?A farmer builds a rectangular pen against a long straight wall, using 40 m of fencing for the other three sides. The two sides at right angles to the wall are each x m long. Show that the area is A = x(40 − 2x), then find the maximum possible area.
m²
Mission check

?The jet follows h = −0.5x² + 2x + 0.5, starting 0.5 m above the water. How far from the nozzle does it land in the water?
Mission 4

Why does a drug's concentration never quite reach zero?

Make a guess: Why does a drug's concentration never quite reach zero?

Functions · rational, exponential and log functions

Reciprocal and rational functions

Reciprocal function−5−4−3−2−11234−5−4−3−2−112345Oxyy=x(1,1)(−1,−1)x=0y=0
  • The reciprocal function f(x) = 1/x, x ≠ 0, has asymptotes x = 0 and y = 0.
  • It is self-inverse: f⁻¹(x) = 1/x, so its graph is symmetric in y = x.
  • For f(x) = (ax + b)/(cx + d): vertical asymptote x = −d/c (denominator zero); horizontal asymptote y = a/c (value as x grows large).
  • A sketch shows every asymptote, as a dashed line, and both axis intercepts.
Worked example Functions · rational, exponential and log functions

Asymptotes and intercepts

Question
Sketch f(x) = (2x − 1)/(x + 3), stating its asymptotes and axis intercepts.
  1. 1
    Vertical asymptote, where the denominator is zero: x + 3 = 0, so x = −3
  2. 2
    Horizontal asymptote, y = a/c: y = 2/1 = 2
  3. 3
    x-intercept, where the numerator is zero: 2x − 1 = 0, so (0.5, 0)
  4. 4
    y-intercept, f(0) = (−1)/3: (0, −1/3)
Answer
asymptotes x = −3 and y = 2; intercepts (0.5, 0) and (0, −1/3)
⚠️ Watch out
the vertical asymptote is x = −d/c; reading x = 3 from "x + 3" is a sign slip.
Quick check
?Which gives the asymptotes of the graph of f(x) = (3x + 2)/(2x − 4)?
Functions · rational, exponential and log functions

Exponential and logarithmic functions

Exponential and logarithm−3−2−11234−3−2−112345Oxyy=exy=lnxy=x(0,1)(1,0)y=0x=0
  • Exponential: f(x) = a^x (a > 0) and f(x) = e^x pass through (0, 1), have range f(x) > 0 and horizontal asymptote y = 0.
  • Logarithmic: f(x) = log_a x and f(x) = ln x, domain x > 0, pass through (1, 0) and have vertical asymptote x = 0.
  • They are inverses: log_a a^x = x and a^(log_a x) = x, so their graphs are reflections in y = x.
  • Any base can be changed to e: a^x = e^(x ln a).
  • Exponential decay e^(−kx) (k > 0): each increase of 1 in x multiplies the value by the same factor e^(−k), between 0 and 1.
Calculate
?Write 5^x in the form e^kx. Find k, giving your answer to 3 significant figures.
Functions · rational, exponential and log functions

Solving equations analytically and graphically

  • To bring down a power, take logs: a^x = b gives x = log_a b = (ln b)/(ln a).
  • Spot hidden quadratics: e^2x = (e^x)², so substitute u = e^x.
  • When there is no analytic method, as in e^x = sin x or x⁴ + 5x − 7 = 0, use your GDC: graph both sides and find the intersections, or graph one side minus the other and find the zeros.
Worked example Functions · rational, exponential and log functions

A hidden quadratic

Question
Solve e^2x − 5e^x + 4 = 0, giving exact answers.
  1. 1
    Substitute u = e^x: u² − 5u + 4 = 0
  2. 2
    Factorise: (u − 1)(u − 4) = 0, so u = 1 or u = 4
  3. 3
    Return to x: e^x = 1 gives x = 0; e^x = 4 gives x = ln 4
Answer
x = 0 or x = ln 4
⚠️ Watch out
e^x > 0 for every x, so a negative value of u would give no solution and must be rejected.
Calculate
?A cup of coffee cools so that its temperature, t minutes after it is poured, is T(t) = 20 + 70e^(−0.05t) °C. Find the time taken for it to cool to 40 °C. Give your answer to 3 significant figures.
minutes
Calculate
?Use your GDC to solve 2^x = x + 3. Give the positive solution to 3 significant figures.
Mission check

?A model gives C(t) = 20e^(−0.3t) mg per litre. Why does the model's concentration never reach zero?
Recap

Big ideas

  • A line has gradient m = (y₂ − y₁)/(x₂ − x₁) and can be written y = mx + c, y − y₁ = m(x − x₁) or ax + by + d = 0; parallel means m₁ = m₂, perpendicular means m₁ m₂ = −1.
  • A function has a domain (inputs) and a range (outputs); f⁻¹ undoes f, exists for one-to-one functions and is the reflection of f in y = x.
  • Key features (intercepts, zeros, maximum and minimum, asymptotes) and intersections come from a GDC or from solving f(x) = g(x).
  • (f ° g)(x) = f(g(x)): apply g first; in general f ° g ≠ g ° f.
  • f⁻¹ undoes f (last step first); it needs f to be one-to-one, possibly after restricting the domain, and the domain of f⁻¹ is the range of f.
  • f(x) + b, −f(x), pf(x) act on y-values; f(x − a), f(−x), f(qx) act on x-values; the order of transformations matters.
  • Standard form gives the y-intercept, intercept form the x-intercepts, vertex form the vertex (h, k); the axis of symmetry is x = −b/2a.
  • Solve by factorising, completing the square or x = (−b ± √(b² − 4ac))/2a; Δ = b² − 4ac decides two, one repeated or no real roots.
  • For a quadratic inequality, find the roots, sketch the parabola and read off where it is above or below the axis.
  • f(x) = (ax + b)/(cx + d) has vertical asymptote x = −d/c and horizontal asymptote y = a/c; 1/x is its own inverse.
  • a^x and log_a x are inverse functions: a^x > 0 with asymptote y = 0; log_a x needs x > 0 and has asymptote x = 0; a^x = e^(x ln a).
  • Solve with logs or a substitution such as u = e^x when you can; otherwise find intersections or zeros on your GDC.
🏆

Mini-lesson complete!

⭐⭐⭐

You've worked through Functions for IB Diploma Mathematics: Analysis & Approaches SL. 🎉

  1. Mission 1Two taxis, two price lines: when does the cheaper one switch?
  2. Mission 2Undo "double it, then add 3": why do you subtract 3 first?
  3. Mission 3A fountain jet traces a parabola. How far out does it land?
  4. Mission 4Why does a drug's concentration never quite reach zero?

Your stars: 0 / 0

Next: more IB Mathematics: Analysis & Approaches · SL lessons and games on the IB Mathematics: Analysis & Approaches · SL page.

📣 Smashed it? Share your score

Challenge a mate to beat your stars, or show a parent how you got on.

→ Back to IB Mathematics: Analysis & Approaches · SL

Specification points and sources for this lesson are listed at the bottom of the page.

Sources (4)

The specification points and sources behind this lesson.

  1. 1 IB Mathematics: analysis and approaches guide (first assessment 2021), SL 2.1, SL 2.2, SL 2.3, SL 2.4
  2. 2 IB Mathematics: analysis and approaches guide (first assessment 2021), SL 2.5, SL 2.11
  3. 3 IB Mathematics: analysis and approaches guide (first assessment 2021), SL 2.6, SL 2.7
  4. 4 IB Mathematics: analysis and approaches guide (first assessment 2021), SL 2.8, SL 2.9, SL 2.10