TExcelTAD
Home › Calculus in Depth › A Catalog of Essential Functions

A Catalog of Essential Functions

Almost every function in calculus is built from a short list of basic families: linear, polynomial, power, rational, algebraic, trigonometric, exponential and logarithmic. This lesson lists each family with its defining features, shows how to recognise one in data, and explains why the choice of family is the first step of every mathematical model.

For a first look, see Types of Functions, Polynomials and Their Roots and Trigonometric Functions.

Mathematical models

A model is a function chosen to describe a real quantity. The workflow is always the same: pick a family from the catalogue below based on theory or on the shape of the data, fit its parameters, use it to predict, and test the predictions against new data. The catalogue is the menu.

The catalogue

Family Form Key features
linear f(x)=mx+bf(x) = mx + b constant rate of change mm
polynomial anxn+⋯+a1x+a0a_n x^n + \cdots + a_1 x + a_0, an≠0a_n \ne 0 degree nn, at most nn roots and n−1n - 1 turning points, domain R\mathbb{R}
power xax^a, aa constant a=na = n (positive integer), a=1/na = 1/n (root), a=−1a = -1 (reciprocal)
rational P(x)/Q(x)P(x)/Q(x), PP, QQ polynomials undefined where Q=0Q = 0, often vertical asymptotes
algebraic built from polynomials with ++, −-, ×\times, ÷\div and roots e.g. x2+1\sqrt{x^2 + 1}, x2/3(x−4)x^{2/3}(x - 4)
trigonometric sin⁡\sin, cos⁡\cos, tan⁡\tan, … (xx in radians) periodic: sin⁡\sin and cos⁡\cos have period 2π2\pi, tan⁡\tan has period π\pi
exponential bxb^x, b>0b > 0, b≠1b \ne 1 growth (b>1b > 1) or decay (0<b<10 < b < 1) by a constant factor
logarithmic log⁡bx\log_b x, b>0b > 0, b≠1b \ne 1 inverse of bxb^x, domain x>0x > 0, grows slower than any power

Functions that are not algebraic (trigonometric, exponential, logarithmic and their inverses) are called transcendental.

Linear models

A function is linear exactly when its rate of change is constant: equal steps Δx\Delta x always produce equal steps Δy\Delta y, and m=Δy/Δxm = \Delta y/\Delta x. Two measurements determine the model.

python · try it yourself
from fractions import Fraction as F

# p95 latency of a service measured at two request rates
r1, t1 = 200, F(42)       # requests/s, milliseconds
r2, t2 = 500, F(87)
m = (t2 - t1) / (r2 - r1)
b = t1 - m * r1
print("slope m =", m, "ms per (req/s)")
print("intercept b =", b, "ms")
print("model at 800 req/s:", m * 800 + b, "ms")
print("budget 120 ms reached at", (120 - b) / m, "req/s")
slope m = 3/20 ms per (req/s)
intercept b = 12 ms
model at 800 req/s: 132 ms
budget 120 ms reached at 720 req/s

Exact fractions keep the slope 320=0.15\frac{3}{20} = 0.15 instead of a rounded float. Whether the service really stays linear beyond 500 req/s is a question for the data, not the algebra: queues typically make latency blow up near capacity, which a rational model like c/(capacity−r)c/(\text{capacity} - r) captures better.

Polynomials and power functions

The degree controls a polynomial's end behaviour: for large ∣x∣\lvert x \rvert the leading term anxna_n x^n dominates everything else. Even degree means both ends go the same way; odd degree means opposite ways.

Power functions xax^a behave very differently depending on aa:

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0.05, 2, 300)
plt.figure(figsize=(6, 4))
for a, label in [(3, "x³"), (2, "x²"), (1, "x"), (0.5, "√x"), (-1, "1/x")]:
    plt.plot(x, x**a, label=label)
plt.ylim(0, 4)
plt.axvline(1, color="grey", lw=0.5)
plt.legend()
plt.title("Power functions xᵃ: all pass through (1, 1)")
for a in [3, 2, 1, 0.5, -1]:
    print(f"a = {a:>4}: f(0.5) = {0.5**a:.3f}, f(2) = {2**a:.3f}")
a =    3: f(0.5) = 0.125, f(2) = 8.000
a =    2: f(0.5) = 0.250, f(2) = 4.000
a =    1: f(0.5) = 0.500, f(2) = 2.000
a =  0.5: f(0.5) = 0.707, f(2) = 1.414
a =   -1: f(0.5) = 2.000, f(2) = 0.500

On (0,1)(0, 1) a larger exponent gives a smaller value; past x=1x = 1 the order flips. That crossover is why x3x^3 is negligible next to xx for small xx, the idea behind linear approximation in chapter 3.

Recognising a power law in data

If y=c⋅xay = c \cdot x^a, then log⁡y=log⁡c+a⋅log⁡x\log y = \log c + a \cdot \log x: on a log-log plot a power law is a straight line whose slope is the exponent. This is the standard way to measure a scaling exponent, for example the running-time growth of an algorithm.

python · try it yourself
import numpy as np

n = np.array([1000, 2000, 4000, 8000, 16000, 32000])
rng = np.random.default_rng(7)
seconds = 2e-6 * n**1.5 * (1 + 0.03 * rng.standard_normal(n.size))  # simulated timings

a, logc = np.polyfit(np.log(n), np.log(seconds), 1)
print(f"fitted exponent a ≈ {float(a):.3f}")
print(f"fitted constant c ≈ {float(np.exp(logc)):.2e}")
fitted exponent a ≈ 1.490
fitted constant c ≈ 2.15e-06

The fit recovers an exponent of 1.49 (true value 1.5) despite 3 % noise; the constant is less precise, because a small error in the slope is magnified when extrapolated back to log⁡n=0\log n = 0. An exponential model would instead be a straight line on a semi-log plot (log⁡y\log y against xx), which is how you tell the two families apart.

Trigonometric and exponential families

A general sinusoid Asin⁡(B(x−C))+DA\sin(B(x - C)) + D has amplitude ∣A∣\lvert A \rvert, period 2π/∣B∣2\pi/\lvert B \rvert, phase shift CC and midline y=Dy = D. It models anything periodic: daily traffic, seasons, sound. Exponentials bxb^x model quantities that change by a constant factor per unit step, as linear functions change by a constant amount. They get their own lessons: Exponential Functions and Inverse Functions and Logarithms.

In software

The catalogue is the vocabulary of complexity analysis: O(1)O(1), O(log⁡n)O(\log n), O(n)O(n), O(nlog⁡n)O(n \log n), O(n2)O(n^2), O(2n)O(2^n) are a constant, a logarithm, linear, a product, a power and an exponential (Time Complexity). Graphics and audio code is full of sinusoids, animation uses polynomial easing curves, ML uses the exponential inside softmax and the logarithm inside cross-entropy loss, and capacity planning fits linear and power-law models to load-test data exactly as above.

Exercises

Exercise 1: Classify

Classify each function as polynomial, rational, algebraic (but not rational), power, exponential or trigonometric: (a) x2+1x−3\dfrac{x^2 + 1}{x - 3}, (b) 3x3^x, (c) x1.7x^{1.7}, (d) x3+1\sqrt{x^3 + 1}, (e) 4x3−x+24x^3 - x + 2, (f) cos⁡2x\cos 2x.

Answer

(a) rational, (b) exponential, (c) power, (d) algebraic, (e) polynomial, (f) trigonometric.

Solution

(a) is a quotient of polynomials. In (b) the variable is in the exponent, while in (c) the variable is the base and the exponent is fixed. (d) needs a root of a polynomial. (e) has degree 3. (f) is a sinusoid with period π\pi.

Exercise 2: A heating model

A 3D printer's nozzle warms linearly from 22 °C at t=0t = 0 s to 210 °C at t=94t = 94 s. Find T(t)T(t) and the time at which it reaches 150 °C.

Answer

T(t)=22+2tT(t) = 22 + 2t; it reaches 150 °C at t=64t = 64 s.

Solution
m=210−2294−0=18894=2 ∘C per secondT(t)=22+2t22+2t=150 ⇒ t=64\begin{aligned} m &= \frac{210 - 22}{94 - 0} = \frac{188}{94} = 2\ {}^\circ\text{C per second} \\ T(t) &= 22 + 2t \\ 22 + 2t &= 150 \ \Rightarrow\ t = 64 \end{aligned}

Exercise 3: End behaviour

Describe the end behaviour of p(x)=−2x5+3x2−7p(x) = -2x^5 + 3x^2 - 7 and give the maximum number of real roots and turning points.

Answer

p(x)→−∞p(x) \to -\infty as x→∞x \to \infty and p(x)→+∞p(x) \to +\infty as x→−∞x \to -\infty; at most 5 roots and 4 turning points.

Solution

The leading term −2x5-2x^5 dominates. Odd degree with a negative leading coefficient: large positive xx gives large negative values and large negative xx gives large positive values. A degree-5 polynomial has at most 5 roots, and its derivative (degree 4) has at most 4 roots, so at most 4 turning points.

Exercise 4: Find the exponent

Timings of a function are 0.8, 3.2, 12.8 and 51.2 ms for inputs n=100n = 100, 200, 400 and 800. Find the exponent aa in t=c⋅nat = c \cdot n^a by hand, then with a log-log fit in Python.

Answer

a=2a = 2 (each doubling of nn multiplies tt by 4), c=8×10−5c = 8 \times 10^{-5} ms.

Solution

Doubling nn multiplies tt by 4=224 = 2^2, so a=2a = 2. Then c=0.8/1002=0.00008c = 0.8/100^2 = 0.00008.

python · try it yourself
import numpy as np

n = np.array([100, 200, 400, 800])
t = np.array([0.8, 3.2, 12.8, 51.2])
a, logc = np.polyfit(np.log(n), np.log(t), 1)
print(round(float(a), 6), f"{float(np.exp(logc)):.1e}")
2.0 8.0e-05

Test yourself

Which function is a power function rather than an exponential?

  1. 2x2^x
  2. exe^x
  3. x2.5x^{2.5}
  4. (1/3)x(1/3)^x

Data points lie on a straight line when you plot log⁡y\log y against log⁡x\log x. Which family fits?

  1. Power function c⋅xac \cdot x^a
  2. Exponential c⋅bxc \cdot b^x
  3. Linear in xx and yy
  4. Logarithmic

What is the period of 5sin⁡(3x)+15\sin(3x) + 1?

  1. 3
  2. 2π2\pi
  3. 6π6\pi
  4. 2π/32\pi/3