← Back to course

Math — Mechina

Properties of functions

Summary

The placement test often asks "which statement is true" about a function: is it even, periodic, bounded, one-to-one or onto. Each property has a short check — and it pays to remember one counterexample for every false statement.

The terms

f:A→Bf:A\to B
A function from the set AA (domain) to the set BB (codomain)
f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2
One-to-one: no two xx with the same value
f(A)=Bf(A)=B
Onto: every element of BB is taken at least once
TT
Period: f(x+T)=f(x)f(x+T)=f(x) for every xx
f(−x)=±f(x),Tsin⁡kx=Tcos⁡kx=2π∣k∣,Ttan⁡kx=π∣k∣f(-x)=\pm f(x),\qquad T_{\sin kx}=T_{\cos kx}=\frac{2\pi}{|k|},\qquad T_{\tan kx}=\frac{\pi}{|k|}
  • Even — symmetric about the yy-axis (x2x^2, cos⁡x\cos x, ∣x∣|x|). Odd — symmetric about the origin (x3x^3, sin⁡x\sin x, tan⁡x\tan x, arctan⁡x\arctan x). Most functions are neither.
  • Period of a power: sin⁡2x=1−cos⁡2x2\sin^2x=\frac{1-\cos2x}2, so the period is π\pi (not 2π2\pi). ∣sin⁡x∣|\sin x| — also π\pi.
  • Bounded: ∣f(x)∣≤M|f(x)|\le M for every xx. sin⁡\sin, cos⁡\cos, arctan⁡\arctan (∣arctan⁡x∣<π2|\arctan x|<\frac\pi2), 11+x2\frac1{1+x^2} are bounded; x2x^2, ln⁡x\ln x, tan⁡x\tan x are not.
  • One-to-one: a strictly monotonic function is one-to-one. x2x^2 on R\mathbb R is not (f(1)=f(−1)f(1)=f(-1)).
  • Onto: check the range. ex:R→Re^x:\mathbb R\to\mathbb R is not onto (no negative values), but ex:R→(0,∞)e^x:\mathbb R\to(0,\infty) is.
  • On N\mathbb N: f(n)=2nf(n)=2n is one-to-one and not onto (no odd numbers); f(n)=⌈n2⌉f(n)=\lceil\frac n2\rceil is onto and not one-to-one.
-6-4-2246-1.5-1-0.50.511.5xysin²xsin x
sin⁡x\sin x is odd with period 2π2\pi; sin⁡2x\sin^2x is even with period π\pi.

Question types

1

Parity and periodicity

A trigonometric or composite function is given, and the question is about symmetry or the period.

Worked example

f(x)=6sin⁡2(πx3)−2f(x)=6\sin^2\left(\frac{\pi x}{3}\right)-2. Is ff even? What is its period?

Solution

IdeaPlug in −x-x for parity; for the period, remove the square with the double-angle identity.
  1. f(−x)=6(−sin⁡πx3)2−2=f(x)f(-x)=6\left(-\sin\frac{\pi x}3\right)^2-2=f(x) — even.

    Why: sin⁡\sin is odd, its square is even.

  2. sin⁡2u=1−cos⁡2u2\sin^2u=\frac{1-\cos2u}2, so f=1−3cos⁡2πx3f=1-3\cos\frac{2\pi x}3.

    Why: 6⋅1−cos⁡2πx32−26\cdot\frac{1-\cos\frac{2\pi x}3}2-2.

  3. Period: 2π2π/3=3\frac{2\pi}{2\pi/3}=3.
Checkf(0)=−2f(0)=-2, f(1.5)=4f(1.5)=4, f(3)=−2f(3)=-2 ✓.
Common mistakePeriod 66 — taking the period of sin⁡πx3\sin\frac{\pi x}3 and forgetting that squaring shortens it.

Variants of this type · 2

1.1A sum of two periodic functions

Worked example

What is the period of sin⁡2x+cos⁡3x\sin2x+\cos3x?

Solution

IdeaThe least common multiple of the periods.
  1. π\pi and 2π3\frac{2\pi}3.
  2. 2π2\pi: the least common multiple.
Check2π=2⋅π=3⋅2π32\pi=2\cdot\pi=3\cdot\frac{2\pi}3 ✓.
Common mistakeπ⋅2π3\pi\cdot\frac{2\pi}3 — multiplying the periods.
1.2Parity of a product

Worked example

ff is odd and gg is even. What are f⋅gf\cdot g and f∘gf\circ g?

Solution

IdeaPlug in −x-x.
  1. f(−x)g(−x)=−f(x)g(x)f(-x)g(-x)=-f(x)g(x) — odd.
  2. f(g(−x))=f(g(x))f(g(-x))=f(g(x)) — even.
Checkx3⋅x2=x5x^3\cdot x^2=x^5 is odd ✓.
Common mistake"Odd times even = even".
2

One-to-one and onto

You must decide whether a function is one-to-one / onto, or give an example with a given combination.

Worked example

Give an example of a function f:N→Nf:\mathbb N\to\mathbb N that is one-to-one but not onto.

Solution

IdeaA strictly increasing function that skips values.
  1. f(n)=n+1f(n)=n+1.

    Why: Strictly increasing ⇒\Rightarrow one-to-one.

  2. 11 is not taken: n+1=1⇒n=0∉Nn+1=1\Rightarrow n=0\notin\mathbb N.

    Why: The natural numbers start at 11.

  3. So ff is one-to-one and not onto.
Checkf(1)=2f(1)=2, f(2)=3f(2)=3, … — never 11 ✓.
Common mistakef(n)=n2f(n)=n^2 on R\mathbb R is not one-to-one there; on N\mathbb N it actually works.

Variants of this type · 2

2.1Onto and not one-to-one

Worked example

An example of f:N→Nf:\mathbb N\to\mathbb N onto but not one-to-one.

Solution

IdeaEvery value twice.
  1. f(n)=⌈n2⌉f(n)=\left\lceil\frac n2\right\rceil: 1,1,2,2,3,3,…1,1,2,2,3,3,\ldots
CheckEvery natural number is taken, f(1)=f(2)f(1)=f(2) ✓.
Common mistakef(n)=n−1f(n)=n-1 — gives 00, which is not a natural number.
2.2Onto by the range

Worked example

Is f(x)=x2+2xf(x)=x^2+2x onto R\mathbb R?

Solution

IdeaThe minimum of the parabola.
  1. f=(x+1)2−1≥−1f=(x+1)^2-1\ge-1.
  2. −2-2 is not taken — not onto.
Check✓.
Common mistake"A polynomial is always onto".
3

Bounds and limits of a function

"Which statement is true" about arctan⁡\arctan, e−xe^{-x}, a fraction, etc. — bounded, monotonic, limit at infinity.

Worked example

f(x)=3arctan⁡xf(x)=3\arctan x. Which is true: (a) bounded by 33, (b) decreasing, (c) lim⁡x→∞f=3\lim_{x\to\infty}f=3, (d) bounded by 55?

Solution

Ideaarctan⁡\arctan is increasing, with range (−π2,π2)(-\frac\pi2,\frac\pi2).
  1. ∣f∣<3π2≈4.71|f|<\frac{3\pi}2\approx4.71.

    Why: 3⋅π23\cdot\frac\pi2.

  2. (a) no: ff reaches 44. (b) no: increasing. (c) no: the limit is 3π2\frac{3\pi}2.

    Why: Check each statement.

  3. (d) is true: 4.71<54.71<5.
Checkf(100)≈4.68<5f(100)\approx4.68<5 ✓.
Common mistakeThinking that arctan⁡x→1\arctan x\to1 (confusing it with x∣x∣\frac x{|x|}).
4

A domain to order

You are asked for a function with a given domain, or the domain of an expression with a root/log.

Worked example

Give an example of a function whose domain is [−2,1]∪[3,6][-2,1]\cup[3,6].

Solution

IdeaThe root of an expression that is non-negative exactly on the set. A product of two "upside-down parabolas".
  1. (x+2)(1−x)≥0  ⟺  x∈[−2,1](x+2)(1-x)\ge0\iff x\in[-2,1].

    Why: A downward parabola.

  2. (x−3)(6−x)≥0  ⟺  x∈[3,6](x-3)(6-x)\ge0\iff x\in[3,6].

    Why: The same idea.

  3. f(x)=(x+2)(1−x)+(x−3)(6−x)f(x)=\sqrt{(x+2)(1-x)}+\sqrt{(x-3)(6-x)} is defined only on the intersection — empty!

    Why: A sum needs both roots.

  4. Instead of a sum — a product under one root: f(x)=−(x+2)(x−1)(x−3)(x−6)f(x)=\sqrt{-(x+2)(x-1)(x-3)(x-6)}.
Checkx=0x=0: −(2)(−1)(−3)(−6)=36≥0-(2)(-1)(-3)(-6)=36\ge0 ✓; x=2x=2: −(4)(1)(−1)(−4)=−16<0-(4)(1)(-1)(-4)=-16<0, outside the domain ✓.
Common mistakeA sum of two roots — gives the intersection instead of the union.

Practice · 20

Test yourself with problems and full solutions.

Go to practice