Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Analysis and Approaches
  3. ›2 Functions
  4. ›2.3 Graphs of functions

IB Mathematics: Analysis and Approaches · Topic 2 · Functions

2.3 Graphs of functions

Sketch the graphs of basic functions, read values from a graph, and match simple equations to their graphs.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A graph shows every input paired with its output
  1. 1A graph shows every input paired with its output
  2. 2You can read outputs from a graph and find inputs too
  3. 3Basic functions have shapes worth recognising on sight
  4. 4A few quick checks match an equation to its graph
  5. 5A sketch shows the shape and labelled key points
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: A graph shows every input paired with its output

A table of values lists some inputs and their outputs. Each pair gives a point (x,f(x))(x,f(x))(x,f(x)). Plot enough points and join them smoothly, and the graph of a function appears.

Take f(x)=x2−2xf(x)=x^2-2xf(x)=x2−2x. Substituting inputs gives a table. Each output is the height of the curve above or below the xxx-axis at that input.

Worked example

Complete a table of values

Complete a table of values for f(x)=x2−2xf(x)=x^2-2xf(x)=x2−2x using x=−1,0,1,2,3x=-1,0,1,2,3x=−1,0,1,2,3.
  1. 1
    f(−1)=(−1)2−2(−1)=1+2=3f(-1)=(-1)^2-2(-1)=1+2=3f(−1)=(−1)2−2(−1)=1+2=3.
  2. 2
    f(0)=0−0=0f(0)=0-0=0f(0)=0−0=0.
  3. 3
    f(1)=1−2=−1f(1)=1-2=-1f(1)=1−2=−1.
  4. 4
    f(2)=4−4=0f(2)=4-4=0f(2)=4−4=0.
  5. 5
    f(3)=9−6=3f(3)=9-6=3f(3)=9−6=3.

Answer: The points are (−1,3)(-1,3)(−1,3), (0,0)(0,0)(0,0), (1,−1)(1,-1)(1,−1), (2,0)(2,0)(2,0) and (3,3)(3,3)(3,3).

Join the points with a smooth curve, and a U-shape appears. More inputs give a more reliable picture. Use straight segments only when the function is a straight line. The same table method works for any function.

Key term

graph of a function

The graph of a function fff is the set of all points (x,f(x))(x,f(x))(x,f(x)) for xxx in the domain of fff.

Part 1 done

2

Part 2 of 5: You can read outputs from a graph and find inputs too

A graph answers questions without algebra. To find f(2)f(2)f(2), start at x=2x=2x=2 on the horizontal axis. Go up or down to the curve, then across to the vertical axis. That height is f(2)f(2)f(2).

To find inputs, work the other way. For f(x)=kf(x)=kf(x)=k, draw a horizontal line at height kkk. Each point where it meets the curve gives an input that works. There may be none, one or several. Solving f(x)=kf(x)=kf(x)=k in this way is called a graphical method.

Worked example

Read values from a graph

The curve y=f(x)y=f(x)y=f(x) passes through (−1,3)(-1,3)(−1,3), (0,0)(0,0)(0,0), (1,−1)(1,-1)(1,−1), (2,0)(2,0)(2,0) and (3,3)(3,3)(3,3). Find f(1)f(1)f(1) and solve f(x)=3f(x)=3f(x)=3.
  1. 1
    The point with x=1x=1x=1 is (1,−1)(1,-1)(1,−1), so f(1)=−1f(1)=-1f(1)=−1.
  2. 2
    Draw the line y=3y=3y=3. It meets the curve at (−1,3)(-1,3)(−1,3) and (3,3)(3,3)(3,3).
  3. 3
    Read the xxx-coordinates of those two points.

Answer: f(1)=−1f(1)=-1f(1)=−1, and f(x)=3f(x)=3f(x)=3 when x=−1x=-1x=−1 or x=3x=3x=3.

Exam tip

When you solve f(x)=kf(x)=kf(x)=k, give the xxx-values. The height kkk is the value you were given, not the answer.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the shape of the graph of y=x2y=x^2y=x2.
Show answer and explanation

Answer: B · Worked explanation

The graph of y=x2y=x^2y=x2 is a U-shape with its lowest point at the origin. A straight line is the graph of y=xy=xy=x. The S-shape belongs to y=x3y=x^3y=x3. Two separate branches belong to y=1xy=\frac{1}{x}y=x1​, which is not defined at x=0x=0x=0. Check the shape by recalling the lowest point (0,0)(0,0)(0,0).
3

Part 3 of 5: Basic functions have shapes worth recognising on sight

Many graphs in this course are variations of a few basic ones. Learn each shape and one or two points on it. Then you can sketch quickly and spot mistakes.

Basic functions and their graphs

EquationShapeNotable features
y=xy=xy=xStraight linePasses through (0,0)(0,0)(0,0); gradient 1
y=x2y=x^2y=x2U-shapeLowest point (0,0)(0,0)(0,0); symmetric about the yyy-axis
y=x3y=x^3y=x3S-shapePasses through (0,0)(0,0)(0,0); always rising
y=xy=\sqrt{x}y=x​Half of a sideways UStarts at (0,0)(0,0)(0,0); only x≥0x\ge0x≥0
y=1xy=\frac{1}{x}y=x1​Two separate branchesBoth axes are asymptotes
y=2xy=2^xy=2xRising curvePasses through (0,1)(0,1)(0,1); y>0y>0y>0 always
Equation
y=xy=xy=x
Shape
Straight line
Notable features
Passes through (0,0)(0,0)(0,0); gradient 1
Equation
y=x2y=x^2y=x2
Shape
U-shape
Notable features
Lowest point (0,0)(0,0)(0,0); symmetric about the yyy-axis
Equation
y=x3y=x^3y=x3
Shape
S-shape
Notable features
Passes through (0,0)(0,0)(0,0); always rising
Equation
y=xy=\sqrt{x}y=x​
Shape
Half of a sideways U
Notable features
Starts at (0,0)(0,0)(0,0); only x≥0x\ge0x≥0
Equation
y=1xy=\frac{1}{x}y=x1​
Shape
Two separate branches
Notable features
Both axes are asymptotes
Equation
y=2xy=2^xy=2x
Shape
Rising curve
Notable features
Passes through (0,1)(0,1)(0,1); y>0y>0y>0 always

Two of these graphs have an asymptote. This is a line that the curve approaches ever more closely without reaching. The graph of y=1xy=\frac{1}{x}y=x1​ has both axes as asymptotes. The graph of y=2xy=2^xy=2x has the xxx-axis as an asymptote on the left.

Some of these graphs are not defined for every xxx. The square root needs x≥0x\ge0x≥0, and 1x\frac{1}{x}x1​ needs x≠0x\ne0x=0.

Figure 1. Type each function from the table and compare its shape, points and asymptotes.

Key term

asymptote

An asymptote is a line that a curve gets arbitrarily close to as xxx or yyy becomes very large in size.

Part 3 done

4

Part 4 of 5: A few quick checks match an equation to its graph

Now suppose you are given several graphs and one equation. Do not test every point. Use quick checks that rule out wrong choices. Each check removes some of the options.

  • Find f(0)f(0)f(0) and compare it with where the graph meets the yyy-axis.
  • Check whether the graph exists for negative values of xxx.
  • Look for asymptotes, which suggest 1x\frac{1}{x}x1​ or 2x2^x2x.
  • Test one more point, such as x=1x=1x=1 or x=2x=2x=2.

Common mistake

Two functions can share a point. Both y=xy=xy=x and y=x3y=x^3y=x3 pass through (1,1)(1,1)(1,1), so test a second point.

Part 4 done

Quick check

One question on the part you just read

Easy

Identify the function whose graph has both axes as asymptotes.
Show answer and explanation

Answer: D · Worked explanation

The graph of y=1xy=\frac{1}{x}y=x1​ approaches both axes without reaching either. The graph of y=xy=\sqrt{x}y=x​ starts at the origin and has no asymptote. The graphs of y=x2y=x^2y=x2 and y=x3y=x^3y=x3 are smooth curves through the origin with no asymptotes. Remember that asymptotes appear only for y=1xy=\frac{1}{x}y=x1​ and y=2xy=2^xy=2x among the basic graphs.
5

Part 5 of 5: A sketch shows the shape and labelled key points

Sometimes a question asks you to sketch rather than plot. A sketch is a drawing that shows the correct shape and labels important points. It does not need an accurate scale.

  • Draw and label the axes.
  • Mark any points you know, such as where the graph meets the axes.
  • Draw the correct shape through those points.
  • Show asymptotes as dashed lines.

A plotted graph is different. It uses a measured scale, so values can be read accurately from it. Sketches are quicker to draw and show the features that matter.

Exam tip

Label each axis and mark the coordinates of the points you know. Shape and labels both earn marks.

Key term

sketch

A sketch is a diagram of a graph that shows its general shape and important points without a precise scale.

Note read

Check your recall[14 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Describe[3 marks]

    Describe the graph of y=1xy=\frac{1}{x}y=x1​.

    Show mark schemeHide mark scheme

    Model answer

    The graph has two separate branches. The xxx-axis is an asymptote. The yyy-axis is also an asymptote.

    • 1 mark for stating that the graph has two separate branches
    • 1 mark for identifying the xxx-axis as an asymptote
    • 1 mark for identifying the yyy-axis as an asymptote
  2. 2.Write down[2 marks]

    Write down the yyy-intercept and the equation of the horizontal asymptote of y=2xy=2^xy=2x.

    Show mark schemeHide mark scheme

    Model answer

    The yyy-intercept is (0,1)(0,1)(0,1) and the horizontal asymptote is y=0y=0y=0.

    • 1 mark for stating the yyy-intercept (0,1)(0,1)(0,1) or the value 1
    • 1 mark for stating the asymptote y=0y=0y=0
  3. 3.Calculate[3 marks]

    Calculate f(−1)f(-1)f(−1), f(1)f(1)f(1) and f(5)f(5)f(5) for f(x)=x2−4xf(x)=x^2-4xf(x)=x2−4x.

    Show mark schemeHide mark scheme

    Model answer

    f(−1)=1+4=5f(-1)=1+4=5f(−1)=1+4=5, f(1)=1−4=−3f(1)=1-4=-3f(1)=1−4=−3 and f(5)=25−20=5f(5)=25-20=5f(5)=25−20=5.

    • 1 mark for obtaining f(−1)=5f(-1)=5f(−1)=5
    • 1 mark for obtaining f(1)=−3f(1)=-3f(1)=−3
    • 1 mark for obtaining f(5)=5f(5)=5f(5)=5
  4. 4.Describe[2 marks]

    Describe how a graph can be used to find the values of xxx for which f(x)=2f(x)=2f(x)=2.

    Show mark schemeHide mark scheme

    Model answer

    Draw a horizontal line at height 2. Read the xxx-coordinates of the points where it meets the curve.

    • 1 mark for drawing a horizontal line at y=2y=2y=2
    • 1 mark for reading the xxx-coordinates of the points where the line meets the curve
  5. 5.Deduce[2 marks]

    A curve passes through (−2,−8)(-2,-8)(−2,−8), (1,1)(1,1)(1,1) and (2,8)(2,8)(2,8). Deduce which basic function it could be.

    Show mark schemeHide mark scheme

    Model answer

    The points satisfy y=x3y=x^3y=x3, because (−2)3=−8(-2)^3=-8(−2)3=−8, 13=11^3=113=1 and 23=82^3=823=8. The function is y=x3y=x^3y=x3.

    • 1 mark for checking the points against a basic function
    • 1 mark for identifying y=x3y=x^3y=x3
  6. 6.Distinguish[2 marks]

    Distinguish between a sketch and a plotted graph.

    Show mark schemeHide mark scheme

    Model answer

    A sketch shows the general shape and labels key points without an accurate scale. A plotted graph uses a measured scale, so values can be read accurately.

    • 1 mark for stating that a sketch shows shape and key points without an accurate scale
    • 1 mark for stating that a plotted graph uses a measured scale

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Calculate[1 mark]

Calculate f(3)f(3)f(3) for f(x)=x2−2xf(x)=x^2-2xf(x)=x2−2x.
Show answer and explanation

Answer: A · Worked explanation

Substitute x=3x=3x=3: f(3)=9−6=3f(3)=9-6=3f(3)=9−6=3. The value 15 comes from adding instead of subtracting, giving 9+69+69+6. Square the input first, then subtract the second term. Taking the sign wrongly would give a different output at the same point on the curve. Check: 32=93^2=932=9 and 2(3)=62(3)=62(3)=6, so 9−6=39-6=39−6=3.
4.

Medium·Determine[2 marks]

The curve y=f(x)y=f(x)y=f(x) for f(x)=x2−4xf(x)=x^2-4xf(x)=x2−4x passes through (0,0)(0,0)(0,0), (1,−3)(1,-3)(1,−3), (2,−4)(2,-4)(2,−4), (3,−3)(3,-3)(3,−3) and (4,0)(4,0)(4,0). Determine the values of xxx for which f(x)=−3f(x)=-3f(x)=−3.
Show answer and explanation

Answer: A · Worked explanation

Draw the horizontal line y=−3y=-3y=−3. It meets the curve at (1,−3)(1,-3)(1,−3) and (3,−3)(3,-3)(3,−3), so x=1x=1x=1 or x=3x=3x=3. The values 0 and 4 are where the curve meets the xxx-axis, which solves f(x)=0f(x)=0f(x)=0, not f(x)=−3f(x)=-3f(x)=−3. Always read the xxx-coordinates of the points where the line meets the curve.
5.

Medium·Identify[1 mark]

Identify the equation that matches a curve through (0,1)(0,1)(0,1) that always lies above the xxx-axis and has the xxx-axis as an asymptote.
Show answer and explanation

Answer: C · Worked explanation

The graph of y=2xy=2^xy=2x passes through (0,1)(0,1)(0,1), stays above the xxx-axis, and approaches the xxx-axis on the left. The graph of y=x2+1y=x^2+1y=x2+1 also passes through (0,1)(0,1)(0,1), but it has no asymptote and never approaches the xxx-axis. The graph of y=x+1y=x+1y=x+1 is a straight line and y=x3+1y=x^3+1y=x3+1 is an S-shape, so neither has an asymptote.
6.

Medium·Identify[1 mark]

Identify the function whose graph has no points to the left of the yyy-axis.
Show answer and explanation

Answer: D · Worked explanation

The square root of a negative number is not real, so y=xy=\sqrt{x}y=x​ exists only for x≥0x\ge0x≥0. The graph of y=2xy=2^xy=2x has points for every xxx, including negative values, where it lies close to the xxx-axis. The graphs of y=x2y=x^2y=x2 and y=1xy=\frac{1}{x}y=x1​ also have points with negative xxx.
7.

Medium·Calculate[2 marks]

Calculate f(−2)f(-2)f(−2) for f(x)=x3−x2f(x)=x^3-x^2f(x)=x3−x2.
Show answer and explanation

Answer: A · Worked explanation

Substitute x=−2x=-2x=−2: f(−2)=(−2)3−(−2)2=−8−4=−12f(-2)=(-2)^3-(-2)^2=-8-4=-12f(−2)=(−2)3−(−2)2=−8−4=−12. The value -4 comes from treating (−2)2(-2)^2(−2)2 as -4, which gives −8−(−4)-8-(-4)−8−(−4). A negative number squared is positive, so (−2)2=4(-2)^2=4(−2)2=4. Check: (−2)3=−8(-2)^3=-8(−2)3=−8 because three negative factors give a negative result. Subtracting 4 then gives -12, as required.
8.

Hard·Deduce[2 marks]

A curve passes through (−2,−8)(-2,-8)(−2,−8), (1,1)(1,1)(1,1) and (2,8)(2,8)(2,8). Deduce which equation it could be.
Show answer and explanation

Answer: B · Worked explanation

For y=x3y=x^3y=x3, we get (−2)3=−8(-2)^3=-8(−2)3=−8, 13=11^3=113=1 and 23=82^3=823=8, so all three points fit. The equation y=4xy=4xy=4x fits (−2,−8)(-2,-8)(−2,−8) and (2,8)(2,8)(2,8), but gives 4 at x=1x=1x=1, not 1. This is why one extra point must always be tested. At (−2,−8)(-2,-8)(−2,−8) the curve y=x2y=x^2y=x2 would give 4, so it fails immediately.
9.

Hard·Deduce[2 marks]

A horizontal line y=ky=ky=k is drawn across the graph of y=1xy=\frac{1}{x}y=x1​. Deduce how many points it meets for each value of kkk.
Show answer and explanation

Answer: C · Worked explanation

Each branch is a single curve, and a horizontal line meets one branch once when k≠0k\neq0k=0. The xxx-axis is an asymptote, so the curve never reaches y=0y=0y=0 and there are no points for k=0k=0k=0. Two points for k>0k>0k>0 is the pattern for y=x2y=x^2y=x2, not for this graph.
10.

Hard·Deduce[2 marks]

The graph of y=2xy=2^xy=2x lies above the xxx-axis for every xxx. Deduce the number of solutions of 2x=−12^x=-12x=−1.
Show answer and explanation

Answer: B · Worked explanation

The horizontal line y=−1y=-1y=−1 lies below the xxx-axis, and the whole graph of y=2xy=2^xy=2x lies above it. They never meet, so there are no solutions. A solution with x<0x<0x<0 is tempting because the curve approaches the axis on the left, but it only gets close to y=0y=0y=0 and never reaches below it.

Keep going

Next topic2.4 Key features of graphsPrevious topic2.2 Functions, domain and range

More in Topic 2 · Functions

  1. 2.1Equations of straight linesNotes · 10 questions
  2. 2.2Functions, domain and rangeNotes · 10 questions
  3. 2.3Graphs of functionsNotes · 10 questions
  4. 2.4Key features of graphsNotes · 10 questions
  5. 2.5Composite and inverse functionsNotes · 10 questions
  6. 2.6Quadratic functionsNotes · 10 questions
  7. 2.7Quadratic equations and inequalitiesNotes · 10 questions
  8. 2.8Reciprocal and rational functionsNotes · 10 questions
  9. 2.9Exponential and logarithmic functionsNotes · 10 questions

All IB Mathematics: Analysis and Approaches topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/5 read

  1. 1A graph shows every input paired with its output
  2. 2You can read outputs from a graph and find inputs too
  3. 3Basic functions have shapes worth recognising on sight
  4. 4A few quick checks match an equation to its graph
  5. 5A sketch shows the shape and labelled key points
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe