2.3 · SLPaper 1Paper 2

Graphs of functions

In a minute

The graph of y=f(x)y = f(x) is every point (x,f(x))(x, f(x)): each input plotted with its output. You'll get graphs from equations, from facts or a context, and from your calculator screen. You'll also learn what "sketch" and "draw" ask for, and which features to label.

You'll be able to

  • Decide whether a point lies on the graph of y=f(x)y = f(x), and find the axis intercepts from the equation.
  • Tell a sketch from a drawing, and label the axes, intercepts, turning points, end points and .
  • Sketch a graph from given facts or from a real-life context.
  • Graph functions on your calculator, including sums and differences of functions, and copy the graph onto paper.
Before you start2 quick questions on what this builds on
Check yourself
Let f(x)=7−x2f(x) = 7 - x^{2}. Find f(−3)f(-3).
Check yourself
What is the domain of f(x)=x−5f(x) = \sqrt{x - 5}?

Revise first: 2.2 Function concepts, domain and range

A graph from its equation

Take f(x)=x2−3f(x) = x^{2} - 3. The input x=2x = 2 gives the output f(2)=1f(2) = 1, so plot the point (2,1)(2, 1). Do this for every input in the and the points join up into a curve: the graph of y=f(x)y = f(x).

The is where the graph meets the yy-axis. There x=0x = 0, so it is (0,f(0))(0, f(0)). The are where it meets the xx-axis. There y=0y = 0, so solve f(x)=0f(x) = 0.

Learn this
y-intercept: (0,f(0))x-intercepts: solve f(x)=0y\text{-intercept: } (0, f(0)) \qquad x\text{-intercepts: solve } f(x) = 0
Worked exampleLet f(x)=x3−3x+5f(x) = x^{3} - 3x + 5. (a) Does the point (1,4)(1, 4) lie on the graph of y=f(x)y = f(x)? (b) The point (−2,k)(-2, k) lies on the graph. Find kk.

Try it first, then reveal one step at a time.

  1. (a) Work out the output for x=1x = 1: f(1)=1−3+5=3f(1) = 1 - 3 + 5 = 3.
Check yourself
Which point lies on the graph of y=5−2x2y = 5 - 2x^{2}?

The equation also tells you the shape to expect. y=mx+cy = mx + c is a straight line (2.1), and a quadratic gives a U-shaped parabola. You meet each family later in this topic. For a function you don't recognise, make a table of values or use your calculator.

Worked exampleThe graph of y=ax2+3x−2y = ax^{2} + 3x - 2 passes through the point (2,12)(2, 12). (a) Find the value of aa. (b) Hence find the xx-intercepts of the graph.

Try it first, then reveal one step at a time.

  1. (a) The point is on the graph, so substitute x=2x = 2, y=12y = 12: 12=a(2)2+3(2)−212 = a(2)^{2} + 3(2) - 2.
Check yourself
The graph of y=(x−4)(2x+3)y = (x - 4)(2x + 3) meets the yy-axis at (0,c)(0, c). Find cc.

Sketch or draw

Exam questions use two command terms for graphs. They need different accuracy, so check which one you have.

Both need labelled axes. On a sketch, also label the axis intercepts, the turning points (maximum and minimum points), the end points of a restricted domain, and any . Give points as coordinates.

Mark an end point with a filled dot if it is in the domain, and an open circle if it is not. Stop the curve there.

Worked exampleLet y=12x3−2xy = \tfrac{1}{2}x^{3} - 2x, for −2≤x≤3-2 \le x \le 3. (a) Complete the table. x−2−10123y01.50−1.50p\begin{array}{c|cccccc} x & -2 & -1 & 0 & 1 & 2 & 3 \\ \hline y & 0 & 1.5 & 0 & -1.5 & 0 & p \end{array} (b) Draw the graph, using 1 unit per square on each axis.

Try it first, then reveal one step at a time.

  1. (a) Substitute x=3x = 3: p=12(3)3−2(3)=13.5−6=7.5p = \tfrac{1}{2}(3)^{3} - 2(3) = 13.5 - 6 = 7.5.
Sketch of y equals 6 plus x minus x squared for x from minus 3 to 4, with its intercepts, maximum and end points labelled x y (−3, −6) (4, −6) (−2, 0) (3, 0) (0, 6) max (0.5, 6.25)
A sketch of y=6+x−x2y = 6 + x - x^{2} for −3≤x≤4-3 \le x \le 4, from the next example, with every key feature labelled.
Worked exampleSketch the graph of y=6+x−x2y = 6 + x - x^{2} for −3≤x≤4-3 \le x \le 4. Label the axis intercepts, the maximum point and the end points with their coordinates.

Try it first, then reveal one step at a time.

  1. yy-intercept: x=0x = 0 gives (0,6)(0, 6).
Check yourself
You sketch y=x2−2x−8y = x^{2} - 2x - 8 for −3≤x≤5-3 \le x \le 5. What are the coordinates of the left end point?

Sketching from facts or a context

Sometimes there is no equation, only facts about the graph or a story. Turn each fact into a point or a feature, then join them the way the facts describe.

Between neighbouring key points (end points and turning points), an unbroken graph only goes one way, up or down. So if the heights at the two ends of such a stretch have opposite signs, the graph crosses the xx-axis exactly once in it.

Worked exampleA function ff has domain −1≤x≤6-1 \le x \le 6. Its graph starts at (−1,−3)(-1, -3), rises to a maximum at (1,4)(1, 4), falls to a minimum at (4,−2)(4, -2) and rises to end at (6,0)(6, 0). There are no other turning points. (a) Sketch the graph of ff. (b) Write down the number of xx-intercepts.

Try it first, then reveal one step at a time.

  1. (a) Plot the four points, with filled dots at the end points. Join them smoothly, rounding off each turning point like a hilltop or valley floor. Label all four.
Check yourself
A function gg has domain 0≤x≤50 \le x \le 5. Its graph starts at (0,2)(0, 2), falls to a minimum at (2,−1)(2, -1) and rises to end at (5,3)(5, 3), with no other turning points. Which inequality gives the of gg?

Many settle towards a level they never quite reach. That level is a horizontal . Draw it dashed, label it with its equation, and let the curve approach it without touching.

Worked exampleA cup of tea is left in a room. Its temperature, TT °C, after tt minutes is modelled by T(t)=20+140t+2T(t) = 20 + \dfrac{140}{t + 2}, for t≥0t \ge 0. (a) Find T(0)T(0) and T(12)T(12). (b) Sketch the graph of TT for 0≤t≤300 \le t \le 30. (c) State the equation of the line the graph approaches as tt increases.

Try it first, then reveal one step at a time.

  1. (a) T(0)=20+1402=90T(0) = 20 + \frac{140}{2} = 90 and T(12)=20+14014=30T(12) = 20 + \frac{140}{14} = 30.
Check yourself
A drip feeds a medicine into a patient's blood. After tt hours its concentration is C(t)=5tt+2C(t) = \dfrac{5t}{t + 2} mg per litre, for t≥0t \ge 0. What is the equation of the horizontal asymptote of the graph of CC?

Graphing with technology

Your calculator graphs almost any function in seconds, so it quickly shows the shape of a function you have never met. On Paper 2 it also finds key features to 3 s.f.

First set the , the xx and yy ranges the screen shows. Match the xx-range to the domain, then choose a yy-range that shows every turning point and intercept.

To move a graph from screen to paper, copy its shape: where it is steep, where it is flat, where it turns. Then label each key feature with the coordinates your calculator gives.

You can also graph sums and differences of functions. (f+g)(x)(f + g)(x) means f(x)+g(x)f(x) + g(x): at each xx, add the two heights.

Learn this
(f+g)(x)=f(x)+g(x)(f−g)(x)=f(x)−g(x)(f + g)(x) = f(x) + g(x) \qquad (f - g)(x) = f(x) - g(x)
The line y equals x, the curve y equals 4 over x, and their sum y equals x plus 4 over x, with the heights at x equals 1 stacked x y O (1, 5) min (2, 4) 1 4 y = f(x) + g(x) y = f(x) y = g(x)
Here f(x)=xf(x) = x and g(x)=4xg(x) = \frac{4}{x}, for x>0x > 0. At x=1x = 1 the heights 1 and 4 add to give the point (1,5)(1, 5) on y=f(x)+g(x)y = f(x) + g(x).

A difference compares two graphs. Where f(x)−g(x)=0f(x) - g(x) = 0, the graphs of ff and gg meet. Where f(x)−g(x)>0f(x) - g(x) > 0, the graph of ff is above the graph of gg.

Worked exampleLet f(x)=x2+1f(x) = x^{2} + 1 and g(x)=2x+4g(x) = 2x + 4. (a) Write down an expression for (f−g)(x)(f - g)(x). (b) Find the xx-intercepts of the graph of y=(f−g)(x)y = (f - g)(x). (c) Hence state the xx-coordinates of the points where the graphs of ff and gg meet.

Try it first, then reveal one step at a time.

  1. (a) Subtract all of g(x)g(x), in brackets: (f−g)(x)=x2+1−(2x+4)=x2−2x−3(f - g)(x) = x^{2} + 1 - (2x + 4) = x^{2} - 2x - 3.
Check yourself
Let f(x)=3x−1f(x) = 3x - 1 and g(x)=x2g(x) = x^{2}. Find (f−g)(2)(f - g)(2).
Worked exampleA company makes xx hundred phone stands a week, where 0≤x≤1000 \le x \le 100. Its weekly revenue is R(x)=20xR(x) = 20\sqrt{x} and its weekly cost is C(x)=2x+10C(x) = 2x + 10, both in thousands of euros. Its profit is P(x)=R(x)−C(x)P(x) = R(x) - C(x). (a) Sketch the graph of PP. (b) Use your calculator to find the values of xx for which P(x)=0P(x) = 0. Give your answers to 3 s.f.

Try it first, then reveal one step at a time.

  1. (a) Graph P(x)=20x−2x−10P(x) = 20\sqrt{x} - 2x - 10, or enter RR and CC and graph their difference.
Check yourself
Use your calculator to find the largest value of xx for which the weekly profit in the example is at least 30 thousand euros. Give your answer to 3 s.f.

Common mistakes

  • Running the curve past the ends of the domain. Start and stop at the end points, and mark them.
  • Copying a calculator graph loosely, such as drawing a symmetric hump when one side is much steeper. Match the screen's shape.
  • Giving an asymptote as a bare number. It is a line, so write its equation, such as y=20y = 20, and draw it dashed.
  • Giving the domain when asked for the range. The range is the set of heights the graph reaches.
  • Putting ff, gg and f+gf + g on separate axes, or not saying which curve is which. Use one set of axes and label every curve.

Exam tips

  • "Sketch": the right shape in the right place, with every requested feature labelled. "Draw": points plotted accurately to the grid's scale and joined smoothly.
  • "Write down" an asymptote: no working is needed, but give an equation such as y=3y = 3, not just the number.
  • In a context, label the axes with the variables and units, and sketch only over the domain the context allows, such as t≥0t \ge 0.

Key takeaways

Learn thisy-intercept: (0,f(0))x-intercepts: solve f(x)=0y\text{-intercept: } (0, f(0)) \qquad x\text{-intercepts: solve } f(x) = 0
Learn this(f+g)(x)=f(x)+g(x)(f−g)(x)=f(x)−g(x)(f + g)(x) = f(x) + g(x) \qquad (f - g)(x) = f(x) - g(x)
Learn this(a,b)(a, b) is on the graph of y=f(x)y = f(x) exactly when f(a)=bf(a) = b.
Learn thisSketch: the right shape with key features labelled. Draw: accurate, to the grid's scale, joined smoothly.
Learn thisLabel axes, intercepts, turning points, end points and asymptotes (dashed, with equations). Stop at the ends of the domain.
Learn thisCalculator: set the window from the domain, read features to 3 s.f., then copy the shape and labels onto paper.
Learn thisThe graphs of ff and gg meet where f(x)−g(x)=0f(x) - g(x) = 0.

Practise this

20 past-paper questions on 2.3 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 2.3 →