UNIHIVE

Study Hub UNIPORT MTH 120

MTH 120 · Calculus

Functions and graphs

Domain and range, composite and inverse functions, even and odd functions, and the graphs of common functions.

Our notes

2 min read

What a function is

A function f from a set A to a set B is a rule that gives each element x of A exactly one element f(x) of B.

  • Domain: the set of allowed inputs x.
  • Codomain: the set B; range: the set of outputs actually produced.
  • Notation: f(x) = x² + 1, or f : x ↦ x² + 1.

Vertical line test: a graph is a function if no vertical line cuts it more than once.

Finding the domain

  • No division by zero: f(x) = 1/(x − 2) has domain x ≠ 2.
  • No square root of a negative: f(x) = √(x − 3) has domain x ≥ 3.
  • No log of zero or a negative: f(x) = ln x has domain x > 0.

Types of functions

  • One-to-one (injective): different inputs give different outputs.
  • Onto (surjective): every element of the codomain is an output.
  • Bijective: both; only these have inverses.
  • Even: f(−x) = f(x) (symmetric about the y-axis), e.g. x², cos x.
  • Odd: f(−x) = −f(x) (symmetric about the origin), e.g. x³, sin x.
  • Polynomial, rational, exponential (eˣ), logarithmic (ln x), trigonometric, modulus (|x|) functions.

Composite functions

(f ∘ g)(x) = f(g(x)): apply g first, then f.
Worked example. f(x) = 2x + 1, g(x) = x².
f(g(x)) = 2x² + 1; g(f(x)) = (2x + 1)² = 4x² + 4x + 1. In general f∘g ≠ g∘f.

Inverse functions

f⁻¹ undoes f: f(f⁻¹(x)) = x.
To find it: write y = f(x), swap x and y, solve for y.
Worked example. f(x) = (2x + 3)/5. Swap: x = (2y + 3)/5 → 5x = 2y + 3 → f⁻¹(x) = (5x − 3)/2.
The graph of f⁻¹ is the reflection of f in the line y = x.

Basic graphs to know

  • y = mx + c: straight line, gradient m, y-intercept c.
  • y = x²: parabola; y = x³: cubic, through the origin.
  • y = 1/x: hyperbola, asymptotes x = 0 and y = 0.
  • y = eˣ: always positive, through (0, 1); y = ln x: through (1, 0), defined for x > 0.
  • y = |x|: V shape.

Transformations of y = f(x)

  • f(x) + a: up by a. f(x + a): left by a.
  • −f(x): reflect in the x-axis. f(−x): reflect in the y-axis.
  • a f(x): stretch vertically by a.

Exams usually ask: find domain and range; evaluate and form composite functions; find inverses; decide even/odd; sketch basic graphs.

Common mistake: confusing f⁻¹(x) (the inverse) with 1/f(x) (the reciprocal).

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 120 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.