Evaluating a Function — Cheat sheet

Choose “Save as PDF” in the print dialog.
On this page

Key method

For f(x)=x2−3xf(x)=x^2-3x, input uu gives f(u)=u2−3uf(u)=u^2-3u. If uu is an expression, expand only after substitution. Check domain restrictions first.

Example

Compute f(a+h)f(a+h):

f(a+h)=(a+h)2−3(a+h)=a2+2ah+h2−3a−3h.f(a+h)=(a+h)^2-3(a+h)=a^2+2ah+h^2-3a-3h.

Subtracting f(a)f(a) leaves 2ah+h2−3h2ah+h^2-3h. If h≠0h\ne0, dividing by hh gives 2a+h−32a+h-3, the difference quotient used in differentiation.

Avoid this mistake

f(a+h)f(a+h) is usually not f(a)+f(h)f(a)+f(h). A nonlinear function does not distribute over addition.