2.14 Odd and even functions; inverse with domain restriction

2.14 Odd and even functions; inverse with domain restriction

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Even: f(−x)=f(x)f(-x)=f(x), symmetric in the yy-axis. Odd: f(−x)=−f(x)f(-x)=-f(x), symmetric about the origin.
  • odd ×\times even = odd; odd ×\times odd = even; sin⁡\sin and tan⁡\tan are odd, cos⁡\cos is even.
  • Only one-to-one functions have inverses; restrict the domain at a turning point.
  • Domain of f−1f^{-1} is the range of ff; choose the sign of any square root using the restricted domain.
  • Self-inverse: f(f(x))=xf(f(x))=x, and the graph is symmetric in y=xy=x.

Even and odd

A function is even if f(−x)=f(x)f(-x)=f(x) and odd if f(−x)=−f(x)f(-x)=-f(x), for every xx in a domain symmetric about 0.

Even functions include x2x^2, x4+1x^4+1, ∣x∣|x| and cos⁡x\cos x; the graph is a mirror image in the yy-axis. Odd functions include xx, x3−4xx^3-4x, 1x\frac1x, sin⁡x\sin x and tan⁡x\tan x; the graph has rotational symmetry of order 2 about the origin. Most functions are neither, such as x2+xx^2+x.

To test, substitute −x-x and compare with f(x)f(x) and −f(x)-f(x). If an odd function is defined at 0, then f(0)=0f(0)=0.

−2−1.5−1−0.50.511.52−6−4−2246xy(−2, 0)(2, 0)(−√2, −4)(√2, −4)y = x⁴ − 4x²
Even: y=x4−4x2y=x^4-4x^2 is a mirror image in the yy-axis.
−2.5−2−1.5−1−0.50.511.522.5−6−4−2246xy(−2, 0)(0, 0)(2, 0)(−1.15, 3.08)(1.15, −3.08)y = x³ − 4x
Odd: y=x3−4xy=x^3-4x looks the same after a half-turn about the origin.

Worked example

Is f(x)=x3−4xf(x)=x^3-4x odd, even or neither?

Is g(x)=x2+xg(x)=x^2+x odd, even or neither?

Combining parity

Parity combines like signs: odd times odd is even, and odd times even is odd.

Think of odd and even like signs in multiplication. Periodic functions can be odd or even too: sin⁡\sin and tan⁡\tan are odd, cos⁡\cos is even, and sin⁡2x\sin2x and cos⁡3x\cos3x keep the parity of the original.

So k(x)=sin⁡2x+xcos⁡xk(x)=\sin2x+x\cos x is odd. If q(x)=f(x)+bx2+cx+dq(x)=f(x)+bx^2+cx+d with ff odd, then qq is odd only when the even parts vanish: b=0b=0 and d=0d=0.

−6−4−2246−6−4−2246xyx sin x (even)x cos x (odd)
x sin x is even (mirror in the y-axis); x cos x is odd (symmetric about the origin).

Result

odd × odd:
even
even × even:
even
odd × even:
odd
odd + odd:
odd
even + even:
even
odd + even:
usually neither

Example

odd × odd:
xsin⁡xx\sin x
even × even:
x2cos⁡xx^2\cos x
odd × even:
xcos⁡xx\cos x
odd + odd:
x+sin⁡xx+\sin x
even + even:
x2+cos⁡xx^2+\cos x
odd + even:
x+x2x+x^2

Is x2sin⁡xx^2\sin x odd, even or neither?

One-to-one and inverses

A function has an inverse only if it is one-to-one; the inverse swaps domain and range.

A function is one-to-one if each output comes from exactly one input; algebraically, f(a)=f(b)f(a)=f(b) forces a=ba=b. A turning point inside the domain makes it many-to-one, so no inverse.

The domain of f−1f^{-1} is the range of ff, and its graph is the reflection of y=f(x)y=f(x) in y=xy=x. Always state the domain of f−1f^{-1}; it is not automatically R\mathbb R.

−3−2−112345−3−2−112345xy(0, 1)(1, 0)y = eˣy = ln xy = x
exe^x and ln⁡x\ln x reflect in y=xy=x (dashed).
  1. 1

    Write y=f(x)y=f(x)

    Replace f(x)f(x) with yy

  2. 2

    Make xx the subject

    Rearrange; or swap first, then rearrange

  3. 3

    Name it f−1(x)f^{-1}(x)

    State its domain, the range of ff

Finding an inverse

Find f−1(x)f^{-1}(x) for f(x)=3x−2f(x)=3x-2.

Restricting the domain

Restrict a many-to-one function to where it is one-to-one, cutting at the turning point.

For a quadratic, complete the square and cut at the vertex. The largest domain of the form x≥kx\ge k that gives an inverse starts at the turning point.

For h(t)=20−(t−3)2h(t)=20-(t-3)^2, t≥3t\ge3: rearranging gives t=3±20−xt=3\pm\sqrt{20-x}; since t≥3t\ge3 choose the positive root. An inverse gives one output, so never leave ±\pm in the final answer.

−22468−15−10−55101520xyt = 3(3, 20)(7.47, 0)h = 20 − (t − 3)²
h(t)=20−(t−3)2h(t)=20-(t-3)^2 turns at t=3t=3. Restricting to t≥3t\ge3 makes it one-to-one.

Worked example

h(t)=20−(t−3)2h(t)=20-(t-3)^2 for t≥3t\ge3 models a stone's height while above ground. Find h−1h^{-1}.

f(x)=x2−4x+7f(x)=x^2-4x+7 for x≥kx\ge k. What is the smallest kk that gives an inverse?

Self-inverse functions

A self-inverse function satisfies f−1(x)=f(x)f^{-1}(x)=f(x), so f(f(x))=xf(f(x))=x and its graph is symmetric in y=xy=x.

Examples: f(x)=1xf(x)=\frac1x, f(x)=a−xf(x)=a-x, and any f(x)=ax+bcx−af(x)=\frac{ax+b}{cx-a} with c≠0c\ne0 and a2+bc≠0a^2+bc\ne0.

To find when px+72x+q\frac{px+7}{2x+q} is self-inverse, find its inverse 7−qx2x−p\frac{7-qx}{2x-p} and compare: you need q=−pq=-p. The function 3x+5x−3\frac{3x+5}{x-3} has asymptotes x=3x=3 and y=3y=3, which are reflections of each other in y=xy=x.

−4−2246810−5510xyx = 3y = 3(−5/3, 0)(0, −5/3)y = (3x + 5)/(x − 3)y = x
g(x)=3x+5x−3g(x)=\frac{3x+5}{x-3} is symmetric in y=xy=x (dashed), so g−1=gg^{-1}=g.

Worked example

Show that g(x)=3x+5x−3g(x)=\dfrac{3x+5}{x-3} is self-inverse.

Which function is self-inverse?

Try an exam question

Show that the function g(x)=3x+5x−3g(x)=\dfrac{3x+5}{x-3}, x≠3x\ne3, is self-inverse.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the functions ff, gg and hh are even?

1 mark, marked against the mark scheme

Revision notes