Functions

Functions describe how one quantity depends on another. Learn notation, domain, codomain and range, independent and dependent variables, piecewise, composite and inverse functions, even/odd and periodic functions, monotonicity and boundedness, and the families of algebraic, trigonometric, exponential and logarithmic functions used to model temperature(t), position(t), voltage(t) and pressure(x).

A function is a rule assigning exactly one output to each input. Engineers use functions as models: the voltage across a capacitor as a function of time, the stress in a beam as a function of position, fuel consumption as a function of speed.

An analogy

A function is like a vending machine: each button (input) always gives one specific item (output). Two buttons can give the same item, but one button never gives two items.

Domain and range

Domain excludes values that break the formula: division by zero, square roots of negatives (in ℝ), logs of non-positive numbers — and physically impossible inputs (negative time, negative mass).

Building functions

Piecewise functions model switches and tariffs (e.g. tax brackets, a thermostat). Composition chains processes: sensor voltage → temperature → alarm. Inverses undo them — only one-to-one functions have inverses (restrict the domain otherwise).

Symmetry and periodicity

cos is even, sin is odd; every function splits into even + odd parts. Periodic functions (AC voltage, rotating shafts) repeat every T; frequency f = 1/T.

Function families

Polynomials (smooth, unbounded), rational functions (asymptotes), exponentials/logs (growth, decay), trigonometric (oscillations), power laws (scaling). Choosing the right family is the first step of mathematical modelling.

Formulas

Worked example: Inverse function

Given: y = (2x + 3)/(x − 1)

Find: f⁻¹ and domains.

Answer: Domain of f: x ≠ 1; domain of f⁻¹: x ≠ 2

Worked example: Piecewise tariff

Given: Cost = 0.10 $/kWh up to 100 kWh, 0.15 $/kWh above

Find: Cost for 160 kWh.

Answer: $19

Common mistakes

Applications

Key takeaways

Going further