Precalculus Functions and Graphs: Domain, Range, Transformations, Inverse Functions and Asymptotes
Functions are one of the central ideas in precalculus.
They connect equations, tables, graphs and real world situations.
If you understand how a function behaves, you can often predict the shape of its graph before calculating many points.
This is why functions and graphs appear throughout Algebra 2, Precalculus and AP Precalculus.
They also connect directly to topics such as polynomial functions, rational functions, exponential functions, logarithms, transformations, composition and inverse functions.
The most useful way to study a function is not to memorize every graph separately.
Instead, ask the same questions every time.
Where can the function exist?
What values can it produce?
Where does it cross the axes?
Does it have symmetry?
What happens at the ends?
Are there holes or asymptotes?
Has the graph been shifted, stretched or reflected?
This seven point check turns a complicated looking equation into a collection of information you can use.
The Seven Point Function Check
When you meet a new function, check these seven features:
Domain
Range
Intercepts
Symmetry
End behavior
Holes and asymptotes
Transformations
You will not always need every point.
But learning to check them systematically makes graphing much easier.
What Is a Function?
A function is a rule that assigns exactly one output to each allowed input.
For example,
f(x) = 2x + 3
means that every permitted value of x produces exactly one value of f(x).
If x = 4,
f(4) = 2(4) + 3 = 11
So the input is 4 and the output is 11.
The notation f(x) does not mean f multiplied by x.
It represents the output of the function f when the input is x.
The Vertical Line Test
A graph represents a function of x if every vertical line intersects the graph at most once.
If a vertical line crosses the graph twice, the same x-value would have two different y-values.
That violates the definition of a function.
The Horizontal Line Test
The horizontal line test answers a different question.
It helps determine whether a function is one-to-one.
If every horizontal line intersects the graph at most once, the function is one-to-one.
A one-to-one function can have an inverse function on its stated domain.
For example,
f(x) = x²
is not one-to-one when its domain is all real numbers because
f(2) = 4
and
f(−2) = 4.
However, if the domain is restricted to x ≥ 0, the function becomes one-to-one.
Domain of a Function
The domain is the set of all allowed input values.
Before calculating a graph, check whether the formula places restrictions on x.
Three restrictions appear especially often.
1. A denominator cannot equal zero
For
f(x) = 1/(x − 4)
we cannot use x = 4.
Therefore,
x ≠ 4.
2. An even root cannot contain a negative number
For
f(x) = √(x − 3)
we need
x − 3 ≥ 0.
Therefore,
x ≥ 3.
3. A logarithm must have a positive argument
For
f(x) = ln(x − 2)
we need
x − 2 > 0.
Therefore,
x > 2.
Notice the difference.
A square root allows zero.
A logarithm does not.
Worked Example: Finding the Domain
Consider
f(x) = √(x − 3)/(x − 5)
The square root requires
x − 3 ≥ 0
so
x ≥ 3.
The denominator requires
x − 5 ≠ 0
so
x ≠ 5.
Therefore the domain is
[3, 5) ∪ (5, ∞).
The point x = 5 is excluded even though values on both sides of it are allowed.
That missing value will become important when we study holes and asymptotes.
Range of a Function
The range is the set of output values produced by the function.
Finding the range can be more difficult than finding the domain.
For
f(x) = x² + 4
the smallest possible value of x² is 0.
Therefore the smallest output is 4.
So the range is
y ≥ 4.
The graph has a minimum point at
(0, 4).
For many functions, the graph gives a fast way to determine the range.
Look for:
• minimum values
• maximum values
• asymptotes
• restricted intervals
• endpoints
• gaps in the graph
Do not assume that the range is all real numbers just because the domain is all real numbers.
Domain vs Range
This distinction is worth memorizing.
Domain = possible inputs
Range = actual outputs
For example, if
f(x) = x²
with domain consisting of all real numbers, then
Domain:
all real numbers
Range:
y ≥ 0
There is another concept called the codomain.
The codomain is the set in which the outputs are defined to lie.
The range is the set of values the function actually produces.
These two sets do not necessarily have to be the same.
Finding Intercepts
Intercepts give you useful anchor points for graphing.
Finding the y-intercept
Set
x = 0.
For
f(x) = x² − 5x + 6
we get
f(0) = 6.
Therefore the y-intercept is
(0, 6).
Finding x-intercepts
Set
f(x) = 0.
For
x² − 5x + 6 = 0
factor:
(x − 2)(x − 3) = 0
Therefore,
x = 2
or
x = 3.
The x-intercepts are
(2, 0)
and
(3, 0).
These points are often extremely useful when sketching a graph.
Symmetry of Functions
Symmetry can tell you a great deal about a graph before you calculate many points.
Even Functions
A function is even if
f(−x) = f(x).
Its graph has symmetry about the y-axis.
Examples include
f(x) = x²
and
f(x) = |x|.
For example,
f(x) = x⁴ − 3x²
is even because
f(−x)
= (−x)⁴ − 3(−x)²
= x⁴ − 3x²
= f(x).
Odd Functions
A function is odd if
f(−x) = −f(x).
Its graph has rotational symmetry of 180° about the origin.
Examples include
f(x) = x³
and
f(x) = 1/x.
For
f(x) = x³ − x,
f(−x)
= −x³ + x
= −(x³ − x).
Therefore the function is odd.
End Behavior of Polynomial Functions
End behavior describes what happens to the graph as x becomes very large or very negative.
For polynomial functions, the leading term usually determines the end behavior.
Even Degree, Positive Leading Coefficient
Both ends rise.
Example:
f(x) = x⁴
As
x → ∞,
f(x) → ∞.
As
x → −∞,
f(x) → ∞.
Even Degree, Negative Leading Coefficient
Both ends fall.
Example:
f(x) = −x⁴.
Odd Degree, Positive Leading Coefficient
The left end falls and the right end rises.
Example:
f(x) = x³.
Odd Degree, Negative Leading Coefficient
The left end rises and the right end falls.
Example:
f(x) = −x³.
This four case pattern is worth knowing because it lets you predict the overall direction of many polynomial graphs immediately.
Parent Functions You Should Know
Most precalculus graphing problems become easier when you recognize the basic parent function.
Here are some important examples.
| Parent function | Basic shape | Important feature |
|---|---|---|
| f(x) = x | Line | Domain and range are all real numbers |
| f(x) = x² | Parabola | Vertex at (0, 0) |
| f(x) = x³ | Cubic curve | Odd symmetry |
| f(x) = | x | |
| f(x) = √x | Square root curve | Domain x ≥ 0 |
| f(x) = 1/x | Reciprocal curve | Asymptotes x = 0 and y = 0 |
| f(x) = bˣ | Exponential curve | Passes through (0, 1) |
| f(x) = logᵦx | Logarithmic curve | Passes through (1, 0) |
If you know the parent graph, transformations become much easier.
Function Transformations
A large number of graph transformation questions can be represented by
y = a f(b(x − h)) + k.
Each part changes the graph in a particular way.
The Role of a
The value of a affects the vertical direction and scale.
If
|a| > 1,
the graph is vertically stretched.
If
0 < |a| < 1,
the graph is vertically compressed.
If
a < 0,
the graph is reflected across the x-axis.
The Role of b
The value of b affects the horizontal scale.
The horizontal scale factor is
1/|b|.
A negative b also introduces a reflection across the y-axis.
The Role of h
The value of h moves the graph horizontally.
In
f(x − h),
the graph moves right h units.
In
f(x + h),
the graph moves left h units.
This is one of the most common sources of mistakes.
The Role of k
The value of k moves the graph vertically.
In
f(x) + k,
the graph moves up k units when k is positive.
Why Inside Transformations Feel Backward
Consider
f(x + 3).
Many students initially think that the graph moves right 3 units.
It actually moves left 3 units.
A useful way to understand this is to ask when the expression inside the function becomes zero.
For
x + 3 = 0,
x = −3.
So the original reference point at x = 0 moves to x = −3.
Therefore,
f(x + 3)
means a shift left 3 units.
Worked Transformation Example
Suppose
f(x) = x²
and
g(x) = −2(x + 3)² + 1.
Starting from the parent parabola:
y = x²
the graph is:
Shifted left 3 units.
Vertically stretched by a factor of 2.
Reflected across the x-axis.
Shifted up 1 unit.
Therefore the vertex is
(−3, 1).
Because the coefficient of the squared term is negative, the parabola opens downward.
This gives you the shape and location without plotting a long table of values.
Composite Functions
Composite functions combine functions.
The notation
f(g(x))
means that g is applied first and f is applied second.
Think of it as two machines connected together.
Input
→ g
→ f
→ output
For example,
f(x) = 2x + 3
and
g(x) = x².
Then
f(g(x))
= f(x²)
= 2x² + 3.
But
g(f(x))
= g(2x + 3)
= (2x + 3)²
= 4x² + 12x + 9.
Therefore,
f(g(x)) ≠ g(f(x))
in general.
The order matters.
This is an important idea in precalculus because functions are frequently represented algebraically, graphically and through real world models. AP Precalculus specifically includes constructing functions through composition and inverse functions.
Inverse Functions
An inverse function reverses the original function.
If
f(5) = 13,
then the inverse must satisfy
f⁻¹(13) = 5.
To find an inverse algebraically:
Write y = f(x).
Swap x and y.
Solve for y.
Replace y with f⁻¹(x).
Example
Let
f(x) = 2x + 3.
Write
y = 2x + 3.
Swap x and y:
x = 2y + 3.
Solve for y:
x − 3 = 2y
y = (x − 3)/2.
Therefore,
f⁻¹(x) = (x − 3)/2.
How to Check an Inverse Function
A quick check is to compose the function with its inverse.
You should get
f(f⁻¹(x)) = x
and, where the domains permit,
f⁻¹(f(x)) = x.
For the example above,
f⁻¹(x) = (x − 3)/2.
Then
f(f⁻¹(x))
= 2((x − 3)/2) + 3
= x − 3 + 3
= x.
The inverse works.
Inverse Functions and the Line y = x
The graphs of a function and its inverse are reflections of one another across
y = x.
If
(a, b)
is on the graph of f,
then
(b, a)
is on the graph of f⁻¹.
This explains why the domain and range switch.
The domain of f becomes the range of f⁻¹.
The range of f becomes the domain of f⁻¹.
When Does an Inverse Exist?
A function must be one-to-one on its stated domain for its inverse to also be a function.
Consider
f(x) = x².
Over all real numbers, it fails the horizontal line test.
For example,
f(2) = 4
and
f(−2) = 4.
So it does not have an inverse function over all real numbers.
But if we restrict the domain to
x ≥ 0,
the function becomes one-to-one.
Its inverse is then
f⁻¹(x) = √x.
Rational Functions: Holes and Asymptotes
Rational functions deserve special attention because their graphs can contain breaks.
Consider
f(x) = (x² − 4)/(x² − x − 2).
Factor both parts:
f(x) = (x − 2)(x + 2) / ((x − 2)(x + 1)).
The factor
x − 2
cancels.
This tells us that x = 2 is a hole in the original function.
The remaining denominator is
x + 1,
so
x = −1
is a vertical asymptote.
The simplified expression is
(x + 2)/(x + 1).
At x = 2, the corresponding y-value of the simplified graph is
(2 + 2)/(2 + 1)
= 4/3.
Therefore the hole is at
(2, 4/3).
Hole vs Vertical Asymptote
This distinction is extremely important.
If a denominator factor cancels with the numerator, it produces a removable discontinuity, commonly shown as a hole.
If the denominator becomes zero and the factor does not cancel, the graph has a vertical asymptote at that value, subject to the usual domain and limiting behavior.
For example,
f(x) = 1/(x − 4)
has a vertical asymptote at
x = 4.
There is no cancellation.
Horizontal and Slant Asymptotes
For many rational functions, the degrees of the numerator and denominator give a quick way to determine horizontal behavior.
If the degrees are equal, the horizontal asymptote is the ratio of the leading coefficients.
For
f(x) = (3x + 1)/(x − 4),
the leading coefficients are 3 and 1.
Therefore,
y = 3
is the horizontal asymptote.
If the numerator has degree exactly one greater than the denominator, polynomial division can be used to find a slant, or oblique, asymptote.
These ideas become especially important in advanced graph sketching and A-level mathematics. AQA's A-level specification includes rational functions, asymptotes and transformations.
Exponential Functions and Their Graphs
An exponential function can be written as
y = a(bˣ) + k.
The value of b controls growth or decay.
If
b > 1,
the function grows as x increases.
If
0 < b < 1,
the function decays.
For the basic function
y = bˣ,
the graph passes through
(0, 1).
For
y = a(bˣ) + k,
the horizontal asymptote is
y = k.
The y-intercept is found by setting x = 0:
y = a + k.
Exponential and logarithmic functions are major parts of precalculus and AP Precalculus. The AP course specifically connects them through inverse functions and multiple representations.
Logarithmic Functions
The logarithmic function
y = logᵦx
is the inverse of
y = bˣ,
where
b > 0
and
b ≠ 1.
The basic logarithmic graph passes through
(1, 0).
Its vertical asymptote is
x = 0.
The exponential and logarithmic graphs are reflections of each other across
y = x.
This relationship is much more useful than memorizing the two graphs separately.
Piecewise Functions
A piecewise function uses different formulas over different parts of the domain.
For example,
f(x) =
x + 2, when x < 1
x², when x ≥ 1.
When graphing a piecewise function, pay close attention to the endpoint.
An open circle means the endpoint is excluded.
A closed circle means the endpoint is included.
Do not automatically connect two pieces.
The graph must follow the definition of the function on each interval.
Absolute Value Functions
The basic absolute value function is
y = |x|.
It has a V-shaped graph with vertex
(0, 0).
Remember:
|x| = x when x ≥ 0
and
|x| = −x when x < 0.
A useful graphing rule is
y = |f(x)|.
Keep the portions of the graph that are already above the x-axis.
Reflect portions below the x-axis upward.
This idea is particularly useful when working with transformed and piecewise graphs.
A Fast Method for Sketching a Function
When an exam asks you to sketch a graph, do not immediately start calculating random points.
Use this sequence.
Step 1: Identify the function family
Is it:
• linear?
• quadratic?
• polynomial?
• rational?
• square root?
• exponential?
• logarithmic?
• absolute value?
• piecewise?
Step 2: Find the domain
Look for restrictions caused by:
• denominators
• even roots
• logarithms
• piecewise conditions
Step 3: Look for breaks
Check for:
• holes
• vertical asymptotes
• restricted endpoints
Step 4: Find important intercepts
Calculate the x-intercepts and y-intercept when they exist.
Step 5: Check symmetry
Ask whether the function is even or odd.
Step 6: Determine end behavior
For polynomial and many rational functions, this gives the overall direction of the graph.
Step 7: Apply transformations
Compare the function with a familiar parent function.
Step 8: Plot a few strategic points
Choose points that reveal important features.
Then connect the graph according to its behavior.
This method is much faster than plotting many unrelated points.
Ten Common Function and Graph Mistakes
1. Treating f(x) as multiplication
f(x) means the value of the function at x.
It does not mean f multiplied by x.
2. Moving f(x + 3) to the right
The graph moves left 3 units.
3. Forgetting domain restrictions
A denominator, logarithm or even root can restrict the domain.
4. Calling every denominator zero a vertical asymptote
A factor that cancels can produce a hole instead.
5. Confusing inverse functions with reciprocals
f⁻¹(x) is not generally
1/f(x).
6. Reversing composite functions
f(g(x)) means apply g first.
7. Assuming every function has an inverse
Check whether the function is one-to-one.
8. Ignoring the scale factor inside a transformation
The expression
f(2x)
does not stretch the graph horizontally by 2.
It compresses the horizontal scale by a factor of 2.
9. Joining pieces of a piecewise graph automatically
The separate pieces may have different endpoint behavior.
10. Using too many points instead of identifying the structure
A parent function, transformations, intercepts and asymptotes often tell you most of what you need.
Functions and Graphs in AP Precalculus
Functions are not an isolated chapter in AP Precalculus.
They connect polynomial and rational functions, exponential and logarithmic functions, trigonometric functions, transformations, compositions, inverses and mathematical modeling.
The current College Board description emphasizes representing functions graphically, numerically, analytically and verbally.
That means a question may give you an equation and ask about its graph.
Another question may give you a graph and ask you to interpret an equation.
A modeling problem may give you a table of values and ask you to identify an appropriate function.
So learning to move between representations is just as important as memorizing formulas.
Functions and Graphs in GCSE and A-level Mathematics
Function notation and related ideas also appear in UK mathematics courses, although the exact depth depends on the qualification and exam board.
For example, AQA GCSE Mathematics includes inverse and composite functions in its Higher content.
At A-level, functions, composite functions, inverse functions, transformations, graph sketching and rational functions are part of the specification.
This makes the basic graphing framework useful across several courses, even though individual exams may emphasize different topics.
Five Practice Questions
Try these without looking at the answers first.
1. Domain
Find the domain of
f(x) = ln(x − 2)/(x + 1).
2. Symmetry
Determine whether
f(x) = x⁴ − 3x²
is even, odd or neither.
3. Transformations
Describe the transformations from
y = √x
to
y = 3(√(x − 2)) − 4.
4. Composite Functions
If
f(x) = 3x − 1
and
g(x) = x + 5,
find
f(g(x))
and
g(f(x)).
5. Asymptotes
Find the vertical and horizontal asymptotes of
f(x) = (3x + 1)/(x − 4).
Answers
1. Domain
The logarithm requires
x − 2 > 0.
Therefore,
x > 2.
The condition x > 2 already excludes x = −1.
Answer:
x > 2.
2. Symmetry
f(−x)
= (−x)⁴ − 3(−x)²
= x⁴ − 3x²
= f(x).
Therefore the function is even.
3. Transformations
From
y = √x
to
y = 3(√(x − 2)) − 4:
• shift right 2 units
• vertical stretch by a factor of 3
• shift down 4 units
4. Composite Functions
f(g(x))
= 3(x + 5) − 1
= 3x + 14.
And
g(f(x))
= (3x − 1) + 5
= 3x + 4.
They are different because the order of composition matters.
5. Asymptotes
The denominator is zero when
x − 4 = 0.
Therefore the vertical asymptote is
x = 4.
The numerator and denominator have the same degree.
The ratio of the leading coefficients is
3/1 = 3.
Therefore the horizontal asymptote is
y = 3.
Frequently Asked Questions About Functions and Graphs
How do you find the domain of a function?
Start by looking for values that make the expression undefined.
Check denominators, even roots and logarithms.
A denominator cannot be zero.
The expression inside an even root must be at least zero.
The argument of a logarithm must be greater than zero.
How do you find the range of a function?
Use the graph, the function's structure, or algebraic reasoning.
Look for minimum and maximum values, asymptotes, endpoints and gaps.
For a quadratic, the vertex is often the fastest starting point.
What is the difference between domain and range?
The domain contains the allowed input values.
The range contains the output values actually produced.
How do you know if a function has an inverse?
Check whether it is one-to-one on its stated domain.
The horizontal line test provides a graphical test.
What is the difference between an inverse function and a reciprocal?
The inverse function reverses the input-output relationship.
The reciprocal is
1/f(x).
They are different concepts.
How do you graph a transformation of a function?
Start with the parent function.
Identify reflections and stretches or compressions.
Then apply the horizontal and vertical translations while tracking important points.
How do you find a vertical asymptote?
For a rational function, factor the numerator and denominator first.
Cancel common factors.
Any remaining denominator zero is a candidate for a vertical asymptote.
A canceled factor instead corresponds to a hole in the original function.
What is a composite function?
A composite function applies one function to the output of another.
f(g(x))
means apply g first and then apply f.
Can a function have an inverse if it is not one-to-one?
Not as a function over that entire domain.
However, the domain can sometimes be restricted so that the function becomes one-to-one.
The Big Idea
Functions become much easier when you stop treating every graph as a completely new problem.
Look for structure.
Find the domain.
Identify the range.
Mark the intercepts.
Check symmetry.
Study the end behavior.
Look for holes and asymptotes.
Recognize transformations.
Then sketch the graph.
Once these habits become automatic, a complicated precalculus function often becomes much easier to understand.
The goal is not to memorize hundreds of separate graphs.
The goal is to recognize the small number of ideas that control how those graphs behave.