July 23, 2026
How to Understand Functions: Domain, Range, and Graphs
Functions explained: what makes a rule a function, how to read domain and range, how to graph and transform functions, and how composition works, with examples.

The direct answer: a function is a rule that assigns exactly one output to each input, the domain is the set of allowed inputs, the range is the set of possible outputs, and graphs show the relationship visually. This guide builds the concept from scratch with examples, then shows how to practice it.
Functions at a Glance
| Question | Answer |
|---|---|
| What defines a function? | One output for every input. |
| What is the domain? | All input values the rule accepts. |
| What is the range? | All output values the rule can produce. |
| How do I test a graph? | The vertical line test: one point per x. |
| Where do functions appear next? | Precalculus, calculus, and most of Algebra 2. |
What a Function Really Is
Think of a function as a machine. You feed in x, the machine applies a rule, and out comes y. The rule f(x) = 2x plus 3 means: double the input and add 3. Feed in 4 and you get 11.
The notation f(x) is read "f of x" and just names the output. It does not mean multiplication.
A relation is a function only if no input maps to two different outputs. The set of ordered pairs (1, 2), (2, 4), (3, 6) is a function because each x is unique. The set (1, 2), (1, 5) is not, because x = 1 points to two y values.
Domain and Range
The domain is what you are allowed to put in. For f(x) = 2x plus 3, any real number works, so the domain is all real numbers. For f(x) = 1 divided by x, you cannot use x = 0, so the domain is all real numbers except 0.
The range is what comes out. For f(x) = x squared, squaring any real number gives 0 or a positive result, so the range is y is greater than or equal to 0.
How to find the domain fast
Look for two blockers:
- Division by zero, which excludes values that zero out the denominator.
- Even roots of negative numbers, which exclude values that make the radicand negative.
A worked example
Find the domain of f(x) = the square root of (x minus 4). The expression under the square root must be non negative: x minus 4 is greater than or equal to 0, so x is greater than or equal to 4. The domain is all real numbers x with x at least 4. The range is then y at least 0, because a square root is never negative.
Reading and Sketching Graphs
On a graph, x runs left to right and y runs up and down. Each point (x, y) shows an input and its output.
The vertical line test
The vertical line test checks whether a graph is a function. If any vertical line crosses the graph more than once, one x has two y values, so it is not a function. A circle fails this test, while a parabola opening upward passes. The test is just the machine definition drawn on paper: one output per input.
Transformations
You can shift, stretch, and flip a parent graph using simple changes:
- y = f(x) plus k moves the graph up by k.
- y = f(x minus h) moves it right by h.
- y = a times f(x) with a greater than 1 stretches it vertically; with a between 0 and 1 it compresses.
- y = negative f(x) reflects it across the x axis.
A worked example
Start with f(x) = x squared. The graph of g(x) = (x minus 2) squared plus 1 is the same parabola moved right 2 and up 1, with its vertex at (2, 1). The minus 2 inside shifts right, which feels backwards at first. Inside changes move opposite to the sign; outside changes move with it.
Composition and Inverse
Composition feeds one function into another: (f composed with g)(x) = f(g(x)).
A worked example
If f(x) = x plus 1 and g(x) = 2x, then f(g(3)) = f(6) = 7. Work the inner function first, then the outer, the same order you would follow in a calculator.
An inverse function reverses the rule, written f inverse. It satisfies f(f inverse(x)) = x. Graphically, the inverse is the reflection across the line y = x. A function has an inverse only if it is one to one, meaning each y comes from exactly one x. A parabola fails this, which is why you restrict the domain before inverting it in later courses.
Piecewise and Absolute Value Functions
Two function types deserve separate attention because they combine the ideas above.
Piecewise functions
A piecewise function uses different rules on different parts of the domain, written with braces. For example, a delivery fee might be 5 for orders under 50 and 0 for orders of 50 or more. The domain splits at the boundary, and you must check which rule applies before computing. The graph can show a jump at the split, which is fine for a function as long as each x still maps to one y.
Absolute value
The absolute value function, f(x) = the absolute value of x, equals x when x is at least 0 and minus x when x is below 0. Its graph is a V, and it fails the horizontal line test, so it has no inverse unless you restrict the domain to one side of the V. Absolute value shows up in distance, error, and tolerance problems, where only the size of a difference matters, not its sign.
Notation pitfalls to avoid
Students lose points on small slips: writing f(x) when they mean f times x, or plugging a value into the wrong piece of a piecewise rule, or forgetting that the range depends on the restricted domain. Read the rule, pick the piece, then compute.
Even and Odd Functions
Two symmetry types come up whenever you graph.
Even functions
A function is even when f(-x) = f(x) for every x, which means its graph mirrors across the y axis. f(x) = x squared is the standard example: (minus 2) squared = 4 = 2 squared. Cosine is even. Evenness halves your graphing work, because the left side copies the right.
Odd functions
A function is odd when f(-x) = minus f(x), so the graph has point symmetry about the origin. f(x) = x cubed is odd: (minus 2) cubed = minus 8 = minus (2 cubed). Sine is odd. Knowing the type lets you sketch faster and spot sign errors, because an odd function must pass through the origin.
Why it matters for inverses
Only one to one functions have inverses, but even and odd symmetry still helps you predict behavior. An even function can never be one to one on a symmetric domain, so you must restrict it (as with the absolute value V) before inverting. This ties the symmetry idea back to the inverse discussion above.
Common Misconceptions
- Reading f(x) as f times x.
- Forgetting that square roots and denominators restrict the domain.
- Confusing range with domain.
- Shifting the graph the wrong direction on the x axis.
- Assuming every function has an inverse.
- Thinking the vertex of (x minus h) squared is at h to the left. It moves right by h.
Frequently Asked Questions
What is the difference between a relation and a function?
A relation pairs inputs with outputs. A function is a relation where each input has exactly one output.
How do I find the domain quickly?
Look for division by zero and even roots of negative numbers. Exclude those x values.
Is the graph of a circle a function?
No. A vertical line through most of a circle hits it twice, so one x maps to two y values.
What does composition mean in plain terms?
It means applying one function to the result of another, like a two step machine.
Why do transformations matter?
Many harder functions are just shifted or stretched versions of basic ones, so learning the parent graphs saves time.
How do functions connect to exponents?
Functions built from powers, such as f(x) = 2 to the x, are where exponent rules become graphs you can sketch and shift.
Sources
About the author
Michael R. is a study skills coach with 12 years of experience and a learning specialist. He helps students develop effective study strategies and organizational systems.