James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 2: Functions › Odd & even functions

Odd & even functions

Functions with symmetry: even functions (symmetric in the y-axis), odd functions (rotational symmetry about the origin) and self-inverse functions (symmetric in y=x). How to prove each one algebraically and how to use symmetry to save work.

AHL 2.14HL onlyPaper 1Paper 2≈ 60 min to work through
Before you start: function notation, inverse functions and transformations. See Functions: composite and inverse.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • State the algebraic and graphical definitions of odd and even functionsAHL 2.14
  • Prove that a function is odd, even, or neitherAHL 2.14
  • Predict the parity of sums, products and compositionsAHL 2.14
  • Use symmetry to simplify definite integralsAHL 2.14, 5.5
  • Recognise and prove that a function is self-inverseAHL 2.14

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Some graphs look the same after a reflection or a rotation. If the graph of f is unchanged by reflection in the y-axis, then f(−x)=f(x): the function is even. If it is unchanged by a half-turn about the origin, then f(−x)=−f(x): the function is odd. Writing the symmetry as an equation turns "it looks symmetric" into something you can prove.

2.1 Definitions

Odd and even functions Not in booklet: learn it

Even: f(−x)=f(x) for all x in the domain. The graph is symmetric in the y-axis.
Odd: f(−x)=−f(x) for all x in the domain. The graph has rotational symmetry of order 2 about the origin.

Even examples: x2, x4, cosx, |x|, any constant. Odd examples: x, x3, sinx, tanx, 1x. The names come from powers of x: a polynomial with only even powers is even, and one with only odd powers is odd. Most functions, such as x2+x or ex, are neither.

Two consequences of the definitions: the domain of an odd or even function must be symmetric about 0, and if an odd function is defined at x=0 then f(0)=−f(0), so f(0)=0: its graph passes through the origin.

2.2 Proving parity

To prove a function is odd or even, work out f(−x) in general and simplify. To prove it is neither, one counterexample is enough: a single value of x where both conditions fail.

Worked example 1Paper 1
Determine whether each function is odd, even or neither: (a) f(x)=xx2+1 (b) g(x)=xsinx (c) h(x)=x2+x.
(a) f(−x)=−x(−x)2+1=−xx2+1=−f(x). Odd.
(−x)2=x2: even powers lose the minus sign.
(b) g(−x)=(−x)sin(−x)=(−x)(−sinx)=xsinx=g(x). Even.
Use sin(−x)=−sinx and cos(−x)=cosx.
(c) h(1)=2, h(−1)=0. Since h(−1)≠h(1) and h(−1)≠−h(1), h is neither.
A specific counterexample proves "neither". "It looks like neither" does not.
Worked example 2Paper 1
Show that f(x)=ex+e−x is even and g(x)=ex−e−x is odd.
f(−x)=e−x+ex=f(x)
g(−x)=e−x−ex=−(ex−e−x)=−g(x)

2.3 Combining functions

Parity behaves like signs: think of even as + and odd as − when multiplying.

OperationResult
even × even, odd × oddeven
odd × evenodd
even + eveneven
odd + oddodd
odd + even (both non-zero)neither
f∘g with g eveneven
f∘g with both oddodd
derivative of an even functionodd (and vice versa)
Worked example 3Paper 1
f and g are both odd. Prove that h(x)=f(x)g(x) is even.
h(−x)=f(−x)g(−x)
=(−f(x))(−g(x))=f(x)g(x)=h(x)
So h is even.

Every function with a symmetric domain can be split into an even part and an odd part: f(x)=12(f(x)+f(−x))⏟even+12(f(x)−f(−x))⏟odd. For example, ex=12(ex+e−x)+12(ex−e−x), the two functions of WE2 halved.

2.4 Symmetry and integrals

Integrals over symmetric intervals Not in booklet: learn it
f odd: ∫−aaf(x)dx=0f even: ∫−aaf(x)dx=2∫0af(x)dx

For an odd function, the area above the axis on one side exactly cancels the area below on the other. This can turn an impossible-looking integral into a one-line answer.

Worked example 4Paper 1
Find ∫−22(x3cosx+x2)dx.
x3cosx is odd × even = odd, so ∫−22x3cosxdx=0.
No integration by parts needed.
x2 is even: ∫−22x2dx=2∫02x2dx=2·83=163
Total: 163

2.5 Self-inverse functions

A third kind of symmetry: a function is self-inverse if f−1=f, that is, f(f(x))=x for all x in the domain. Since the graph of f−1 is the reflection of f in y=x, a self-inverse function has a graph symmetric in the line y=x.

Examples: f(x)=1x, f(x)=c−x, and every function of the form f(x)=ax+bcx−a.

Worked example 5Paper 1
Show that f(x)=2x+1x−2, x≠2, is self-inverse.
f(f(x))=2·2x+1x−2+12x+1x−2−2
Substitute the whole of f(x) for x.
Multiply top and bottom by x−2: 2(2x+1)+(x−2)(2x+1)−2(x−2)=5x5=x
So f(f(x))=x and f is self-inverse.
You could also find f−1 by swapping x and y and show it equals f.
Worked example 6 (faded)Paper 1
Find k such that f(x)=3x+5x+k is self-inverse.
Using the form ax+bcx−a with a=3: the denominator must be x−3, so k= −3  ← you work this out
Three symmetries at a glance
ConditionGraph symmetry
Evenf(−x)=f(x)reflection in the y-axis
Oddf(−x)=−f(x)half-turn about the origin
Self-inversef(f(x))=xreflection in y=x
On your TI-Nspire Calculator tricks →

Paper 2: graph f1(x) and f2(x)=f1(−x). If the graphs coincide, f is even; if f2(x)=−f1(x) coincides with f1, it is odd. A GDC check is not a proof: you still need the algebra.

3Explore it

Choose a function. The dashed green curve is f(−x) (reflection in the y-axis) and the dotted red curve is −f(−x) (a half-turn about the origin). If one of them lands exactly on f, the function is even or odd.

4Common mistakes & exam tips

Common mistakes

  • Checking only one value of x and concluding a function is odd or even. A proof needs general x.
  • Assuming a function must be either odd or even. Most are neither.
  • Writing f(−x)=−x2 for f(x)=x2. Brackets: f(−x)=(−x)2=x2.
  • Using ∫−aaf=0 for a function that is not odd, e.g. x3+1.
  • Thinking an odd function must pass through the origin even when 0 is not in its domain, e.g. 1x.

Exam tips

  • Write the conclusion in words: "f(−x)=−f(x), so f is odd."
  • For "neither", give one specific x and both comparisons.
  • In integration questions, look for odd parts first: the limits −a and a are the clue.
  • "Show that f is self-inverse" is usually quickest via f(f(x))=x.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Is f(x)=x4−3x2+1 odd, even or neither?
Even: only even powers.
FluencyP2
Is f(x)=sinxx, x≠0, odd, even or neither?
sin(−x)−x=−sinx−x=f(x). Even.
FluencyP3
Is f(x)=x3+2 odd, even or neither?
f(1)=3, f(−1)=1: neither.
FluencyP4
Find ∫−ππx5cosxdx.
Odd × even = odd: 0.
Problem solvingP5
f is even and g is odd. Prove that f∘g is even.
f(g(−x))=f(−g(x))=f(g(x)), since f is even.
Problem solvingP6
Show that f(x)=4x−12x−4, x≠2, is self-inverse.
f(f(x))=4(4x−1)−(2x−4)2(4x−1)−4(2x−4)=14x14=x.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

Let f(x)=x3x2+4, x∈ℝ.

  • (a)Show that f is an odd function.[2]
  • (b)Hence write down the value of ∫−11f(x)dx.[1]
  • (c)Hence find ∫−11(f(x)+3)dx.[3]
(a)
f(−x)=(−x)3(−x)2+4M1
=−x3x2+4=−f(x)A1AG
(b)
0A1
(c)
∫−11f(x)dx+∫−113dxM1
0+3×2A1
6A1
Question 2Paper 1[5 marks]

Let f(x)=3x+2x−3, x≠3.

  • (a)Find (f∘f)(x), simplifying your answer.[3]
  • (b)Hence write down f−1(x).[1]
  • (c)State the line in which the graph of y=f(x) is symmetric.[1]
(a)
3·3x+2x−3+23x+2x−3−3M1
=11x11A1
=xA1
(b)
f−1(x)=3x+2x−3A1
(c)
y=xA1
Question 3Paper 1[5 marks]

The functions f and g are defined for x∈ℝ. f is even and g is odd.

  • (a)Prove that h(x)=f(x)g(x) is odd.[2]
  • (b)Given that ∫03f(x)dx=5, find ∫−33(f(x)+g(x))dx.[3]
(a)
h(−x)=f(−x)g(−x)=f(x)(−g(x))M1
=−h(x)A1AG
(b)
∫−33f=10A1
∫−33g=0A1
10A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2022 · TZ1 · Paper 2Q6Showing a function is odd, then an inequality★★
May 2022 · TZ2 · Paper 1Q6Showing a function is odd★★
Nov 2023 · TZ1 · Paper 1Q9Showing a function is even within a longer question★★
May 2024 · TZ1 · Paper 1Q9Using the fact that a function is odd to complete a graph★★★
May 2025 · TZ1 · Paper 2Q12Proving a family of functions is even★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake