Functions and Their Graphs

Precalculus · High school

Functions and Their Graphs: the big picture

A function is a rule that assigns exactly one output to each input, and its domain and range describe the possible inputs and outputs. Functions are combined by composition, undone by inverses and reshaped by transformations. Piecewise and absolute-value functions show that a single rule need not describe the whole graph.

Domain, composition and inverses

The domain of a function is the set of allowed inputs, so the domain of √(x − 3) is x ≥ 3 and of 1/(x − 2) is every x except 2. The composition (f∘g)(x) = f(g(x)) applies g first and then f. A function that is one-to-one passes the horizontal line test and has an inverse f⁻¹ that swaps inputs and outputs, so its graph is the reflection of f in the line y = x.

{{illustration:mh-math-precalc-u1-f1}}

Key relations

- Composition. the composition applies the inner function first and then the outer function

Transformations and piecewise functions

For a parent function f the graph of f(x) + k shifts up k, f(x − h) shifts right h, −f(x) reflects in the x-axis, a·f(x) stretches vertically by a, and f(bx) compresses horizontally by the factor 1/b. A piecewise function uses different rules on different intervals, and the absolute value |x| is the piecewise function that equals x for x ≥ 0 and −x for x < 0.

Key relations

- Horizontal shift. replacing x by x minus h shifts the graph h units to the right