Educerie
Level

Educerie · IB Diploma · Mathematics: analysis and approaches

Topic 2 Functions · 2.3 Graphs of functions

Level
SL and HL. Nothing here is HL only, so every section is examinable for both.
Themes (key concepts)
representation, space, relationships. A graph is the visual representation of a function, and the "window" you choose on a screen decides how much of that space you see, so choosing it well is part of the mathematics.
The question this unit answers
how do you turn a function, a screen or a description into a graph on paper that an examiner can read and mark?
Where it is examined
in almost every paper, usually as one part of a longer question. "Sketch the graph of f" is worth 2 to 4 marks on Paper 1 and Paper 2; Paper 2 expects you to use your GDC to see the graph first, then put it on paper with its key features labelled. "Draw" appears less often and asks for more: a scale and accurately plotted points. The same skills carry into 2.4, where you find the key features, and into calculus, where the sketch is how you check your answers.

What you must be able to do

You must be able toLevelWhat it looks like in the exam
Know that the graph of f is the set of points (x, y) with y = f(x), and test whether a point lies on itSL, HL"Show that the point (2, 3) lies on the graph of f" (1 to 2 marks)
Tell the command terms "draw" and "sketch" apart, and do what each asksSL, HL"Draw the graph … on the grid below" versus "Sketch the graph … on the axes below" (2 to 4 marks)
Create a sketch from given information or from a contextSL, HL"Sketch a graph showing how the temperature changes" (2 to 3 marks)
Transfer a graph from a GDC screen to paper, with a sensible window and the key features labelledSL, HLPaper 2: "Sketch the graph of y = f(x) for −2 ≤ x ≤ 3" (3 to 5 marks)
Use technology to graph sums and differences of functionsSL, HLPaper 2: graph P = R − C, then read off where it is positive (2 to 4 marks)
Label axes and key features on every graphSL, HLMarks withheld on any sketch without them

Before you start

You need function notation and the ideas of domain and range from 2.2, and the straight lines of 2.1. You need to be able to graph linear and quadratic functions with your GDC, which is prior learning. The guide notes that exam questions may ask you to graph functions that are not on the syllabus: that is not unfair, because the GDC draws anything, and the skills on this page are the same for every function.


1The idea in one paragraph

The graph of a function f is every point (x, y) whose y-coordinate is f(x), so its equation is y = f(x). A point is on the graph exactly when its coordinates satisfy the equation. Putting a graph on paper comes in two strengths. To draw is to be accurate: a scale, plotted points, a ruler for straight lines, a smooth curve. To sketch is to be informative: the right shape in the right place with the features that matter labelled, and no scale needed. On Paper 2 the GDC does the plotting, and your job is to choose a window that shows the whole story, then copy the story onto paper. Graphs can also be added or subtracted: at each x you add or subtract the heights, and a GDC will draw the result for you.

2The graph of a function, and the equation y = f(x)

For each input x in the domain, f gives one output f(x). Plot the point (x, f(x)) for every input and the points join into a curve. That curve is the graph, and its equation is y = f(x): the y-coordinate of every point on it is f of its x-coordinate.

This gives a precise test.

A point (a, b) lies on the graph of y = f(x) exactly when f(a) = b.

Take y = x² − 2.

Is (3, 7) on the graph? f(3) = 9 − 2 = 7equals the y-coordinate: yes
Is (−1, 1) on the graph? f(−1) = 1 − 2 = −1−1 ≠ 1: no
(k, 14) is on the graph: k2 − 2 = 14
k2 = 16, so k = 4 or k = −4two points, both on the graph

The same idea runs backwards, and it is behind many of the unknown-constant questions on Paper 1: if you are told a point lies on a graph, substitute it and you have an equation.

3"Draw" and "sketch" are different instructions

The IB's command terms are defined, and the guide expects you to know the difference between these two.

Draw asks for accuracy. Work in pencil and to scale, plot each point where it belongs, rule any straight line, join curved graphs with one smooth curve, and label it.

Sketch asks for the idea. The shape and the relationship must be right, and the relevant features must be shown and labelled, but nothing has to be to scale.

Figure 1 puts the two side by side for y = x² − 4x + 1.

Figure 1 · Draw and sketch are different instructions Figure 1 · Draw and sketch are different instructions (a) Draw y = x² − 4x + 1, −1 ≤ x ≤ 5 x y −1 1 2 3 4 5 −4 −2 2 4 6 (b) Sketch y = x² − 4x + 1 x y (0, 1) (0.268, 0) (3.73, 0) (2, −3) no scale needed, features labelled Left: drawn, to scale, from plotted points. Right: sketched, shape and labelled features only.
Figure 1 · Draw and sketch are different instructions

In panel (a) the graph is drawn. There is a scale on both axes, the domain −1 ≤ x ≤ 5 is respected, the seven points from a table of values are plotted, and they are joined by one smooth curve, not by straight segments. In panel (b) the graph is sketched. There is no scale, but the shape is right (a U-shaped parabola), it sits in the right place relative to the axes, and every relevant feature is labelled with its coordinates: the y-intercept (0, 1), the two x-intercepts (0.268, 0) and (3.73, 0), and the vertex (2, −3).

What the marker is looking for differs too. A drawn graph earns marks for accuracy: points in the right squares, a smooth curve, the correct domain. A sketch earns marks for shape and features: correct general shape, correct position, and labelled intercepts, turning points, end points and asymptotes. A beautiful curve with no labels scores badly on a sketch; an unlabelled sketch is not an answer.

Two related words sit nearby. Plot means mark the positions of points on a diagram; you plot before you draw. Label means name the features, usually with coordinates or an equation.

4From screen to paper

On Paper 2 you will usually see the graph on your GDC first. The screen is a window onto the graph: a rectangle from some x-minimum to some x-maximum and some y-minimum to some y-maximum. The guide makes the point that changing this window shows more or less of the function, and a bad window can hide exactly what the question is about.

Figure 2 shows the danger with y = x³ − 12x + 30. In a standard window of −10 ≤ x ≤ 10 and −10 ≤ y ≤ 10, all you see is a steep line crossing the x-axis near −4. The two turning points are at y = 46 and y = 14, far above the top of the screen. Change the window to −6 ≤ x ≤ 6 and −20 ≤ y ≤ 60 and the whole shape appears.

Figure 2 · The same function in two windows Figure 2 · The same function in two windows (a) −10 ≤ x ≤ 10, −10 ≤ y ≤ 10 x y −10 −5 5 10 −10 −5 5 10 where are the turning points? (b) −6 ≤ x ≤ 6, −20 ≤ y ≤ 60 x y −6 −4 −2 2 4 6 −20 20 60 y = x³ − 12x + 30. The standard window shows almost nothing; the second shows every feature.
Figure 2 · The same function in two windows

Choosing a window. If the question gives a domain, such as −2 ≤ x ≤ 3, use it for x. Then choose y so that everything shows: many GDCs have a zoom-fit or auto option that sets y for the x-range you chose, and a table of values tells you how high and low the function goes. If there is no domain, zoom out until you are confident nothing is happening off screen, then zoom back in to a window that shows every feature.

Transferring the graph. With a good window, work through the same list every time.

  1. Draw and label both axes, x and y (or t and h, or whatever the variables are).
  2. Mark the scale lightly with the window limits, so the sketch has the right proportions.
  3. Find each key feature with the GDC: y-intercept, x-intercepts, maximum and minimum points, end points of the domain, and any asymptotes. How to find them is 2.4.
  4. Mark each feature as a point and write its coordinates beside it, to 3 significant figures unless exact values are obvious.
  5. Join the points with the shape you saw on the screen: smooth, with turning points rounded, not pointed.
  6. Stop at the end points of the domain, and make an asymptote look like one: the curve gets closer and closer to the line without crossing it (unless the screen shows that it does).

Figure 3 is the result for y = x³ − 12x + 30. The GDC gave the local maximum (−2, 46), the local minimum (2, 14), the y-intercept (0, 30) and the one x-intercept (−4.35, 0). Nothing else needed to be marked.

Figure 3 · From screen to paper: y = x³ − 12x + 30 Figure 3 · From screen to paper: y = x³ − 12x + 30 x y local maximum (−2, 46) local minimum (2, 14) (0, 30) (−4.35, 0) y = x³ − 12x + 30 Every feature the GDC gave is marked with its coordinates, and the shape between them is smooth.
Figure 3 · From screen to paper: y = x³ − 12x + 30

A sketch is marked on shape and on labelled features. Every intercept, turning point, end point and asymptote on the screen should be on the paper, with coordinates or an equation beside it.

5A sketch from information or a context

Sometimes there is no formula. The question gives you facts, or describes a situation, and asks for a sketch. The method is the same: turn each fact into a feature, place the features, and join them with a sensible shape.

From a description. A cup of coffee is poured at 90 °C into a room at 20 °C. It cools quickly at first, then more and more slowly, getting ever closer to room temperature. Sketch its temperature T against time t.

Read the features out of the words:

  • At t = 0, T = 90, so the graph starts at (0, 90) on the vertical axis.
  • It decreases for all t, since the coffee only ever cools.
  • It falls quickly at first, so it starts steep, then flattens.
  • It approaches 20 without reaching it, so the line T = 20 is a horizontal asymptote, drawn dashed and labelled with its equation.
  • Time cannot be negative, so the graph starts at t = 0 and there is nothing to its left.

Figure 4 is that sketch. The formula behind it would be something like T = 20 + 70e^(−0.08t), an exponential model you meet in 2.9, but the question did not need it: every mark is for a feature the words described.

Figure 4 · Sketching from a description: a cooling cup of coffee Figure 4 · Sketching from a description: a cooling cup of coffee t (min) T (°C) 20 90 T = 20 (room temperature) (0, 90) falls fastest at the start Starts at 90 °C, falls fast then slowly, and approaches room temperature without reaching it.
Figure 4 · Sketching from a description: a cooling cup of coffee

From a list of facts. A question might say: f has domain −3 ≤ x ≤ 5, f(−3) = 0, a maximum at (0, 4), a zero at x = 3, a minimum at (4, −2), and f(5) = −1. Plot those five points first. Then join them in order with a smooth curve that rises to the maximum, falls through the zero to the minimum, and rises to the end point. Mark the end points as solid dots, because they are included in the domain. You now have a sketch that satisfies every condition, and that is all the question asked. Q2 below asks you to do exactly this.

Contexts with straight pieces. Not every real graph is curved. Anything that changes at a constant rate, stops, then changes at another constant rate is made of straight segments with corners. Think of a bath filling, standing, and draining. Draw each piece with a ruler, and make sure the gradient of each piece matches its speed: filling slowly is a gentle slope, draining fast is a steep one.

6Sums and differences of functions

Two functions can be added or subtracted to make a new one: (f + g)(x) = f(x) + g(x), and (f − g)(x) = f(x) − g(x). On a graph that means one thing.

At every x, the height of f + g is the height of f plus the height of g.

Figure 5 shows it for f(x) = x² and g(x) = −2x + 3. At x = 2, f(2) = 4 and g(2) = −1, so (f + g)(2) = 4 + (−1) = 3. Do that at every x and you get the amber curve, which is y = x² − 2x + 3. Where g is negative, the sum sits below f; where g is positive, it sits above.

Figure 5 · Adding two functions adds their heights Figure 5 · Adding two functions adds their heights x y −1 1 2 3 −2 2 4 6 8 f(2) = 4 g(2) = −1 (f + g)(2) = 3 f g f(x) = x² (solid) g(x) = −2x + 3 (dashed) f + g At every x, the height of f + g is the height of f plus the height of g. At x = 2: 4 + (−1) = 3.
Figure 5 · Adding two functions adds their heights

The guide asks you to graph sums and differences using technology, and every GDC does it the same way. Enter f as the first function and g as the second, then define the third as the first plus (or minus) the second, using the calculator's own function names rather than retyping both formulas. That keeps the three graphs linked: change f and the sum updates.

The most useful difference in practice is profit = revenue − cost. Suppose a small workshop that makes and sells x items a day has daily revenue R(x) = 40x − 0.5x² dollars and daily cost C(x) = 200 + 10x dollars. Then its profit is

P(x) = R(x) − C(x)
= 40x − 0.5x2 − (200 + 10x)brackets: the whole of C is subtracted
= −0.5x2 + 30x − 200

Figure 6 graphs all three. The profit curve is the vertical gap between R and C. It is positive only where the revenue curve is above the cost line, between the two crossing points. Those are the break-even points, where P(x) = 0. The GDC's zero tool on P gives x = 7.64 and x = 52.4, and its maximum tool gives the highest point of P at (30, 250). So the workshop makes a profit when it sells between 8 and 52 items a day, since x is a whole number of items, and the most it can make is $250 a day, by selling 30.

Figure 6 · Profit is revenue minus cost Figure 6 · Profit is revenue minus cost x (items) $ 20 30 40 60 −200 200 400 600 800 max profit (30, 250) R(x) = 40x − 0.5x² C(x) = 200 + 10x P = R − C 7.64 52.4 P = R − C is positive only between the two points where R and C cross.
Figure 6 · Profit is revenue minus cost

Notice what the difference graph did. Solving R(x) = C(x) is the same as solving R(x) − C(x) = 0, so the points where two graphs cross are exactly the zeros of their difference. That is one of the two ways 2.4 finds intersections with technology.

7Labels and axes: what every graph needs

The guide says all axes and key features should be labelled. On a sketch that list is short and fixed.

FeatureHow to show it
AxesBoth drawn and named: x and y, or the variables of the context with units, such as t (min) and T (°C)
InterceptsA point on the axis with its coordinates: (0, 30), (−4.35, 0)
Turning pointsA point with coordinates, and a rounded (not pointed) turn
End pointsSolid dot if included in the domain, open circle if not; coordinates beside it
AsymptotesA dashed line with its equation: x = 3, y = 20. The curve approaches it and does not touch it at the ends
More than one graphEach curve named: y = f(x), P = R − C

Coordinates from a GDC go to 3 significant figures unless a question says otherwise. If a value is exact and obvious, such as (0, 30), write it exactly.

8Where marks are lost

Sketching when the question said draw. A drawn graph needs a scale and accurately plotted points. A freehand shape on the grid provided loses the accuracy marks.

Drawing when the question said sketch, and forgetting the labels. A careful curve without coordinates on its intercepts and turning points is not a full-marks sketch. The marks are in the labels.

Trusting the default window. If the screen shows a straight-looking line or nothing at all, the window is wrong. Look at a table of values, then zoom until the whole shape is in view.

Joining plotted points with straight segments. Unless the function is linear, or the context changes at constant rates, the curve through the points is smooth. A dot-to-dot graph loses the shape mark.

Running past the domain. If the domain is −2 ≤ x ≤ 3, the graph stops at x = −2 and x = 3, with the end points marked. Arrows or extra curve beyond them are wrong.

Letting a curve run into, or away from, its asymptote. Near a vertical asymptote the curve heads off the page alongside the line; at a horizontal asymptote it flattens towards the line. A curve that touches the asymptote at the end, or turns away from it, has the wrong shape.

Subtracting only part of a function. R(x) − C(x) with C(x) = 200 + 10x is 40x − 0.5x² − 200 − 10x. Leave out the brackets and you get −200 + 10x, and the whole profit function is wrong.

Pointed turning points. A smooth function turns smoothly. A V-shape at a maximum or minimum is the graph of a different kind of function.

9Work it right

  1. Read the command term. Draw: scale, plot, ruler or smooth curve. Sketch: shape plus labelled features.
  2. On Paper 2, graph the function on the GDC and fix the window before anything else: domain for x, auto-fit or a table for y.
  3. List the features on the screen: intercepts, turning points, end points, asymptotes. Find each one's coordinates with the GDC.
  4. Draw and name both axes. Mark the features, write the coordinates, then join them with the shape from the screen.
  5. From a description, turn every phrase into a feature: a starting value, increasing or decreasing, fast or slow, a limit it approaches.
  6. For a sum or difference, define the new function on the GDC from the old ones, and put brackets round anything being subtracted when you write it out.
  7. Check the finished sketch against the question: every feature it mentions is on your graph, and nothing runs past the domain.

10Try it

Marks in brackets. Q1, Q2 and Q5 are Paper 1 style, no calculator. Q3 and Q4 are Paper 2 style, with a GDC.

Q1. The graph of y = 3x² − 5x + 1 passes through the point (2, k).

(a) Find the value of k. 2 marks

(b) Determine whether the point (−1, 9) lies on the graph. 2 marks

Q2. A function f has domain −3 ≤ x ≤ 5. It is known that f(−3) = 0, f has a maximum point at (0, 4), f(3) = 0, f has a minimum point at (4, −2), and f(5) = −1. Sketch a possible graph of y = f(x), labelling each of these points. 4 marks

Q3. Let g(x) = x³ − 2x² − x + 1, for −2 ≤ x ≤ 3.

(a) Sketch the graph of y = g(x), labelling the coordinates of the end points, the local maximum, the local minimum and the y-intercept. 5 marks

(b) Write down the number of solutions of g(x) = 0 in this domain. 1 mark

Q4. A firm's daily revenue from selling x units is R(x) = 60x − x² dollars, and its daily cost is C(x) = 300 + 12x dollars.

(a) Write down an expression for the daily profit P(x) = R(x) − C(x), simplified. 2 marks

(b) Use your GDC to find the values of x for which P(x) = 0. 2 marks

(c) Find the maximum daily profit and the number of units that gives it. 2 marks

Q5. A bath is filled from empty at a constant rate for 8 minutes, until it holds 160 litres. It is left full for 20 minutes. It is then emptied at a constant rate in 4 minutes. Sketch the graph of the volume of water V litres against the time t minutes, for 0 ≤ t ≤ 32, labelling the coordinates of each corner. 3 marks

11In one breath

The graph of f is every point (x, f(x)), its equation is y = f(x), and a point lies on it exactly when its coordinates satisfy that equation. Draw means accurate: a scale, plotted points, a ruler or a smooth curve. Sketch means informative: the right shape in the right place with every relevant feature labelled, and the marks are in those labels. On Paper 2, look at the graph on the GDC first, make the window show everything, then transfer it to paper: axes named, intercepts, turning points, end points and asymptotes marked with coordinates or equations, and a smooth shape between them that stops at the domain. From a description, turn each phrase into a feature. Sums and differences add or subtract heights at each x; define them on the GDC from the originals, bracket whatever is subtracted, and remember that where two graphs cross, their difference is zero.


Answers

Q1. (a) k = 3(2)² − 5(2) + 1 = 12 − 10 + 1 = 3. M1 for substituting x = 2, A1 for k = 3.

(b) When x = −1, y = 3(1) − 5(−1) + 1 = 3 + 5 + 1 = 9, which equals the given y-coordinate, so (−1, 9) lies on the graph. M1 for substituting x = −1, A1 for 9 with the conclusion stated. A correct value with no conclusion scores M1 A0.

Q2. Mark the five points (−3, 0), (0, 4), (3, 0), (4, −2) and (5, −1). Join them with one smooth curve that rises from (−3, 0) to a rounded maximum at (0, 4), falls through (3, 0) to a rounded minimum at (4, −2), then rises to (5, −1), where it stops. The end points (−3, 0) and (5, −1) are solid dots. A1 for the correct shape (up, down, up), A1 for the maximum and minimum at the right points and rounded, A1 for passing through (−3, 0) and (3, 0), A1 for stopping at the end points (−3, 0) and (5, −1) with no curve beyond. A graph that continues past x = −3 or x = 5 loses the last mark.

Q3. (a) From the GDC: end points (−2, −13) and (3, 7); local maximum (−0.215, 1.11); local minimum (1.55, −1.63); y-intercept (0, 1). The curve rises from (−2, −13) to the maximum, falls through (0, 1) to the minimum, then rises to (3, 7), crossing the x-axis three times on the way. A1 for a cubic shape rising, falling, rising and stopping at x = −2 and x = 3, A1 for both end points, A1 for the maximum, A1 for the minimum, A1 for the y-intercept. Coordinates to 3 s.f. Each feature must be labelled on the sketch to score.

(b) 3. The x-intercepts are at x = −0.802, 0.555 and 2.25, all inside the domain. A1.

Q4. (a) P(x) = 60x − x² − (300 + 12x) = −x² + 48x − 300. M1 for subtracting the whole of C(x), with brackets or with both terms subtracted, A1 for the simplified expression.

(b) From the GDC, P(x) = 0 when x = 7.39 and x = 40.6 (3 s.f.). A1 for each value.

(c) The maximum of P is at x = 24, where P = −576 + 1152 − 300 = $276. A1 for x = 24, A1 for $276.

Q5. Three straight segments: from (0, 0) up to (8, 160); horizontal from (8, 160) to (28, 160); then down to (32, 0). The last segment is steeper than the first, because the bath empties twice as fast as it fills. Axes are labelled t (minutes) and V (litres). A1 for three straight segments of the correct shape, A1 for the corners (8, 160) and (28, 160), A1 for the end points (0, 0) and (32, 0) with the emptying segment steeper than the filling one.


Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section 2.3 Graphs of functions. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.

Mocks: in the future, hold tight!