Functions and Graphs

Learning Objectives

  • Define functions, domain, and range.
  • Apply the Vertical Line Test to identify functions.
  • Understand one-to-one, inverse, piecewise, and composite functions.
  • Identify even and odd function symmetry.
  • Apply transformations to base functions.
  • Model proportional relationships using variation equations.

Function Definition

A function is a fundamental concept in mathematics describing a relationship between two sets: the input (domain) and the output (range). The defining characteristic of a function is that every input maps to exactly one output.

Domain

The set of all possible xx values (inputs) for which the function is defined.

Range

The set of all possible resulting yy values (outputs).

Vertical Line Test

A graph represents a function if and only if no vertical line intersects the graph at more than one point. This ensures that each input has exactly one output.

Core Concepts

Understanding the domain and range of a function is critical for graphing and evaluating inputs properly.

Interactive Simulation

Interactive visualizer to explore the relationship between inputs and outputs, and see how domain restrictions affect the graph.

Domain and Range Visualizer

Drag the blue point to explore inputs (Domain, x) and their resulting outputs (Range, y) for the function y = -0.5(x - 2)² + 4.

x = 2.0
y = 4.0
Input (Domain)
2.00
Output (Range)
4.00

One-to-One (Injective) Function

A function where each output yy comes from exactly one input xx. This type of function passes the Horizontal Line Test.

Inverse Functions

If a function ff is one-to-one, it has an inverse f−1f^{-1} such that f(f−1(x))=xf(f^{-1}(x)) = x and f−1(f(x))=xf^{-1}(f(x)) = x.

Piecewise Functions

Functions that are defined by different mathematical formulas for different parts of their domain.

Function Classifications

Functions are classified based on their mapping properties and how they are defined across their domain.

Piecewise Function Example

An example of a piecewise function where the rule changes based on whether the input xx is negative or non-negative:

f(x)={x+1if x<0x2if x≥0f(x) = \begin{cases} x + 1 & \text{if } x \lt 0 \\ x^2 & \text{if } x \ge 0 \end{cases}

Composite Functions

Function composition involves applying one function to the results of another, representing chaining processes together.

  • Notation: Written as (f∘g)(x)(f \circ g)(x) or f(g(x))f(g(x)). It is read as "ff composed with gg" or "ff of gg of xx".
  • Order of Operations: The inner function is evaluated first. The output of g(x)g(x) becomes the new input for f(x)f(x). Generally, function composition is not commutative, meaning f(g(x))≠g(f(x))f(g(x)) \neq g(f(x)).
  • Domain Restriction: The domain of f(g(x))f(g(x)) only includes xx values that are in the domain of g(x)g(x), AND for which the output g(x)g(x) falls within the domain of f(x)f(x).

Symmetry: Even and Odd Functions

Functions can exhibit specific symmetrical properties:

  • Even Function: Symmetric about the y-axis. Mathematically, it satisfies the condition f(−x)=f(x)f(-x) = f(x).
  • Odd Function: Symmetric about the origin. Mathematically, it satisfies the condition f(−x)=−f(x)f(-x) = -f(x).

Function Transformations

Base functions can be shifted, stretched, or reflected using a general transformation formula.

General Transformation Formula

Describes how a base function f(x)f(x) is shifted, stretched, or reflected to create a new function g(x)g(x).

g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k

Variables

SymbolDescriptionUnit
g(x)g(x)The transformed function-
f(x)f(x)The original base function-
aaVertical stretch/compression and reflection over x-axis-
bbHorizontal stretch/compression and reflection over y-axis-
hhHorizontal shift (translation right or left)-
kkVertical shift (translation up or down)-

Parameter Effects on Transformations

  • aa (Vertical Scale): If ∣a∣>1|a| > 1, the graph stretches vertically. If a<0a \lt 0, it reflects over the x-axis.
  • bb (Horizontal Scale): If ∣b∣>1|b| > 1, the graph compresses horizontally by a factor of 1/b1/b.
  • hh (Horizontal Shift): Shifts the graph to the right if h>0h > 0.
  • kk (Vertical Shift): Shifts the graph up if k>0k > 0.

Interactive Simulation

Explore the effects of function transformations interactively. Adjust parameters aa, bb, hh, and kk to see vertical and horizontal scaling, reflections, and shifts on the parent function y=f(x)y = f(x).

Function Transformations

General Form: g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k

g(x)=x2g(x) = x^2

Scaling & Reflection

a (Vertical Stretch)1
b (Horizontal Stretch)1

Translations

h (Horizontal Shift)0
k (Vertical Shift)0
Original: f(x)=x2f(x) = x^2
Transformed: g(x)g(x)
xy

Direct, Inverse, and Joint Variation

Variation equations describe how quantities relate to one another proportionally, which is fundamental in engineering modeling.

  • Direct Variation: Represented by the equation y=kxy = kx. As xx increases, yy increases proportionally.
  • Inverse Variation: Represented by the equation y=kxy = \frac{k}{x}. As xx increases, yy decreases.
  • Joint Variation: Represented by an equation like z=kxyz = kxy. A quantity varies directly with multiple other variables.

Domain Exclusions

When checking for valid domains, always ensure you avoid division by zero and taking the even root of a negative number, as these are the most common restrictions leading to undefined outputs or complex numbers.

Key Takeaways
  • A function requires that every input maps to exactly one output, verified by the Vertical Line Test.
  • Domain restrictions primarily arise from avoiding division by zero and avoiding even roots of negative numbers.
  • Inverse functions are found by swapping xx and yy, which geometrically reflects the graph across the line y=xy = x.
  • Function transformations shift and scale graphs: inner modifications affect horizontal position, while outer modifications affect vertical position.
  • Even functions are symmetric about the y-axis (f(−x)=f(x)f(-x) = f(x)) and odd functions are symmetric about the origin (f(−x)=−f(x)f(-x) = -f(x)).