Review of Functions
1.1 Review of Functions
🧭 Overview
🧠 One-sentence thesis
Functions are special relations that assign each input exactly one output, and understanding their notation, domain, range, graphical representation, and algebraic properties is essential for studying calculus.
📌 Key points (3–5)
- What a function is: A relation where each input from the domain maps to exactly one output in the range.
- How to represent functions: Functions can be described using tables, graphs, or algebraic formulas, and each representation reveals different aspects of the function's behavior.
- Domain and range: The domain is the set of all valid inputs; the range is the set of all possible outputs.
- Common confusion: Domain vs. natural domain—when no domain is specified, the natural domain includes all real numbers for which the function produces a real output.
- Combining and composing functions: New functions can be created by adding, subtracting, multiplying, dividing, or composing existing functions, and the order of composition matters.
📐 What is a function?
📐 Definition and terminology
Function: A function f consists of a set of inputs (the domain), a set of outputs (the range), and a rule for assigning each input to exactly one output.
- The input is also called the independent variable (often denoted x).
- The output is also called the dependent variable (often denoted y), because it depends on x.
- Function notation: We write y = f(x), read as "y equals f of x."
Example: For the squaring function f(x) = x squared, the input x = 3 is assigned to the output 9. Every nonnegative real number is in the range, but negative numbers are not (since no real number squared gives a negative result).
🔍 How functions differ from general relations
Relation: A set of ordered pairs (x, y) where x is from set A and y is from set B.
- A function is a special type of relation: each element of the first set is related to exactly one element of the second set.
- Don't confuse: A relation can map one input to multiple outputs, but a function cannot.
🗂️ Domain and range
🗂️ Finding the domain
- The domain is the set of all inputs for which the function is defined.
- When a function is given by a formula with no specified domain, the natural domain is the set of all real numbers for which the formula produces a real output.
Example:
- For f(x) = x squared, the domain is all real numbers (negative infinity to positive infinity).
- For f(x) = square root of x, the domain is all nonnegative real numbers, because the square root of a negative number is not real.
🗂️ Finding the range
- The range is the set of all possible outputs.
- To find the range, determine which values y can be achieved by some input x in the domain.
Example: For f(x) = (x − 4) squared + 5, since (x − 4) squared is always greater than or equal to 0, the range is all y greater than or equal to 5.
🗂️ Set-builder and interval notation
| Notation type | Example | Meaning |
|---|---|---|
| Set-builder | {x | 1 < x < 5} | The set of all x such that x is greater than 1 and less than 5 |
| Interval (open) | (1, 5) | All numbers between 1 and 5, not including the endpoints |
| Interval (closed) | [1, 5] | All numbers between 1 and 5, including both endpoints |
| Half-open | [0, positive infinity) | All nonnegative real numbers; positive infinity is symbolic, not a real number |
📊 Representing functions
📊 Tables of values
- Functions can be described by listing input-output pairs in a table.
- Example: Temperature as a function of time—record temperature every hour and list the pairs (time, temperature).
- Tables are useful for real-world data but do not show the full picture without graphing.
📊 Graphs
Graph of a function: The set of all points (x, f(x)*) in the coordinate plane where x is in the domain.
- Graphing reveals the overall behavior of the function (increasing, decreasing, constant).
- Connecting the dots in a graph can help visualize patterns, though this assumes the function behaves similarly between recorded points.
Vertical line test:
- A set of points represents a function if and only if every vertical line intersects the graph at most once.
- If any vertical line intersects more than once, the relation is not a function.
📊 Algebraic formulas
- Functions are often given by explicit formulas, such as A(r) = pi times r squared (area of a circle).
- Formulas allow precise calculation of function values and are often graphed to visualize behavior.
🔢 Evaluating and analyzing functions
🔢 Evaluating functions
- To evaluate f(x) at a specific input, substitute the input into the formula.
Example: For f(x) = 3x squared + 2x − 1:
- f(−2) = 3 times (−2) squared + 2 times (−2) − 1 = 12 − 4 − 1 = 7
- f(a + h) = 3(a + h) squared + 2(a + h) − 1 (expand and simplify)
🔢 Zeros and intercepts
Zeros of a function: Values of x where f(x) = 0; these are the x-intercepts of the graph.
y-intercept: The point (0, f(0)), where the graph crosses the y-axis (if x = 0 is in the domain).
- A function has at most one y-intercept (since each input maps to exactly one output).
- A function may have zero, one, or many x-intercepts.
Example: For f(x) = −4x + 2:
- Zero: Solve −4x + 2 = 0 → x = 1/2
- y-intercept: (0, 2)
🔢 Increasing and decreasing functions
Increasing on interval I: For all x₁, x₂ in I, if x₁ < x₂, then f(x₁) ≤ f(x₂).
Decreasing on interval I: For all x₁, x₂ in I, if x₁ < x₂, then f(x₁) ≥ f(x₂).
- A function can be increasing on some intervals and decreasing on others.
Example: The temperature function may decrease from midnight to 4 a.m., increase from 4 a.m. to 2 p.m., then decrease again from 2 p.m. to 11 p.m.
🔗 Combining functions
🔗 Arithmetic operations on functions
Given two functions f and g, we can define:
| Operation | Formula | Domain restriction |
|---|---|---|
| Sum | (f + g)(x) = f(x) + g(x) | Domain is the intersection of the domains of f and g |
| Difference | (f − g)(x) = f(x) − g(x) | Domain is the intersection of the domains of f and g |
| Product | (f · g)(x) = f(x) · g(x) | Domain is the intersection of the domains of f and g |
| Quotient | (f / g)(x) = f(x) / g(x) | Domain excludes points where g(x) = 0 |
Example: For f(x) = 2x − 3 and g(x) = x squared − 1:
- (f + g)(x) = x squared + 2x − 4, domain: all real numbers
- (f / g)(x) = (2x − 3) / (x squared − 1), domain: all x except x = ±1
🔗 Function composition
Composite function (g ∘ f)(x): The function defined by (g ∘ f)(x) = g(f(x)).
- First apply f to x, then apply g to the result.
- The domain of g ∘ f is the set of all x in the domain of f such that f(x) is in the domain of g.
- Order matters: In general, (f ∘ g)(x) ≠ (g ∘ f)(x).
Example: For f(x) = x squared + 1 and g(x) = 1/x:
- (g ∘ f)(x) = g(f(x)) = 1/(x squared + 1), domain: all real numbers
- (f ∘ g)(x) = f(g(x)) = (1/x) squared + 1, domain: all x ≠ 0
Don't confuse: Composition is not the same as multiplication; (g ∘ f)(x) means "g of f of x," not "g times f."
🔄 Symmetry properties
🔄 Even functions
Even function: A function f is even if f(−x) = f(x) for all x in the domain.
- Even functions are symmetric about the y-axis.
- If the point (x, y) is on the graph, then (−x, y) is also on the graph.
Example: f(x) = x squared is even because f(−x) = (−x) squared = x squared = f(x).
🔄 Odd functions
Odd function: A function f is odd if f(−x) = −f(x) for all x in the domain.
- Odd functions are symmetric about the origin.
- If the point (x, y) is on the graph, then (−x, −y) is also on the graph.
Example: f(x) = x cubed is odd because f(−x) = (−x) cubed = −x cubed = −f(x).
🔄 Neither even nor odd
- Many functions are neither even nor odd.
Example: f(x) = 2x to the fifth − 4x + 5 is neither even nor odd, because f(−x) ≠ f(x) and f(−x) ≠ −f(x).
🔄 Absolute value function
Absolute value function: f(x) = |x| = { −x if x < 0; x if x ≥ 0 }
- The absolute value function makes all nonzero inputs positive; |0| = 0.
- It is symmetric about the y-axis, so it is an even function.
- Domain: all real numbers; Range: all y ≥ 0.
Example: For f(x) = 2|x − 3| + 4:
- Domain: all real numbers
- Range: all y ≥ 4 (since |x − 3| ≥ 0, the minimum value is 4)
🧮 Piecewise-defined functions
🧮 What they are
Piecewise-defined function: A function defined by different formulas on different parts of its domain.
Example: f(x) = { 3x + 1 if x ≥ 2; x squared if x < 2 }
- For x ≥ 2, use the formula 3x + 1.
- For x < 2, use the formula x squared.
🧮 Evaluating piecewise functions
- Determine which piece of the domain the input belongs to, then use the corresponding formula.
Example: For the function above:
- f(5) = 3(5) + 1 = 16 (since 5 ≥ 2)
- f(−1) = (−1) squared = 1 (since −1 < 2)