Study guide
3.1 Function Definition, Domain, Range, and Piecewise Functions
CLEP Precalculus Exam
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: Introduction & Exam Overview
1.1 About the CLEP Precalculus Exam
2 Chapter 2: Algebraic Expressions, Equations, and Inequalities
2.1 Linear Equations, Inequalities, and Systems 2.2 Polynomial Expressions, Factoring, and Higher-Degree Equations 2.3 Rational and Radical Equations and Inequalities 2.4 Non-Linear Systems and Absolute Value Equations
3 Chapter 3: Functions: Concept, Properties, and Operations
3.1 Function Definition, Domain, Range, and Piecewise Functions 3.2 Function Symmetry, Extrema, and Operations 3.3 Inverse Functions and Function Transformations 3.4 Graphical and Tabular Representations of Functions 3.5 Absolute Value and Square Root Function Families
4 Chapter 4: Polynomial and Rational Functions
4.1 Linear and Quadratic Functions 4.2 Polynomial Functions of Higher Degree 4.3 Rational Functions and Asymptotes
5 Chapter 5: Exponential and Logarithmic Functions
5.1 Exponential Functions and Their Graphs 5.2 Logarithmic Functions and Properties 5.3 Exponential and Logarithmic Equations
6 Chapter 6: Analytic Geometry and Conic Sections
6.1 Coordinate Geometry: Lines, Distance, Midpoint, and Circles 6.2 Conic Sections: Parabolas, Ellipses, and Hyperbolas 6.3 Polar Coordinates and Parametric Equations
7 Chapter 7: Trigonometry and Its Applications
7.1 Angles, Radian Measure, and Right Triangle Trigonometry 7.2 Unit Circle and Trigonometric Function Graphs 7.3 Trigonometric Identities 7.4 Trigonometric Equations 7.5 Inverse Trigonometric Functions 7.6 Law of Sines, Law of Cosines, and Triangle Applications
8 Chapter 8: Functions as Mathematical Models
8.1 Linear and Polynomial Modeling 8.2 Exponential and Logarithmic Modeling 8.3 Periodic and Harmonic Motion Modeling
3.1 Function Definition, Domain, Range, and Piecewise Functions
Key Takeaways Explain This Topic AI
A relation is a function if and only if each input x in the domain maps to exactly one output y in the range (passing the Vertical Line Test graphically).
The domain of an algebraic function is the set of all real numbers except those that cause division by zero, negative radicands under even roots, or non-positive arguments in logarithms.
The range of a function represents the complete set of output values y = f(x), determined algebraically through inequality analysis or graphically by observing vertical span.
Piecewise functions are evaluated by identifying which interval rule applies to the given input x, paying special attention to strict vs. non-strict inequalities at boundary points.
Last updated: August 2026
- 3.1 Function Definition, Domain, Range, and Piecewise Functions
- 1. Fundamentals of Relations and Functions
In precalculus and higher-level mathematics, a relation is any set of ordered pairs ( x , y ) (x, y) ( x , y ) that associates elements from a domain set X X X to a range set Y Y Y . A function f f f is a special type of relation in which each input element x x x in the domain is paired with exactly one output element y y y in the range.
We express this relationship using function notation: y = f ( x ) y = f(x) y = f ( x )
where x x x represents the independent variable (the input) and y y y represents the dependent variable (the output). Domain (Inputs x) ---> [ Function f ] ---> Range (Outputs y = f(x))
The Vertical Line Test (VLT)
Graphically, a curve in the Cartesian coordinate plane represents a function of x x x if and only if no vertical line intersects the graph at more than one point . If a vertical line touches the graph at two or more points, then a single input x x x corresponds to multiple outputs y y y , violating the definition of a function.
Relation Type Graphical Feature Function? Example
Function Every vertical line intersects at most once Yes f ( x ) = x 2 − 4 x + 3 f(x) = x^2 - 4x + 3 f ( x ) = x 2 − 4 x + 3 , f ( x ) = ∣ x ∣ f(x) = \vert x\vert f ( x ) = ∣ x ∣
Non-Function At least one vertical line intersects twice or more No Circle x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 , Sideways parabola x = y 2 x = y^2 x = y 2
2. Algebraic Determination of Domain
The domain of a real-valued function f ( x ) f(x) f ( x ) is the set of all real numbers x x x for which the expression f ( x ) f(x) f ( x ) evaluates to a real number. Unless an explicit restricted domain is stated in a problem context, we assume the domain is the implied (natural) domain —the largest subset of R \mathbb{R} R for which the formula is mathematically valid.
To find the domain algebraically, search for the three primary domain restrictions in algebra:
Three Core Domain Restriction Rules
Rational Expressions (Division by Zero): If f ( x ) = g ( x ) h ( x ) f(x) = \frac{g(x)}{h(x)} f ( x ) = h ( x ) g ( x ) , set the denominator unequal to zero: h ( x ) ≠ 0 h(x) \neq 0 h ( x ) = 0 .
Even Radicals (Negative Radicands): If f ( x ) = g ( x ) n f(x) = \sqrt[n]{g(x)} f ( x ) = n g ( x ) where n n n is an even integer ( 2 , 4 , 6 , … 2, 4, 6, \dots 2 , 4 , 6 , … ), set the radicand non-negative: g ( x ) ≥ 0 g(x) \ge 0 g ( x ) ≥ 0 . (Note: odd roots like x 3 \sqrt[3]{x} 3 x accept all real numbers).
Logarithmic Arguments (Non-positive Inputs): If f ( x ) = log b ( g ( x ) ) f(x) = \log_b(g(x)) f ( x ) = lo g b ( g ( x )) , set the argument strictly positive: g ( x ) > 0 g(x) > 0 g ( x ) > 0 .
Combining Multiple Restrictions
When a function contains combinations of fractions, roots, and logarithms, the domain is the intersection (overlap) of the intervals satisfying all individual constraints.
Worked Example 2.1A: Determining Domain of a Complex Function
Determine the domain of the function f ( x ) = 3 x + 12 x 2 − 4 x − 5 f(x) = \frac{\sqrt{3x + 12}}{x^2 - 4x - 5} f ( x ) = x 2 − 4 x − 5 3 x + 12 .
Step 1: Set up the even root inequality. The radicand under the square root must be non-negative: 3 x + 12 ≥ 0 ⟹ 3 x ≥ − 12 ⟹ x ≥ − 4 3x + 12 \ge 0 \implies 3x \ge -12 \implies x \ge -4 3 x + 12 ≥ 0 ⟹ 3 x ≥ − 12 ⟹ x ≥ − 4
In interval form, this is [ − 4 , ∞ ) [-4, \infty) [ − 4 , ∞ ) .
Step 2: Set up the rational denominator restriction. The denominator cannot equal zero: x 2 − 4 x − 5 ≠ 0 ⟹ ( x − 5 ) ( x + 1 ) ≠ 0 ⟹ x ≠ 5 and x ≠ − 1 x^2 - 4x - 5 \neq 0 \implies (x - 5)(x + 1) \neq 0 \implies x \neq 5 \text{ and } x \neq -1 x 2 − 4 x − 5 = 0 ⟹ ( x − 5 ) ( x + 1 ) = 0 ⟹ x = 5 and x = − 1
Step 3: Intersect the restrictions. We begin with x ≥ − 4 x \ge -4 x ≥ − 4 and remove the excluded points x = − 1 x = -1 x = − 1 and x = 5 x = 5 x = 5 . Domain: [ − 4 , − 1 ) ∪ ( − 1 , 5 ) ∪ ( 5 , ∞ ) \text{Domain: } [-4, -1) \cup (-1, 5) \cup (5, \infty) Domain: [ − 4 , − 1 ) ∪ ( − 1 , 5 ) ∪ ( 5 , ∞ )
3. Determining the Range of a Function
The range of a function y = f ( x ) y = f(x) y = f ( x ) is the set of all real values y y y produced as x x x varies over the entire domain. Determining range algebraically requires analyzing output bounds or solving for x x x in terms of y y y .
Algebraic Range Techniques
Solving for x x x (Rational Functions): To find the range of a linear rational function y = a x + b c x + d y = \frac{ax+b}{cx+d} y = c x + d a x + b , solve the equation for x x x and determine which y y y -values make x x x a real number.
Analysis of Non-Negative Terms: Square terms ( x 2 ≥ 0 x^2 \ge 0 x 2 ≥ 0 ), absolute values ( ∣ x ∣ ≥ 0 |x| \ge 0 ∣ x ∣ ≥ 0 ), and square roots ( x ≥ 0 \sqrt{x} \ge 0 x ≥ 0 ) establish natural lower bounds on outputs.
Worked Example 2.1B: Range of a Rational Function
Find the range of f ( x ) = 5 x + 2 x − 3 f(x) = \frac{5x + 2}{x - 3} f ( x ) = x − 3 5 x + 2 .
Step 1: Set y = f ( x ) y = f(x) y = f ( x ) and clear fractions. y = 5 x + 2 x − 3 ⟹ y ( x − 3 ) = 5 x + 2 ⟹ y x − 3 y = 5 x + 2 y = \frac{5x + 2}{x - 3} \implies y(x - 3) = 5x + 2 \implies yx - 3y = 5x + 2 y = x − 3 5 x + 2 ⟹ y ( x − 3 ) = 5 x + 2 ⟹ y x − 3 y = 5 x + 2
Step 2: Isolate x x x terms on one side. y x − 5 x = 3 y + 2 ⟹ x ( y − 5 ) = 3 y + 2 ⟹ x = 3 y + 2 y − 5 yx - 5x = 3y + 2 \implies x(y - 5) = 3y + 2 \implies x = \frac{3y + 2}{y - 5} y x − 5 x = 3 y + 2 ⟹ x ( y − 5 ) = 3 y + 2 ⟹ x = y − 5 3 y + 2
Step 3: Identify restrictions on y y y . For x x x to exist as a real number, the denominator y − 5 y - 5 y − 5 cannot be zero. Thus, y ≠ 5 y \neq 5 y = 5 . Range: ( − ∞ , 5 ) ∪ ( 5 , ∞ ) \text{Range: } (-\infty, 5) \cup (5, \infty) Range: ( − ∞ , 5 ) ∪ ( 5 , ∞ )
4. Piecewise-Defined Functions
A piecewise-defined function is a function defined by different sub-formulas applied to distinct sub-domains (intervals) of input values: f ( x ) = { formula 1 if x ∈ interval 1 formula 2 if x ∈ interval 2 formula 3 if x ∈ interval 3 f(x) = \begin{cases} \text{formula}_1 & \text{if } x \in \text{interval}_1 \\ \text{formula}_2 & \text{if } x \in \text{interval}_2 \\ \text{formula}_3 & \text{if } x \in \text{interval}_3 \end{cases} f ( x ) = ⎩ ⎨ ⎧ formula 1 formula 2 formula 3 if x ∈ interval 1 if x ∈ interval 2 if x ∈ interval 3
Evaluating Piecewise Functions
To evaluate f ( c ) f(c) f ( c ) for a constant c c c :
Locate which interval contains x = c x = c x = c .
Substitute x = c x = c x = c only into the formula designated for that specific interval.
Worked Example 2.1C: Evaluating and Analyzing a Piecewise Function
Given g ( x ) = { 4 − x 2 if x < 1 2 x + 1 if 1 ≤ x ≤ 4 18 x if x > 4 g(x) = \begin{cases} 4 - x^2 & \text{if } x < 1 \\ 2x + 1 & \text{if } 1 \le x \le 4 \\ \frac{18}{x} & \text{if } x > 4 \end{cases} g ( x ) = ⎩ ⎨ ⎧ 4 − x 2 2 x + 1 x 18 if x < 1 if 1 ≤ x ≤ 4 if x > 4
Evaluate: (a) g ( − 3 ) g(-3) g ( − 3 ) , (b) g ( 1 ) g(1) g ( 1 ) , (c) g ( 6 ) g(6) g ( 6 ) .
For g ( − 3 ) g(-3) g ( − 3 ) : Since − 3 < 1 -3 < 1 − 3 < 1 , use formula 1: g ( − 3 ) = 4 − ( − 3 ) 2 = 4 − 9 = − 5 g(-3) = 4 - (-3)^2 = 4 - 9 = -5 g ( − 3 ) = 4 − ( − 3 ) 2 = 4 − 9 = − 5 .
For g ( 1 ) g(1) g ( 1 ) : Since 1 1 1 satisfies 1 ≤ x ≤ 4 1 \le x \le 4 1 ≤ x ≤ 4 , use formula 2: g ( 1 ) = 2 ( 1 ) + 1 = 3 g(1) = 2(1) + 1 = 3 g ( 1 ) = 2 ( 1 ) + 1 = 3 .
For g ( 6 ) g(6) g ( 6 ) : Since 6 > 4 6 > 4 6 > 4 , use formula 3: g ( 6 ) = 18 6 = 3 g(6) = \frac{18}{6} = 3 g ( 6 ) = 6 18 = 3 .
5. CLEP Precalculus Exam Traps
Common Trap Incorrect Assumption Correct Mathematical Rule
Boundary Point Misinterpretation Evaluating a boundary point in the wrong inequality Check whether boundary signs are strict ( < < < or > > > ) or non-strict ( ≤ \le ≤ or ≥ \ge ≥ ).
Even Root Denominators Setting g ( x ) ≥ 0 g(x) \ge 0 g ( x ) ≥ 0 for f ( x ) = 1 g ( x ) f(x) = \frac{1}{\sqrt{g(x)}} f ( x ) = g ( x ) 1 If an even root is in the denominator, set g ( x ) > 0 g(x) > 0 g ( x ) > 0 strictly (excluding zero).
Canceling Discontinuities Claiming f ( x ) = x 2 − 9 x − 3 f(x) = \frac{x^2-9}{x-3} f ( x ) = x − 3 x 2 − 9 has domain R \mathbb{R} R because it simplifies to x + 3 x+3 x + 3 Domain must be determined before simplifying algebraic expressions ( x ≠ 3 x \neq 3 x = 3 ).