Functions and Their Graphs

Study Sheet

Functions and Their Graphs

Notation, domain & range, graph analysis, parent functions, transformations, combinations, inverses, and piecewise functions

Function Notation, Domain & Range, Evaluating

Concept
What is a function?

A function ff assigns to each input xx (from the domain) exactly one output y=f(x)y=f(x). The set of all outputs is the range.

  • [leftmargin=5mm]
  • Evaluating: substitute the input for every xx. In f(x)=x23xf(x)=x^2-3x, we get f(a+1)=(a+1)23(a+1)f(a+1)=(a+1)^2-3(a+1).
  • Domain of a polynomial: all reals, (,)(-\infty,\infty).
  • Radical g(x)\sqrt{g(x)}: require g(x)0g(x)\ge 0.
  • Rational p(x)q(x)\dfrac{p(x)}{q(x)}: require q(x)0q(x)\ne 0.
Example
Finding a domain

Find the domain of f(x)=x+2x3f(x)=\dfrac{\sqrt{x+2}}{x-3}.

Need x+20x2x+2\ge 0 \Rightarrow x\ge -2, and x30x3x-3\ne 0 \Rightarrow x\ne 3.

Domain: [2,3)(3,)[-2,3)\cup(3,\infty).

Example
Evaluating

For f(x)=x23xf(x)=x^2-3x, compute f(2)f(-2) and f(a+1)f(a+1).

f(2)=(2)23(2)=4+6=10f(-2)=(-2)^2-3(-2)=4+6=10.

f(a+1)=(a+1)23(a+1)=a2+2a+13a3=a2a2f(a+1)=(a+1)^2-3(a+1)=a^2+2a+1-3a-3=a^2-a-2.

Tip

Tip: A domain restriction from a radical uses \ge; a restriction from a denominator uses \ne. Always combine both kinds of restriction when they appear together.

The Difference Quotient

Concept
Difference quotient

The difference quotient of ff is

f(x+h)f(x)h,h0.\frac{f(x+h)-f(x)}{h},\qquad h\ne 0.

It measures the average rate of change of ff over [x,x+h][x,x+h] and is the foundation of the derivative. Simplify until the hh in the denominator cancels.

Example
Difference quotient of a quadratic

Let f(x)=x2+1f(x)=x^2+1. Then

f(x+h)=(x+h)2+1=x2+2xh+h2+1,f(x+h)=(x+h)^2+1=x^2+2xh+h^2+1,
f(x+h)f(x)h=(x2+2xh+h2+1)(x2+1)h=2xh+h2h=2x+h.\frac{f(x+h)-f(x)}{h}=\frac{(x^2+2xh+h^2+1)-(x^2+1)}{h}=\frac{2xh+h^2}{h}=2x+h.
Tip

Tip: The f(x+h)f(x)f(x+h)-f(x) numerator should always lose its constant term and its lone x2x^2 term, leaving only factors of hh. If no hh cancels, recheck the algebra.

Analyzing Graphs

Concept
Reading a graph
xy
  • [leftmargin=5mm]
  • xx-intercepts (zeros): where f(x)=0f(x)=0; yy-intercept: the value f(0)f(0).
  • Even (symmetric about yy-axis): f(x)=f(x)f(-x)=f(x).   Odd (symmetric about origin): f(x)=f(x)f(-x)=-f(x).
  • Increasing / decreasing / constant over an interval as xx moves left to right.
  • Relative maximum / minimum: a peak or valley of the graph.

Slope is rise over run.

Example
Analyzing f(x)=x33xf(x)=x^3-3x
  • [leftmargin=5mm]
  • Zeros: x33x=x(x23)=0x=0, ±3x^3-3x=x(x^2-3)=0 \Rightarrow x=0,\ \pm\sqrt{3}.
  • Symmetry: f(x)=x3+3x=f(x)f(-x)=-x^3+3x=-f(x), so ff is odd.
  • Relative max (1,2)(-1,2); relative min (1,2)(1,-2).
  • Increasing on (,1)(-\infty,-1) and (1,)(1,\infty); decreasing on (1,1)(-1,1).
Tip

Tip: To test symmetry algebraically, substitute x-x. If you get the same expression it is even; if you get the opposite of the original it is odd; otherwise neither.

The Library of Parent Functions

Concept
Eight parents to memorize

Constant f(x)=cf(x)=c; Identity f(x)=xf(x)=x; Absolute value f(x)=xf(x)=|x|; Square root f(x)=xf(x)=\sqrt{x}; Quadratic f(x)=x2f(x)=x^2; Cubic f(x)=x3f(x)=x^3; Reciprocal f(x)=1xf(x)=\dfrac{1}{x}; Greatest integer (step) f(x)=xf(x)=\lfloor x\rfloor.

% Identity and absolute value

  % Square root

  % Quadratic

% Cubic

  % Reciprocal

  % Constant

  % Greatest integer / step

Tip

Tip: x\sqrt{x} has domain [0,)[0,\infty) and 1x\tfrac{1}{x} excludes x=0x=0 (a vertical asymptote). All other parents above have domain (,)(-\infty,\infty).

Transformations of Functions

Concept
Reading y=af(bxc)+dy=a\,f(bx-c)+d

Starting from y=f(x)y=f(x):

  • [leftmargin=5mm]
  • +d+d: shift up dd;   d-d: shift down.
  • f(xc)f(x-c): shift right cc;   f(x+c)f(x+c): shift left. (Horizontal moves are opposite the sign.)
  • a<0a<0: reflect over the xx-axis;   a>1|a|>1: vertical stretch;   0<a<10<|a|<1: vertical shrink.
  • b<0b<0: reflect over the yy-axis;   b>1|b|>1: horizontal shrink;   0<b<10<|b|<1: horizontal stretch.
Example
A multi-step transformation

Graph g(x)=x1+3g(x)=-|x-1|+3 from the parent f(x)=xf(x)=|x|: shift right 11, reflect over the xx-axis, then shift up 33. The vertex moves from (0,0)(0,0) to (1,3)(1,3) and the graph opens downward. Below, ff is dashed (pre-image) and gg is solid (image).

Tip

Tip: Apply transformations in order: horizontal shift/stretch (inside the function) first, then vertical stretch/reflection, then vertical shift. When b1b\ne 1, factor first: f(bxc)=f ⁣(b(xcb))f(bx-c)=f\!\big(b(x-\tfrac{c}{b})\big) so the horizontal shift is c/bc/b, not cc.

Combinations and Composition of Functions

Concept
Arithmetic and composition

For functions ff and gg:

(f±g)(x)=f(x)±g(x),(fg)(x)=f(x)g(x),(fg)(x)=f(x)g(x), g(x)0.(f\pm g)(x)=f(x)\pm g(x),\quad (fg)(x)=f(x)\,g(x),\quad \left(\tfrac{f}{g}\right)(x)=\frac{f(x)}{g(x)},\ g(x)\ne 0.

The composition (fg)(x)=f(g(x))(f\circ g)(x)=f\big(g(x)\big) feeds the output of gg into ff.

Example
Composition and its domain

Let f(x)=xf(x)=\sqrt{x} and g(x)=x4g(x)=x-4. Then

(fg)(x)=f(x4)=x4.(f\circ g)(x)=f(x-4)=\sqrt{x-4}.

The domain needs x40x-4\ge 0, so domain=[4,)\textbf{domain}=[4,\infty).   Also (gf)(x)=x4(g\circ f)(x)=\sqrt{x}-4, with domain [0,)[0,\infty).

Tip

Tip: The domain of fgf\circ g is the set of xx in the domain of gg whose outputs g(x)g(x) lie in the domain of ff. Composition is not commutative: usually fggff\circ g\ne g\circ f.

Inverse Functions

Concept
One-to-one and inverses

ff is one-to-one if each output comes from exactly one input; equivalently it passes the horizontal line test. Only one-to-one functions have an inverse f1f^{-1}, which satisfies

f(f1(x))=xandf1(f(x))=x.f\big(f^{-1}(x)\big)=x \quad\text{and}\quad f^{-1}\big(f(x)\big)=x.

The graph of f1f^{-1} is the reflection of the graph of ff over the line y=xy=x.

Example
Finding and verifying an inverse

Find the inverse of f(x)=2x+6f(x)=2x+6.   Write y=2x+6y=2x+6, swap: x=2y+6x=2y+6, solve: y=x62y=\dfrac{x-6}{2}.

So f1(x)=x62f^{-1}(x)=\dfrac{x-6}{2}. Verify: f ⁣(f1(x))=2 ⁣ ⁣x62+6=xf\!\big(f^{-1}(x)\big)=2\!\cdot\!\dfrac{x-6}{2}+6=x. (verified)

Tip

Tip: If a function fails the horizontal line test (like f(x)=x2f(x)=x^2), restrict its domain (e.g. x0x\ge 0) to make it one-to-one before inverting.

Piecewise Functions and Average Rate of Change

Concept
Piecewise functions

A piecewise function uses different formulas on different parts of the domain. A closed dot \bullet includes an endpoint; an open dot \circ excludes it. Evaluate by choosing the rule whose condition the input satisfies.

f(x)={x+1,x<14x,x1f(x)=\begin{cases} x+1, & x<1 \\[2pt] 4-x, & x\ge 1 \end{cases}

Here f(0)=1f(0)=1 and f(1)=3f(1)=3.

Concept
Average rate of change

The average rate of change of ff from x=ax=a to x=bx=b is the slope of the secant line:

f(b)f(a)ba.\frac{f(b)-f(a)}{b-a}.
Example
Average rate of change

For f(x)=x2f(x)=x^2 from a=1a=1 to b=3b=3:

f(3)f(1)31=912=4.\frac{f(3)-f(1)}{3-1}=\frac{9-1}{2}=4.
Tip

Tip: Average rate of change is the difference quotient with x=ax=a and h=bah=b-a; it is a secant slope, not the value of the function.

Going Deeper: Advanced Function Ideas

Concept
Functional equations

A functional equation constrains an unknown function ff by an identity that must hold for all allowed xx. The key tactic is substitution: replace xx with a related expression (such as 1x\tfrac{1}{x}, x-x, or 1x1-x) to generate a second equation, then solve the resulting system for f(x)f(x) as if f(x)f(x) and the substituted value were two separate unknowns.

  • [leftmargin=5mm]
  • Common self-inverse swaps: x1xx\mapsto \tfrac{1}{x}, xxx\mapsto -x, x1xx\mapsto 1-x.
  • After substituting, treat f(x)f(x) and f(new input)f(\text{new input}) as variables and eliminate.
Example
Solving a functional equation

Find ff if f(x)+2f ⁣(1x)=3xf(x)+2f\!\left(\tfrac{1}{x}\right)=3x for all x0x\ne 0.

Replace xx with 1x\tfrac{1}{x} to get a companion equation, giving the system

f(x)+2f ⁣(1x)=3x,2f(x)+f ⁣(1x)=3x.\begin{aligned} f(x)+2f\!\left(\tfrac{1}{x}\right) &= 3x, \\[2pt] 2f(x)+f\!\left(\tfrac{1}{x}\right) &= \tfrac{3}{x}. \end{aligned}

Multiply the second by 22 and subtract the first: 3f(x)=6x3x3f(x)=\dfrac{6}{x}-3x, so

f(x)=2xx.f(x)=\frac{2}{x}-x.

Check: f(x)+2f ⁣(1x)=(2xx)+2(2x1x)=3x.f(x)+2f\!\left(\tfrac1x\right)=\left(\tfrac2x-x\right)+2\left(2x-\tfrac1x\right)=3x. (verified)

Concept
Iterated compositions and involutions

Composing ff with itself nn times is written

f[n]=fffn copies,f[1]=f,  f[n+1]=ff[n].f^{[n]}=\underbrace{f\circ f\circ\cdots\circ f}_{n\ \text{copies}},\qquad f^{[1]}=f,\ \ f^{[n+1]}=f\circ f^{[n]}.

(The bracket distinguishes this from a power f(x)nf(x)^n or the inverse f1f^{-1}.) A function is an involution if ff=idf\circ f=\mathrm{id}, i.e. f(f(x))=xf\big(f(x)\big)=x; then f1=ff^{-1}=f and the iterates cycle: f[even]=idf^{[\text{even}]}=\mathrm{id} and f[odd]=ff^{[\text{odd}]}=f. Some maps have longer periods (e.g. f(x)=11xf(x)=1-\tfrac{1}{x} satisfies f[3]=idf^{[3]}=\mathrm{id}).

Example
An involution and its iterates

Let f(x)=xx1f(x)=\dfrac{x}{x-1} with x1x\ne 1. Compute fff\circ f:

f(f(x))=xx1xx11=xx1x(x1)x1=xx11x1=x.f\big(f(x)\big)=\frac{\frac{x}{x-1}}{\frac{x}{x-1}-1} =\frac{\frac{x}{x-1}}{\frac{x-(x-1)}{x-1}} =\frac{\frac{x}{x-1}}{\frac{1}{x-1}}=x.

So ff is an involution: f[2]=idf^{[2]}=\mathrm{id} and f1=ff^{-1}=f. The iterates therefore alternate, and for instance f[100]=idf^{[100]}=\mathrm{id} while f[101]=ff^{[101]}=f.

Concept
Monotonicity, symmetry, and composed transformations

Three high-leverage ideas:

  • [leftmargin=5mm]
  • Monotonicity \Rightarrow invertibility. If ff is strictly increasing (or strictly decreasing) on its domain, it automatically passes the horizontal line test, so f1f^{-1} exists there --- no need to solve algebraically to know it is one-to-one.
  • Exploiting even/odd symmetry. An even function is fully determined by its values on [0,)[0,\infty); an odd function must have f(0)=0f(0)=0 (when 00 is in the domain). Products/quotients obey: even\cdoteven == even, odd\cdotodd == even, even\cdotodd == odd.
  • Composing transformations into one mapping. Applying transformation T1T_1 then T2T_2 means the combined rule is T2T1T_2\circ T_1. Order matters: a shift-then-stretch gives a different single formula y=af(bxc)+dy=a\,f(bx-c)+d than stretch-then-shift.
Example
Domain of a nested composition

Find the domain of F(x)=4xF(x)=\sqrt{\,4-\sqrt{x}\,}, a composition F=fgF=f\circ g with f(u)=uf(u)=\sqrt{u} and g(x)=4xg(x)=4-\sqrt{x}.

Work from the inside out, collecting every restriction:

  • [leftmargin=5mm]
  • Inner radical: x0x\ge 0.
  • Outer radical: 4x0x4x164-\sqrt{x}\ge 0 \Rightarrow \sqrt{x}\le 4 \Rightarrow x\le 16.

Both must hold, so domain=[0,16]\textbf{domain}=[0,16].

Example
A parameter that makes a piecewise function continuous

For which cc is

f(x)={cx+1,x2x2c,x>2f(x)=\begin{cases} cx+1, & x\le 2 \\[2pt] x^2-c, & x>2 \end{cases}

continuous at the split point x=2x=2?

The two branches must agree in the limit at x=2x=2:

c(2)+1left value=(2)2cright limit  2c+1=4c  3c=3  c=1.\underbrace{c(2)+1}_{\text{left value}}=\underbrace{(2)^2-c}_{\text{right limit}} \ \Longrightarrow\ 2c+1=4-c\ \Longrightarrow\ 3c=3\ \Longrightarrow\ c=1.

With c=1c=1 both pieces give 33 at x=2x=2, so the graph joins without a jump.

Example
Difference quotient of a harder function

Compute the difference quotient of f(x)=xf(x)=\sqrt{x} using the conjugate:

x+hxh=x+hxhx+h+xx+h+x=(x+h)xh(x+h+x)=1x+h+x.\frac{\sqrt{x+h}-\sqrt{x}}{h} =\frac{\sqrt{x+h}-\sqrt{x}}{h}\cdot\frac{\sqrt{x+h}+\sqrt{x}}{\sqrt{x+h}+\sqrt{x}} =\frac{(x+h)-x}{h\big(\sqrt{x+h}+\sqrt{x}\big)} =\frac{1}{\sqrt{x+h}+\sqrt{x}}.

The hh cancels once the radicals are rationalized. (For f(x)=1xf(x)=\tfrac{1}{x} the same idea gives f(x+h)f(x)h=1x(x+h)\dfrac{f(x+h)-f(x)}{h}=\dfrac{-1}{x(x+h)}.)

Tip

Tip: For nested radicals and rational compositions, never simplify before finding the domain --- restrictions from an inner piece survive even if they cancel algebraically. And for iterated maps, always confirm a suspected involution or period by computing fff\circ f (and ffff\circ f\circ f), not by eyeballing the formula.

Formulas, Proofs & Tips

Tip
Function transformations
y=af(b(xh))+ky = a\,f\big(b(x-h)\big)+k

What it means. hh shifts right, kk shifts up, aa stretches vertically (flipping if negative), bb compresses horizontally.

Example. y=(x2)2+3y=(x-2)^2+3 shifts y=x2y=x^2 right 22 and up 33.

Why it works. Inside changes act on the input before ff does, so they run backwards: replacing xx by xhx-h means the graph reaches a given output hh units later, i.e. shifted right. Outside changes act after ff, so they behave as written.

Tip. Inside the function: opposite of what it looks like. Outside: exactly what it looks like.

Tip
Inverse functions
f(f1(x))=xandf1(f(x))=xf\big(f^{-1}(x)\big)=x \quad\text{and}\quad f^{-1}\big(f(x)\big)=x

What it means. The inverse undoes the function; their graphs are mirror images across y=xy=x.

Example. f(x)=2x+1f(x)=2x+1 has inverse f1(x)=x12f^{-1}(x)=\tfrac{x-1}{2}, and f(f1(x))=xf(f^{-1}(x))=x.

Why it works. Swapping xx and yy in y=f(x)y=f(x) and solving for yy produces the rule that reverses each input–output pair. Reflecting across y=xy=x is exactly what swapping coordinates does geometrically.

Tip. Only one-to-one functions have inverses. If a horizontal line hits the graph twice, restrict the domain first.