Int 3 for Programmers

Functions, transformations, composition and inverses

5 / 396
Contents

Contents

Int 3 for Programmers

0 of 396 complete

10 min read

High points, low points and the far ends

Relative and absolute extrema, end behaviour, and one graph described feature by feature.

A walk that goes uphill and then downhill has a highest point at the moment it turns. A walk that goes downhill and then uphill has a lowest one. Those turns, and what the ground does far off in each direction, are the last two items on the examiner's list.

This lesson takes them one at a time and then puts the whole list together on a single function.

High points and low points

In the previous lesson the increasing and decreasing report for f(x)=x2−x−6f(x) = x^2 - x - 6 turned around exactly once. The place where it turned is a low point. Run this and pick the smallest output out of the sweep.

Try CodePython

Change the step from 0.1 to 0.01 and run it again. The reported input creeps closer to the exact answer, which is 0.5.

A point that is lower than everything immediately around it is a relative minimum, sometimes called a local minimum. A point higher than everything around it is a relative maximum. If a point is the lowest or highest on the whole graph, not merely in its neighbourhood, it is an absolute minimum or absolute maximum.

The parabola above has an absolute minimum, because nothing anywhere is lower. A cubic like x3−3xx^3 - 3x has a relative maximum and a relative minimum but no absolute ones, since it runs off to −∞-\infty on the left and +∞+\infty on the right.

That cubic is worth looking at rather than imagining. Slide the marker along it.

Two turning points on a cubic
f(x)=x3−3xf(x) = x^3 - 3x
-6-3036-2.5-1.2501.252.5
Height f(t)f(t)
2

Slide the marker to x=−1x = -1: the height reads 2. Move a little either side of it and the height drops below 2, so that point is a relative maximum. Now slide to x=1x = 1: the height reads -2, and moving either side of that raises it, so that point is a relative minimum.

End behaviour

The last feature is what happens far away from the origin. There is no way to see it on a small sketch, so ask for it directly.

Try CodePython

Put a minus sign in front of the rule, so it reads -(x * x * x - 3 * x), and run it again. Both ends swap over.

The outputs grow past a thousand, then past a million, then past a billion, and on the left they do the same downwards. End behaviour is the description of where the outputs head as the inputs run off to the far left and the far right, and it is written with arrows.

as x→∞,  f(x)→∞andas x→−∞,  f(x)→−∞\text{as } x \to \infty,\; f(x) \to \infty \qquad \text{and} \qquad \text{as } x \to -\infty,\; f(x) \to -\infty
The arrow is read as approaches. This is the end behaviour of the cubic above.
The leading coefficient decides both ends
y=1x3−3xy = 1x^3 - 3x
-20-1001020-3-1.501.53
Height at x=3x = 3
18
Height at x=−3x = -3
-18

Drag a from positive to negative. At a=0a = 0 the cubic term vanishes entirely and the shape collapses to a line.

One graph, every feature

An exam rarely asks for one feature. It shows a curve and asks for the lot, so here is the lot, worked out in full for f(x)=x3−3xf(x) = x^3 - 3x.

  1. y-intercept. Put x=0x = 0 into the rule: f(0)=03−3×0=0f(0) = 0^3 - 3 \times 0 = 0. The curve passes through (0,0)(0, 0).
  2. x-intercepts. Solve x3−3x=0x^3 - 3x = 0. Take the common factor out: x(x2−3)=0x(x^2 - 3) = 0, so either x=0x = 0 or x2=3x^2 = 3. That gives x=0x = 0, x=3≈1.73x = \sqrt{3} \approx 1.73 and x=−3≈−1.73x = -\sqrt{3} \approx -1.73.
  3. Turning points, the left one. The sweep put it at x=−1x = -1. Check: f(−1)=−1+3=2f(-1) = -1 + 3 = 2, while f(−0.9)=−0.729+2.7=1.971f(-0.9) = -0.729 + 2.7 = 1.971 and f(−1.1)=−1.331+3.3=1.969f(-1.1) = -1.331 + 3.3 = 1.969. Both neighbours are lower, so (−1,2)(-1, 2) is a relative maximum.
  4. Turning points, the right one. Check x=1x = 1: f(1)=1−3=−2f(1) = 1 - 3 = -2, while f(0.9)=0.729−2.7=−1.971f(0.9) = 0.729 - 2.7 = -1.971 and f(1.1)=1.331−3.3=−1.969f(1.1) = 1.331 - 3.3 = -1.969. Both neighbours are higher, so (1,−2)(1, -2) is a relative minimum.
  5. Increasing and decreasing. Left to right the curve climbs up to x=−1x = -1, falls from x=−1x = -1 to x=1x = 1, then climbs again. So it increases on (−∞,−1)(-\infty, -1) and on (1,∞)(1, \infty), and decreases on (−1,1)(-1, 1).
  6. Absolute extrema. There are none. The outputs run off to +∞+\infty on the right and to −∞-\infty on the left, so no output is the largest and none is the smallest.
  7. End behaviour. As x→∞x \to \infty, f(x)→∞f(x) \to \infty. As x→−∞x \to -\infty, f(x)→−∞f(x) \to -\infty.
  8. Domain and range. Every real number can go in, and every real number comes out somewhere, so both are (−∞,∞)(-\infty, \infty).

Notice the kind of object each answer is. Intercepts are numbers or points. Intervals of increase and decrease are intervals of inputs. Extrema are points, given as a pair. End behaviour is two arrow statements, one per end. Handing back the wrong kind of object is the commonest way to lose marks on a question you understood.

For f(x)=x3−3xf(x) = x^3 - 3x, is the point at x=−1x = -1 a relative maximum or an absolute maximum?

Relative only. Near x=−1x = -1 the output 2 is higher than its neighbours, so it is a relative maximum. It is not absolute, because further right the function climbs without limit: f(10)=1000−30=970f(10) = 1000 - 30 = 970 is far higher.

A curve rises from the far left up to (2,7)(2, 7), falls to (5,−1)(5, -1), and rises again for ever after. Name the two turning points and give the intervals of increase.

(2,7)(2, 7) is a relative maximum and (5,−1)(5, -1) is a relative minimum. It increases on (−∞,2)(-\infty, 2) and on (5,∞)(5, \infty), and decreases on (2,5)(2, 5). Neither turning point is absolute: the curve rises for ever on the right, so no output is the largest, and it comes from the far left below everything, so none is the smallest.

Check yourself

For f(x)=−x3+5xf(x) = -x^3 + 5x, what is the end behaviour?

All lessons in Int 3 for Programmers