← back to calculus

Functions and Graphs

Active Calculus (CC BY-SA) · activecalculus.org

A function is a rule that assigns each input exactly one output. Domain is what goes in, range is what comes out. Composition chains functions; inverses undo them. Every concept in calculus starts here.

Domain Range 1 2 3 1 4 9 f(x) = x²

Domain and range

The domain is every input for which the function produces an output. The range is every output the function actually hits. Not every real number needs to be in either set.

Scheme

Composition

If f goes from A to B and g goes from B to C, then g composed with f goes from A to C. The output of f becomes the input of g. Written g(f(x)) or (g . f)(x).

Scheme

Inverse functions

If f sends x to y, then its inverse f⁻¹ sends y back to x. Not every function has an inverse: it must be one-to-one (injective). f⁻¹(f(x)) = x for all x in the domain.

Scheme

Common function families

Polynomials, exponentials, and logarithms are the workhorses. Each has a characteristic shape and growth rate. You need to recognize them on sight because calculus rules differ by family.

Scheme

Notation reference

Math Scheme Python Meaning
f(x)(f x)f(x)Apply f to x
(g ∘ f)(x)(g (f x))g(f(x))Composition
f⁻¹(x)(f-inv x)f_inv(x)Inverse function
(exp x)math.exp(x)Exponential
ln(x)(log x)math.log(x)Natural logarithm
Neighbors