This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.14 · HL only
Odd and even functions, inverse functions with restricted domains, and self-inverse functions
What does the symmetry of a graph say about its formula, how do you make a function reversible when it is not, and when is a function its own inverse?
What you will learn
HL Know the tests for odd and even functions and the symmetry each gives the graph
HL Know which trigonometric functions are odd and which are even
HL Understand why a domain must sometimes be restricted before an inverse exists, and how it fixes the inverse
HL Understand that a self-inverse function satisfies f(f(x)) = x and has a graph symmetric in y = x
You must be able to
HL Show that a function is odd or even, or give a counterexample to show it is neither
HL Find the largest domain on which a function has an inverse, justifying the choice
HL Find an inverse function with its domain and range
HL Show that a function is self-inverse by working out f(f(x))
HL Sketch a function and its inverse on the same axes, with intercepts and asymptotes swapped
HL Find an unknown constant given that a function is odd, even or self-inverse
In the exam. Paper 1 (17 of the 22 past questions on it) and sometimes Paper 2 (the other 5), in short parts of about 2 or 3 marks. "Show that" is the commonest command; "find", "state" and "sketch" (alone, or as "find, hence or otherwise, sketch") come next. Parity is also used quietly in calculus (5.x) and trigonometry (3.x).
1Even and odd: the definitions and the picture
Even: f(−x)=f(x) for every x in the domain. Odd: f(−x)=−f(x) for every x in the domain.
Both statements are about every x, so the domain must be symmetric about 0: whenever x belongs to it, −x must too.
Example: x, with domain x≥0, is neither, because −x is not available.
The pictures
From 2.11, y=f(−x) is y=f(x) reflected in the y-axis. When the two coincide, f(−x)=f(x): an even function is symmetric in the y-axis.
A half turn about the origin sends (x,y) to (−x,−y). That is a reflection in the y-axis then one in the x-axis. It turns y=f(x) into y=−f(−x).
When that coincides with the original, f(−x)=−f(x): an odd function has half-turn (order 2 rotational) symmetry about the origin.
Figure 1 shows one of each.
Figure 1 · An even function and an odd function
In Figure 1(a), y=x4−5x2+4 is −2.19 at both x=1.5 and x=−1.5.
In Figure 1(b), y=x3−4x is −3 at x=1 and +3 at x=−1.
Why the words "even" and "odd"
The power xn is even when n is even, because (−x)4=x4. It is odd when n is odd, because (−x)3=−x3.
A polynomial with only even powers (a constant counts, being x0) is therefore even. One with only odd powers is odd.
Example: x4−5x2+4 is even and x3−4x is odd. x3+x2 mixes the two and is neither.
Three facts worth keeping.
An odd function defined at 0 passes through the origin, since f(0)=−f(0) forces f(0)=0.
The only function that is both even and odd is f(x)=0.
Beyond the 2.14 guide, but useful in calculus (5.x): the derivative of a differentiable even function is odd. The derivative of an odd one is even.
2Using the symmetry without a formula
If f is even and (a,b) is on the graph, so is (−a,b).
If f is odd and (a,b) is on the graph, so is (−a,−b).
Worked example 1 · from points (Paper 1). The function f is even and g is odd. The graph of f passes through (2,5) and (−3,−1); that of g through (1,4) and (−3,2).
(a) Write down two more points on y=f(x). The mirror in the y-axis keeps heights and flips the x-coordinate: (−2,5) and (3,−1).
(b) Write down two more points on y=g(x). The half turn flips both coordinates: (−1,−4) and (3,−2).
3Testing a function with algebra
The method never changes. Replace every x by a bracket (−x) and simplify. Then compare with f(x) and with −f(x).
Worked example 2 · four functions (Paper 1).
(a) f(x)=x4sinx. f(−x)=(−x)4sin(−x)=x4(−sinx)=−f(x), using sin(−θ)=−sinθ. Odd.
(b) g(x)=2x+12x−1. Clear the negative power:
g(−x)=2−x+12−x−1=2x(2−x+1)2x(2−x−1)=1+2x1−2x=−g(x)multiply top and bottom by 2x, which is not zero
Odd.
(c) h(x)=x2+3x. h(−x)=x2−3x, which equals neither h(x) nor −h(x). For "neither", one counterexample with numbers is a proof: h(1)=4 and h(−1)=−2, and −2 is neither 4 nor −4. Neither.
(d) k(x)=x29−x2, for −3≤x≤3. The domain is symmetric. k(−x)=(−x)29−(−x)2=x29−x2=k(x). Even.
A "show that" needs the written algebra: f(−x) expanded, simplified, then compared. A calculator graph suggests the answer but proves nothing. A sketch of the symmetry can answer "describe the symmetry", not "show that".
Finding an unknown constant
When the parity is given and a constant is missing, set f(−x)=f(x) (or =−f(x)) and compare terms.
For a polynomial, even means every odd-power coefficient is zero. Odd means every even-power coefficient is zero, the constant term included.
Examples:
f(x)=(3x−4)(x+a)=3x2+(3a−4)x−4a is even, so the x coefficient vanishes: 3a−4=0, so a=34.
g(x)=x3+(a2−9)x2−7x is odd, so a2−9=0 and a=±3. Both signs count.
4Periodic functions
On the unit circle (3.x), the point at angle −θ is the reflection of the point at angle θ in the horizontal axis. Same horizontal position, opposite height. So
and the reciprocals follow: secx is even, and cosecx and cotx are odd.
Figure 2 shows the three graphs. Cosine mirrors in the y-axis. Sine and tangent return to themselves after a half turn.
Figure 2 · Cosine is even; sine and tangent are odd
Shifted versions. Sliding a graph sideways usually destroys its symmetry. Not always. For sin(x+c):
Odd when c is a multiple of π, since the curve becomes ±sinx again.
Even when c is an odd multiple of 2π, since the curve becomes ±cosx. For example sin(x+23π)=−cosx.
Neither for any other c.
A sum of a sine and a cosine is neither. For example, sin2x+cosx equals 3 at x=6π and 0 at x=−6π.
5Sums, products and composites
These rules come straight from the definitions and are often asked as proofs in their own right.
Combination
Result
Why
even + even
even
f(−x)+g(−x)=f(x)+g(x)
odd + odd
odd
−f(x)−g(x)=−(f(x)+g(x))
even × even
even
product unchanged
odd × odd
even
(−f(x))(−g(x))=f(x)g(x)
odd × even
odd
(−f(x))g(x)=−f(x)g(x)
f∘g, g even
even
f(g(−x))=f(g(x))
f∘g, f even, g odd
even
f(g(−x))=f(−g(x))=f(g(x))
f∘g, both odd
odd
f(g(−x))=f(−g(x))=−f(g(x))
Products behave like signs, (−)×(−)=(+).
xsinx is even.
x2sinx is odd.
tanxcosx is odd, since it is sinx.
cos(x3) is even.
Even plus odd is usually neither: x2+x.
Inverses and parity
If an odd function is one-to-one, its inverse is also odd. Indeed f(a)=b gives f(−a)=−b, so f−1(−b)=−a=−f−1(b).
An even function has no inverse on a domain symmetric about 0, since f(−x)=f(x) puts two inputs on one output. Restrict it first.
An integral consequence
Beyond the 2.14 guide; you meet it in 5.x.
For an odd function continuous on −a≤x≤a, the areas either side of the origin cancel, so ∫−aaf(x)dx=0.
6When there is no inverse yet: restricting the domain
From 2.5, a function has an inverse only if it is one-to-one: each output comes from exactly one input. So no horizontal line crosses the graph twice.
The cure is to restrict the domain to a one-to-one piece, usually by cutting at a turning point.
Locate it by completing the square for a quadratic, or by solving f′(x)=0 for anything else (5.x).
When asked to justify, say that f is monotonic (always increasing or always decreasing) on your piece. Or say that the horizontal line test fails once you pass the turning point.
Worked example 3 · a quadratic, cut on the left (Paper 1). Let f(x)=x2−6x+5, x≤k. Find the largest value of k for which f−1 exists.
Complete the square: f(x)=(x−3)2−4, vertex at x=3. Left of the vertex f is decreasing, so it is one-to-one on x≤3.
Any larger k lets in points from both sides with equal outputs, such as f(2)=f(4)=−3. So k=3 (Figure 3, in the next section).
Worked example 4 · a cubic, with calculus (Paper 1). Let f(x)=x3−3x2−9x, x≤k. Find the largest k for which f−1 exists.
f′(x)=3x2−6x−9=3(x−3)(x+1). So f′>0 for x<−1, f′<0 for −1<x<3 and f′>0 for x>3.
From the far left, f rises to a maximum at x=−1 and then turns. So f is increasing, hence one-to-one, on x≤−1: k=−1.
Worked example 5 · an interval that does not start at a turning point. Find the largest a for which f(x)=2cos(2x+6π), 0≤x≤a, has an inverse.
The start is fixed at 0, so look forward. f′(x)=−4sin(2x+6π) is negative at x=0 (the value is −2).
It first reaches zero when 2x+6π=π, that is x=125π. Up to there f decreases, so a=125π.
The famous cases.
sinx is not one-to-one on R but is on −2π≤x≤2π. That defines arcsin.
cosx is restricted to 0≤x≤π for arccos.
tanx is restricted to −2π<x<2π for arctan (AHL 3.9).
7Finding the inverse, with its domain and range
The steps are the same every time. Students skip the last two.
Find the range of f on its (possibly restricted) domain. It is the domain of f−1.
Write y=f(x), swap x and y, and make y the subject.
If a square root appears, let the domain of f choose the sign: that domain is the range of f−1.
State f−1(x) with its domain, and its range if asked.
Worked example 3 continued · the inverse (Paper 1). For f(x)=x2−6x+5, x≤3, find f−1(x) and state its domain.
x=(y−3)2−4(y−3)2=x+4y−3=−x+4y is the old x, and the old x was ≤3, so y−3≤0: take the negative rootf−1(x)=3−x+4
The vertex is the lowest point, so the range of f is f(x)≥−4. The domain of f−1 is x≥−4, and its range is f−1(x)≤3.
Figure 3 shows the kept half, the dashed discarded half, and the inverse as the reflection of the kept half in y=x. The vertex (3,−4) reflects to the end point (−4,3).
Had the right half been kept, the inverse would be 3+x+4: the domain decides the sign.
Figure 3 · Restricting y = x² − 6x + 5 to x ≤ 3, and its inverse
Worked example 6 · an exponential (Paper 1).f(x)=e2x−3, x∈R. It is increasing, so no restriction is needed. The range matters.
x=e2y−3e2y=x+32y=ln(x+3)f−1(x)=21ln(x+3),x>−3
Since e2x>0, the range of f is f(x)>−3. That is the domain of f−1, and it keeps the logarithm defined.
In Figure 4 the horizontal asymptote y=−3 of f reflects into the vertical asymptote x=−3 of f−1. The intercept (0,−2) reflects into (−2,0).
Figure 4 · y = e²ˣ − 3 and its inverse y = ½ ln(x + 3)
Sketching f and f−1 on one set of axes. Draw y=x first. Then reflect each labelled feature of f:
an end point (a,b) becomes (b,a)
an x-intercept becomes a y-intercept
a horizontal asymptote y=c becomes the vertical asymptote x=c
If f is increasing, the two graphs can meet only on y=x. So the equation f(x)=x tells you whether they cross at all.
Worked example 7 · an exponential quadratic (Paper 1). Let f(x)=e2x−6ex+5, x≥k.
(a) Find the least value of k for which f−1 exists, justifying your answer.
(b) For this k, find f−1(x), stating its domain.
(a) f′(x)=2e2x−6ex=2ex(ex−3), zero at x=ln3. For x>ln3, ex>3 so f′(x)>0: f is increasing, hence one-to-one.
Left of ln3 it decreases, so outputs repeat. k=ln3.
(b) Complete the square in ex: f(x)=(ex−3)2−4. The lowest value is f(ln3)=−4 and f grows without bound. So the range is f(x)≥−4.
x=(ey−3)2−4ey−3=+x+4y≥ln3, so ey≥3 and ey−3≥0: the positive rootf−1(x)=ln(3+x+4),x≥−4
Worked example 8 · a rational function (Paper 1). Find the inverse of f(x)=x−23x+1, x=2, and state its domain.
x=y−23y+1xy−2x=3y+1y(x−3)=2x+1collect the terms in y on one side, then factorisef−1(x)=x−32x+1,x=3
The horizontal asymptote y=3 of f means 3 is never an output. So the domain of f−1 excludes it.
Since f−1=f, this f is not self-inverse (section 8).
Worked example 9 · a harder inverse and an odd function (Paper 1). Let f(x)=ex+e−xex−e−x, x∈R. Show that f is odd, and find f−1(x) with its domain.
f(−x)=e−x+exe−x−ex=−f(x), so f is odd.
Multiplying top and bottom by ex gives f(x)=1−e2x+12, which increases from −1 towards 1. So f is one-to-one with range −1<f(x)<1.
For the inverse, clear the fractions and isolate e2y:
x=ey+e−yey−e−yx(ey+e−y)=ey−e−yxe2y+x=e2y−1multiply by eye2y(1−x)=1+xy=21ln1−x1+x,−1<x<1
The result is itself odd, as section 5 predicts. Its domain −1<x<1 is the range of f.
When ey and e−y do not combine so neatly, multiply through by ey and solve a quadratic in ey.
Example: g(x)=ex−3e−x (increasing, range R):
x=ey−3e−y(ey)2−xey−3=0multiply by ey: a quadratic in eyey=2x+x2+12the other root, 2x−x2+12, is negative and ey>0: reject itg−1(x)=ln2x+x2+12,x∈R
8Self-inverse functions
A function is self-inverse if f−1=f. Applying it twice returns you to where you began.
f is self-inverse if and only if (f∘f)(x)=x for every x in its domain.
On the graph, f−1 is the reflection of f in y=x. So a self-inverse graph is symmetric in the line y=x.
Its domain and range are the same set. If (a,b) is on the graph, so is (b,a).
Figure 5(b) shows simple ones:
y=5−x (any line of gradient −1)
y=x4 (any xk, including the reciprocal of 2.8)
the quarter circle y=4−x2, 0≤x≤2
Trivially, f(x)=x too.
Figure 5 · Self-inverse: the graph is its own mirror image in y = x
Worked example 10 · proving it (Paper 1). Show that f(x)=x−22x+3, x=2, is self-inverse.
In Figure 5(a), the vertical asymptote x=2 and the horizontal asymptote y=2 are mirror images in y=x. So are the two marked intercepts, (−1.5,0) and (0,−1.5).
The rule for cx+dax+b, c=0
Its asymptotes are x=−cd and y=ca. For the graph to be symmetric in y=x these must swap, so −cd=ca, that is d=−a.
Every cx−aax+b that is not constant is self-inverse.
Worked example 11 · finding the parameter (Paper 1). The function f(x)=2x+k7x−1 is self-inverse. Find k, and state the domain of f.
Here a=7 and d=k, so k=−7. The asymptotes x=−2k and y=27 then swap.
The domain is x=27, where 2x−7=0.
Watch the domain. For f(x)=4−x2 on 0≤x≤2, f(f(x))=x2=∣x∣. That equals x only because x≥0.
On −2≤x≤2 the same formula is not even one-to-one.
Practice questions
6 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 2.14 Odd and even functions, inverse functions with restricted domains, and self-inverse functions