Skip to content
IB Diploma ProgrammeSL & HL

Graphs of functions

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Graphs of functions notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Graphs of functions notes as text: skim, search, and jump between subtopics.

~16 min read

1. The graph of a function and its equation

The graph of a function is the set of all points (x,y) whose coordinates satisfy the equation y = f(x). The x-coordinate is an input and the y-coordinate is the output f(x).

A point lies on the graph only if its coordinates satisfy the equation. To test a point, substitute its x-value into f(x) and compare the result with its y-value.

Two points are found from the equation alone. The y-intercept is where x = 0, so it is (0, f(0)). The x-intercepts are where y = 0, so they solve f(x) = 0. Give each intercept as a coordinate pair.

point (a, b) is on y = f(x) iff f(a) = b

y-intercept: (0, f(0)) x-intercepts: f(x) = 0

Worked example 16 marks

Consider the function f(x) = x² - 2x - 3.

(a) Show that the point (4, 5) lies on the graph of y = f(x). [2]

(b) Find the coordinates of the y-intercept. [1]

(c) Find the coordinates of the x-intercepts. [3]

  1. 1

    (a) substitute x = 4: f(4) = 4² - 2(4) - 3 (M1) [1]

  2. 2

    = 16 - 8 - 3 = 5, which equals the y-coordinate, so (4, 5) is on the graph (AG) [1]

  3. 3

    (b) f(0) = -3, so the y-intercept is (0, -3) (A1) [1]

  4. 4

    (c) set y = 0: x² - 2x - 3 = 0, so (x - 3)(x + 1) = 0 (M1) [1]

  5. 5

    x = 3 or x = -1 (A1) [1]

  6. 6

    the x-intercepts are (3, 0) and (-1, 0) (A1) [1]

2. Draw and sketch are different commands

Draw asks for an accurate graph. Plot points correctly, use a ruler for straight lines and join the points with a smooth curve. The graph is read from the grid.

Sketch asks for a graph that shows the general shape of the function. No grid or scale is needed, but the axes and the key features must be labelled: intercepts, turning points and end points, each with its coordinates.

Both graphs are of one function: the first is drawn, the second is sketched.

y = x² - 6x + 10, 0 ≤ x ≤ 6

draw: accurate, on a grid sketch: shape and labelled key features

Worked example 14 marks

Sketch the graph of y = x² - 6x + 10 for 0 ≤ x ≤ 6. Label both axes, the y-intercept and the minimum point.

  1. 1

    write x² - 6x + 10 = (x - 3)² + 1 (M1) [1]

  2. 2

    the minimum point is (3, 1), and the graph has no x-intercept because y ≥ 1 (A1) [1]

  3. 3

    y-intercept: y = 10 when x = 0, so (0, 10) (A1) [1]

  4. 4

    smooth U-shaped curve for 0 ≤ x ≤ 6, ending at (6, 10), with axes labelled x and y (A1) [1]

3. Sketching from information or a context

Often there is no formula to plot. You are given information: intercepts, a maximum point, the domain, or a story such as a ball thrown upward. Build the sketch from that information.

A context sets the domain. A height cannot be negative and time does not run backwards, so draw only the part of the curve that makes sense. Mark the end points of the domain.

Label the axes with the quantity and its unit, such as t (seconds). Then mark each key feature as a coordinate pair.

axes labelled → domain only → key features as coordinates

Worked example 16 marks

A ball is thrown upward. Its height h metres above the ground after t seconds is given by h(t) = 20t - 5t², for 0 ≤ t ≤ 4.

(a) Find the time at which the ball returns to the ground. [2]

(b) Find the maximum height of the ball and the time at which it is reached. [2]

(c) Sketch the graph of h, labelling the axes and the key features. [2]

  1. 1

    (a) set h = 0: 5t(4 -t) = 0 (M1) [1]

  2. 2

    t = 4 seconds, since t = 0 is the launch (A1) [1]

  3. 3

    (b) the curve is symmetrical, so the maximum is midway between 0 and 4: t = 2 (M1) [1]

  4. 4

    h(2) = 40 - 20 = 20, so the maximum height is 20 metres (A1) [1]

  5. 5

    (c) smooth curve only for 0 ≤ t ≤ 4, with axes labelled t (seconds) and h (metres) (A1) [1]

  6. 6

    points (0, 0), (2, 20) and (4, 0) marked as coordinates (A1) [1]

4. Graphing with technology and copying to paper

A graphic display calculator (GDC) plots a function and finds its key features. It is used on Paper 2. Enter the function, then choose a window that shows the whole domain and every feature. If a feature is missing, the window is wrong. Change it and look again.

Use the calculator to read the x-intercepts, the y-intercept and any turning points. Give non-exact values to three significant figures.

To transfer the graph from screen to paper, draw and label your own axes. Copy the shape and mark the key features with their coordinates.

enter y = f(x) → set window → read features → sketch on paper

Worked example 14 marks

Use your graphic display calculator to answer this question.

Consider f(x) = x³ - 4x² + x + 6, for -2 ≤ x ≤ 4.

Sketch the graph of y = f(x). Write down the x-intercepts, the y-intercept and the coordinates of the local minimum point. Give non-exact values to three significant figures.

  1. 1

    enter y = x³ - 4x² + x + 6 and set the window to -2 ≤ x ≤ 4, with y from about -25 to 15 so that f(-2) = -20 is visible

  2. 2

    sketch: a smooth cubic curve over -2 ≤ x ≤ 4 only, from the end point (-2, -20) to the end point (4, 10), with axes labelled x and y (A1) [1]

  3. 3

    x-intercepts: (-1, 0), (2, 0) and (3, 0) (A1) [1]

  4. 4

    y-intercept: (0, 6) (A1) [1]

  5. 5

    local minimum point: (2.54, -0.879) (A1) [1]

5. Graphing the sum of two functions

The sum of two functions is a new function: (f + g)(x) = f(x) + g(x). Its graph is found by adding the y-values of the two graphs at each x.

On a GDC, enter the sum as one function, such as y = x + 4/x, and graph it. You can also enter f and g separately and add them.

The sum often has a feature that neither function has alone. Here y = x and y = 4/x have no turning point, but their sum has a minimum point. Read it from the GDC.

(f + g)(x) = f(x) + g(x)

Worked example 13 marks

Use your graphic display calculator to answer this question.

The functions f and g are defined for x > 0 by f(x) = x and g(x) = 4/x.

Let h(x) = f(x) + g(x). Find the coordinates of the minimum point on the graph of y = h(x).

  1. 1

    write h(x) = x + 4/x and graph it for x > 0 (M1) [1]

  2. 2

    the minimum is at x = 2 (A1) [1]

  3. 3

    h(2) = 2 + 2 = 4, so the minimum point is (2, 4) (A1) [1]

6. Graphing the difference of two functions

The difference of two functions is (f - g)(x) = f(x) - g(x). Subtract the whole of g(x), so write brackets around it.

The difference is zero exactly where f(x) = g(x). So the x-intercepts of y = f(x) - g(x) are the x-coordinates of the points where the graphs of f and g meet. Find the y-coordinate by substituting into f or g.

This lets you solve f(x) = g(x) by graphing one function.

(f - g)(x) = f(x) - g(x)

f(x) = g(x) iff (f - g)(x) = 0

Worked example 13 marks

Use your graphic display calculator to answer this question.

The functions f and g are defined by f(x) = x² and g(x) = 2x + 3.

Find the coordinates of the points where the graphs of y = f(x) and y = g(x) meet.

  1. 1

    graph y = f(x) - g(x) = x² - (2x + 3) = x² - 2x - 3 (M1) [1]

  2. 2

    the x-intercepts give x = -1 and x = 3 (A1) [1]

  3. 3

    f(-1) = 1 and f(3) = 9, so the points are (-1, 1) and (3, 9) (A1) [1]

Recap

  • The graph of y = f(x) is the set of points whose coordinates satisfy the equation.
  • To test a point, substitute its x-value into f(x). For intercepts, use x = 0 and f(x) = 0.
  • Draw is accurate and on a grid. Sketch gives the general shape with key features labelled.
  • Label both axes, and mark intercepts, turning points and end points as coordinates.
  • In a context, draw only the domain that makes sense and mark its end points.
  • With a GDC, choose a window that shows every feature, then copy the shape to your own labelled axes.
  • f + g and f - g can be graphed as one function. The x-intercepts of f - g are where f and g meet.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Do not use a calculator. Write down the value of f(3) for the function f(x) = 2x + 5.1 mark
    Answer
    1. f(3) = 2(3) + 5 = 11.

    Trap: f(3) means replace x by 3. It is not f multiplied by 3, and the answer is not 3.

  2. Do not use a calculator. Determine which point lies on the graph of y = x² - 4x. A. (1, 3) B. (2, -4) C. (3, 3) D. (4, 12)1 mark
    Answer
    1. Substitute each x-value. y = 1 - 4 = -3 at x = 1, y = 4 - 8 = -4 at x = 2, y = 9 - 12 = -3 at x = 3, y = 16 - 16 = 0 at x = 4.
    2. The answer is B. A and C lose the minus sign. D reads 4x as 4, so it computes 16 - 4 = 12.

    Trap: Each wrong option is a slip: a lost sign in A and C, and 4x treated as 4 in D.

  3. Do not use a calculator. Find the coordinates of the points where the graph of f(x) = 3x - 12 meets each axis.2 marks
    Answer
    1. y-intercept: f(0) = -12, so (0, -12) [1].
    2. x-intercept: 3x - 12 = 0, so x = 4 and the point is (4, 0) [1].

    Trap: Writing the intercepts as the bare numbers -12 and 4, or swapping the coordinates, loses marks.

  4. Do not use a calculator. Sketch the graph of f(x) = x² - 6x + 8. Label both axes, the y-intercept, the x-intercepts and the minimum point.3 marks
    Answer
    1. y-intercept: f(0) = 8, so (0, 8) [1].
    2. x² - 6x + 8 = (x - 2)(x - 4) = 0, so the x-intercepts are (2, 0) and (4, 0) [1].
    3. The curve is symmetrical about x = 3 and f(3) = 9 - 18 + 8 = -1. Sketch a smooth U-shaped curve with axes labelled x and y and the minimum point (3, -1) marked [1].

    Trap: A sketch with the intercepts but no minimum point, or with the features given as numbers instead of coordinates, is incomplete.

  5. A tank holds 200 litres of water. Water drains out so that the volume V litres after t minutes is V = 200 - 8t, for 0 ≤ t ≤ 25. Sketch the graph of V against t. Label both axes with the quantity and unit, and mark the end points.3 marks
    Answer
    1. When t = 0, V = 200, so one end point is (0, 200) [1].
    2. When t = 25, V = 200 - 200 = 0, so the other end point is (25, 0) [1].
    3. Draw a straight line between them only, with axes labelled t (minutes) and V (litres) [1].

    Trap: The line must stop at t = 25. Continuing it below the axis gives a negative volume, which the context does not allow.

  6. Do not use a calculator. Let f(x) = x² - 2x and g(x) = 5 - x². Show that the graph of y = f(x) + g(x) is a straight line. Hence write down its y-intercept and its x-intercept.3 marks
    Answer
    1. f(x) + g(x) = x² - 2x + 5 - x² = 5 - 2x [1]. This is of the form y = mx + c, so the graph is a straight line.
    2. y-intercept: x = 0 gives (0, 5) [1].
    3. x-intercept: 5 - 2x = 0 gives x = 2.5, so (2.5, 0) [1].

    Trap: Adding the two x² terms instead of cancelling them gives 2x², which is not a line. They are +x² and -x².

  7. Do not use a calculator. Let f(x) = 2x + 1 and g(x) = 7 - x. Determine the coordinates of the point where the graphs of y = f(x) and y = g(x) meet, by finding the difference f(x) - g(x).4 marks
    Answer
    1. f(x) - g(x) = (2x + 1) - (7 - x) [1].
    2. = 2x + 1 - 7 + x = 3x - 6 [1].
    3. The graphs meet where 3x - 6 = 0, so x = 2 [1].
    4. f(2) = 5, so the point is (2, 5) [1].

    Trap: Subtracting only the 7 and not the -x gives 2x + 1 - 7 - x, a sign error. The bracket must cover all of g(x).

  8. Use your graphic display calculator. Consider f(x) = x³ - 6x² + 9x + 1, for 0 ≤ x ≤ 5. Sketch the graph of y = f(x), labelling the turning points and the end points as coordinates.4 marks
    Answer
    1. Enter the function with a window that includes 0 ≤ x ≤ 5 and y up to at least 21.
    2. Local maximum: (1, 5) [1]. Local minimum: (3, 1) [1].
    3. End points: f(0) = 1 and f(5) = 125 - 150 + 45 + 1 = 21, so (0, 1) and (5, 21) [1].
    4. Smooth curve over 0 ≤ x ≤ 5 only, with axes labelled x and y [1].

    Trap: A default window can hide the end point (5, 21). If a feature is missing, change the window.

  9. Use your graphic display calculator. A biologist models two populations of bacteria. After t hours, population A is A(t) = 2^(t) thousand and population B is B(t) = t³ thousand, for 0 ≤ t ≤ 12. (a) Write down an expression for D(t) = B(t) - A(t). [1] (b) Determine the times at which the two populations are equal. [3] (c) Find the greatest amount by which population B exceeds population A, and the time at which it occurs. [2]6 marks
    Answer
    1. (a) D(t) = t³ - 2^(t) [1].
    2. (b) The populations are equal where D(t) = 0. Graph y = D(t) for 0 ≤ t ≤ 12, with y from about -2500 to 500, so that every t-intercept shows [1].
    3. t = 1.37 hours [1] and t = 9.94 hours [1].
    4. (c) Use the GDC to find the maximum point of D between the two intercepts [1].
    5. The maximum point is (8.18, 257): B exceeds A by at most 257 thousand, after 8.18 hours [1].

    Trap: Graphing A and B separately with y up to 10 shows only the meeting at t = 1.37; the second is at a population near 982 thousand, far off that screen. Graph D over the whole domain 0 ≤ t ≤ 12 and read every t-intercept.

  10. Use your graphic display calculator. A company sells x thousand items, for 0 ≤ x ≤ 20. The revenue is R(x) = 40x - 2x² and the cost is C(x) = 10x + 50, both in thousands of dollars. The profit is P(x) = R(x) - C(x). (a) Show that P(x) = -2x² + 30x - 50. [2] (b) Sketch the graph of y = P(x) for 0 ≤ x ≤ 20. Label the x-intercepts, the maximum point and the end points. [4] (c) The manager claims that profit is greatest when revenue is greatest. Determine whether the claim is correct. [2]8 marks
    Answer
    1. (a) P(x) = 40x - 2x² - (10x + 50) [1].
    2. = 40x - 2x² - 10x - 50 = -2x² + 30x - 50 [1].
    3. (b) A smooth curve with a maximum, drawn over 0 ≤ x ≤ 20 only, with axes labelled x and y [1].
    4. x-intercepts from the GDC: (1.91, 0) and (13.1, 0) [1].
    5. Maximum point: (7.5, 62.5) [1].
    6. End points: P(0) = -50 and P(20) = 600 - 800 - 50 = -250, so (0, -50) and (20, -250) [1].
    7. (c) Revenue is greatest at the maximum point of R: (10, 200), so when 10 thousand items are sold [1].
    8. Profit is greatest when 7.5 thousand items are sold, not 10 thousand, so the claim is not correct [1].

    Trap: Without brackets round C(x), the subtraction gives +50 instead of -50; and the maximum of R is not the maximum of P, so each graph's own maximum must be read.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
axes left with no labelsboth axes labelled with the variable, and the unit where there is one
an x-intercept written as the bare number 3the intercept as a coordinate pair, (3, 0)
a sketch made by joining plotted points with a rulera smooth curve showing the general shape, with the key features labelled
a curve continued beyond the domain the question givesthe curve drawn only over the stated domain, with the end points marked

Frequently asked questions

How do I check whether a point lies on the graph of a function?
Substitute the x-value into f(x) and compare the result with the y-value. A point lies on the graph only if its coordinates satisfy the equation. For f(x) = x² - 2x - 3, f(4) = 16 - 8 - 3 = 5, so the point (4, 5) is on the graph. Show the working, as the command term 'show that' requires.
How do I find the intercepts of the graph of a function?
The y-intercept is (0, f(0)): substitute x = 0. The x-intercepts are found from f(x) = 0. For f(x) = x² - 2x - 3, f(0) = -3 gives (0, -3). Factorise (x - 3)(x + 1) = 0 to get (3, 0) and (-1, 0). Give each intercept as a coordinate pair.
What is the difference between draw and sketch for a graph?
Draw means an accurate graph: plot points correctly, use a ruler for straight lines and join the points with a smooth curve on a grid. Sketch means the general shape, with no grid or scale, but with both axes and the key features labelled. Key features are the intercepts, turning points and end points, each with its coordinates.
How do I use a GDC to sketch a graph and find its key features?
Enter the function and choose a window that shows the whole domain and every feature. If a feature is missing, change the window. For x³ - 4x² + x + 6 with -2 ≤ x ≤ 4, the x-intercepts are (-1, 0), (2, 0) and (3, 0), the y-intercept is (0, 6), and the local minimum is (2.54, -0.879) to 3 significant figures. Copy the shape to your own labelled axes.
How do I graph the sum of two functions, such as x + 4/x?
Add the y-values of the two graphs at each x, or enter the sum as one function. For h(x) = x + 4/x with x > 0, the minimum is at x = 2 and h(2) = 4, so the minimum point is (2, 4). The sum can have a feature, such as a minimum point, that neither function has alone.
Why do I lose marks on a sketch of a graph?
The markscheme wants both axes labelled with the variable and any unit, and each intercept written as a pair such as (3, 0), not the bare number 3. Draw a smooth curve showing the general shape, and draw it only over the stated domain, with its end points marked. A sketch with the intercepts but no minimum point is incomplete.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters