Skip to main content

What Is a Function?

A function ff is a deterministic rule that assigns each input xx in a set called the domain to exactly one output y=f(x)y = f(x) in a set called the range.

  • Multiple inputs can share the same output (e.g., f(−2)=4f(-2) = 4 and f(2)=4f(2) = 4 for f(x)=x2f(x) = x^2).
  • One input can never produce two different outputs. Graphically, this is the Vertical Line Test.

Finding Domain and Range

Unless a context restricts inputs (like t≥0t \ge 0 for time), the natural domain of a real-valued function is all real numbers R\mathbb{R} except values that break arithmetic:

  1. Denominators cannot be zero: For f(x)=1x−3f(x) = \frac{1}{x - 3}, x−3≠0  ⟹  x - 3 \ne 0 \implies domain is (−∞,3)∪(3,∞)(-\infty, 3) \cup (3, \infty).
  2. Even roots require non-negative interiors: For g(x)=x+5g(x) = \sqrt{x + 5}, x+5≥0  ⟹  x + 5 \ge 0 \implies domain is [−5,∞)[-5, \infty).
  3. Logarithms require strictly positive arguments: For ln⁡(2x−4)\ln(2x - 4), 2x−4>0  ⟹  2x - 4 > 0 \implies domain is (2,∞)(2, \infty).

Graph Transformations: y=a⋅f(x−h)+ky = a \cdot f(x - h) + k

Every parent function (x2,∣x∣,x,sin⁡x,2xx^2, |x|, \sqrt{x}, \sin x, 2^x) moves predictably under four parameters:

TransformationEquation ChangeEffect on Graph
Vertical Shiftf(x)+kf(x) + kUp kk units (k>0k > 0) or down (k<0k < 0)
Horizontal Shiftf(x−h)f(x - h)Right hh units (h>0h > 0) or left (h<0h < 0)
Vertical Scale / Flipa⋅f(x)a \cdot f(x)Stretch by ∥a∥\|a\|; reflect across xx-axis if a<0a < 0
Horizontal Flipf(−x)f(-x)Reflect across yy-axis

Function Composition & Inverses

  • Composition (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): Feed the output of gg directly into ff (inside-out).
  • Inverse Function f−1(x)f^{-1}(x): Reverses ff, so f(f−1(x))=xf(f^{-1}(x)) = x. Only one-to-one functions (passing the Horizontal Line Test) have a true inverse without restricting the domain.

Progressive Worked Examples

Example 1 (Foundational): Finding Domain

Find the domain of f(x)=x−2x−5f(x) = \dfrac{\sqrt{x - 2}}{x - 5}:

  1. Square root requires x−2≥0  ⟹  x≥2x - 2 \ge 0 \implies x \ge 2.
  2. Denominator requires x−5≠0  ⟹  x≠5x - 5 \ne 0 \implies x \ne 5.
  3. Combine: [2,5)∪(5,∞)[2, 5) \cup (5, \infty).

Example 2 (Intermediate): Finding an Inverse Function

Find f−1(x)f^{-1}(x) for f(x)=3x−7f(x) = 3x - 7:

  1. Write y=3x−7y = 3x - 7.
  2. Swap xx and yy: x=3y−7x = 3y - 7.
  3. Solve for yy: 3y=x+7  ⟹  f−1(x)=x+733y = x + 7 \implies f^{-1}(x) = \mathbf{\dfrac{x + 7}{3}}.

Common Misconceptions

  • Writing f−1(x)f^{-1}(x) as 1f(x)\frac{1}{f(x)}: The −1-1 superscript on a function name denotes the inverse function, never the reciprocal!
  • Shifting f(x+3)f(x + 3) to the right: f(x+3)=f(x−(−3))f(x + 3) = f(x - (-3)) shifts left 33 units.

Practice Problems

Common Questions

Frequently Asked Questions