Graphs and elementary functions
The graph of a function is the drawing of all its pairs . Being able to read it (domain, range, intercepts, maxima) and to draw the simplest functions, including piecewise ones, is the basis of almost every function problem in the IB exam.
The graph of a function
A point lies on the graph if and only if . This is useful for two things: checking whether a point belongs to the curve (by substituting) and, conversely, deducing information from the formula using a point on the drawing.
Vertical line test. A curve is the graph of a function if no vertical line cuts it at more than one point. If a vertical line cut it twice, that input would have two outputs, and that is not a function. A circle, for example, does not pass the test.
Constant and linear functions
The constant function always gives the same value. Its graph is a horizontal line and its range is just .
The linear function has a straight line as its graph. The number is the gradient (how much rises when increases by one unit), and is the y-intercept, the value of where the line cuts the -axis. If the line rises, if it falls, and if it is constant.
A non-constant linear function has domain and range both equal to .
Piecewise functions
Some functions use a different formula depending on the value of . They are written with a brace:
To evaluate it, first find which piece falls in, and use only the formula for that piece. To draw it, make a table with the endpoints of each piece and join each piece separately.
Reading a graph
From a graph you can read off several things directly:
- Domain: the values of that the drawing covers, from left to right.
- Range: the values of that it covers, from bottom to top.
- Intercepts with the axes: with the -axis at ; with the -axis at the zeros, where .
- Maximum and minimum: the highest and lowest values of reached (the height, not the position).
- Solutions of : the -coordinates of the points where the horizontal line cuts the curve.
Worked examples
A line through two points
The graph of a linear function passes through and .
a) Find the gradient.
b) Find the formula for .
c) Find the point where the line cuts the -axis.
Solution
a) .
b) Use , that is, . Check with the other point: .
c) Solve , which gives . The intercept is .
Evaluating and reading a piecewise function
Let
a) Calculate , and .
b) Find the domain of .
c) Find the range of .
d) Solve .
Solution
a) is in the first piece: . is in the second: . is in the third: .
b) The pieces cover from to with no gaps: domain .
c) The first piece gives values from (included, at ) up to (not reached, at ). The second gives only the value . The third falls from (not reached) down to (at , included). Putting everything together, the range is .
d) Solve on each piece:
- first piece: , which lies in , so it is valid;
- second piece: is impossible;
- third piece: , which lies in , so it is valid.
The solutions are and .
Mobile data tariff
A mobile operator charges the tariff , in euros, according to the gigabytes consumed in a month:
a) Calculate , and .
b) Find the range of .
c) A customer paid euros this month. How many gigabytes did they use?
d) Find the values of for which the bill is at its maximum possible value.
Solution
a) (first piece), (second piece) and (third piece).
b) On the second piece the charge rises from (not reached, at ) up to (at , included). The first and third pieces give the values and . There are no jumps: at the second piece gives , the same as the first, and at it gives , the same as the third. The range is .
c) , so the value lies in the second piece: gigabytes.
d) The maximum bill is . It is obtained at (second piece) and throughout the third piece (): , that is, .
In the exam: when a piecewise function comes from a context, check the value at each join point (here and ) and say whether there is a jump or not. When finding the range, look at the value of each piece and put them together, without forgetting the constant pieces.
Common mistakes
Summary
- The graph of is the set of points ; a curve is the graph of a function if it passes the vertical line test.
- Linear function : gradient , y-intercept .
- A piecewise function uses the formula of the piece in which falls; the point is filled if the endpoint is included and hollow if not.
- From a graph you can read the domain, range, intercepts with the axes, maximum and minimum.
- At a join point, check whether the two pieces match (no jump) or not.
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp