Chapter 1: Functions, Graphs, and Transformations#
Functions are the language calculus speaks. Before we can explore slopes, areas, or rates of change, we need a clear picture of what a function is and how to bend its graph to our will. This chapter builds that picture from the ground up.
The Big Picture#
Every pattern in nature — a ball’s height after you toss it, the temperature over a day, the population of a city — can be described by a function. A function is simply a rule that takes an input and produces exactly one output. Once we understand that rule, we can visualize it, shift it, stretch it, and combine it with others. These skills are the foundation of calculus, where we will soon ask “how fast?” and “how much?”. Right now, let’s focus on seeing and shaping the graphs themselves.
What Is a Function?#
Imagine a vending machine. You press the button for “A4,” and it drops a bag of chips. If you press A4 again, you get the same chips — not a candy bar. That’s a function: each input (button) gives a single, predictable output (snack).
Formally:
Function: A rule that assigns to each input exactly one output.
We usually write
A graph lets us see a function all at once. Every point on the graph is a pair
Domain and Range#
The domain of a function is the set of all inputs it can accept. The range is the set of all outputs it actually produces.
Domain: All possible
‑values for which the function makes sense. Range: All ‑values the function can output.
For
We can describe domain and range in words, with inequalities, or in interval notation. For example, the domain of
Four Ways to Represent a Function#
We can pin down a function in four different ways, and each shines a different light on its behaviour.
- Verbal – “Square the input, then add three.” This description is compact and human, but it can be ambiguous.
- Tabular – A table of
and values. It gives exact numbers but only for a few points. - Graphical – A picture of the curve. It reveals overall shape, peaks, valleys, and trends at a glance.
- Algebraic – A formula like
. It is precise and lets us calculate any output exactly.
In calculus, we often move between these representations: a verbal problem leads to an algebraic model, we graph it to see the big picture, and we use tables to check specific values.
📝 Section Recap: A function pairs each input with a single output, passes the vertical line test, and has a domain (allowed inputs) and a range (actual outputs). We can describe it verbally, with a table, a graph, or a formula.
Piecewise‑Defined and Absolute Value Functions#
Not every function follows a single neat formula for all inputs. A piecewise‑defined function uses different rules on different parts of its domain. Think of a tax bracket: you pay one rate on the first $50,000, a different rate on the next chunk.
A classic example is the absolute value function:
The graph of
Piecewise functions let us model situations with sudden changes — a car that accelerates, then cruises, then brakes. To graph them, we draw each piece only over its specified interval and pay attention to whether endpoints are included (solid dot) or excluded (open dot).
Absolute value: The distance of a number from zero on the number line, always non‑negative.
The absolute value function can also be written as
📝 Section Recap: Piecewise functions switch rules at different
‑values. The absolute value function is the simplest piecewise function; its graph is a V and it measures distance from zero.
Shifting Graphs: Moving Functions Around#
Once we know the graph of a basic function like
Vertical Shifts#
Adding a constant to the output moves the graph up or down.
shifts the graph up by units if , down if .
For example,
Horizontal Shifts#
Adding a constant to the input moves the graph left or right — but be careful: the direction feels “backwards.”
shifts the graph right by units if , left if .
Why? Because to get the same output as before,
A handy mental rule: changes inside the function (with
📝 Section Recap: Vertical shifts add a constant to
and move the graph up/down. Horizontal shifts add a constant to inside the function and move the graph left/right (opposite sign).
Stretching, Shrinking, and Reflecting Graphs#
Beyond sliding, we can squash, stretch, or flip a graph. These transformations change the scale or orientation.
Vertical Stretch and Shrink#
Multiplying the whole function by a constant scales the
: if , the graph stretches vertically (pulls away from the ‑axis). If , it shrinks vertically (squishes toward the ‑axis).
For
Horizontal Stretch and Shrink#
Multiplying the input
: if , the graph shrinks horizontally (squeezes toward the ‑axis). If , it stretches horizontally (spreads away from the ‑axis).
For
Reflections#
A negative sign flips the graph over an axis.
reflects the graph across the ‑axis (top becomes bottom). reflects the graph across the ‑axis (left becomes right).
So
We can combine all these transformations. The general form
📝 Section Recap: Multiplying
by a constant scales the ‑values (vertical stretch/shrink). Multiplying inside scales ‑values inversely (horizontal stretch/shrink). A negative sign reflects the graph over the ‑ or ‑axis.
Combining Functions: Building New from Old#
Functions are not isolated islands. We can add, subtract, multiply, divide, and even plug one into another to create richer models.
Arithmetic Combinations#
Given two functions
, provided
For example, if
Composite Functions#
A composite function feeds the output of one function directly into another. Think of an assembly line: machine A stamps out a part, and machine B paints it. The painted part is
We write
Composite function: A function created by applying one function to the output of another:
.
For instance, if
Decomposing Functions#
Often we need to break a complicated function into simpler pieces — the reverse of composition. This is called decomposition. For
For
📝 Section Recap: We can add, subtract, multiply, or divide functions pointwise. Composition chains two functions together, applying the inner then the outer. Decomposition splits a complex function into inner and outer parts.
Summary#
We began with the simple idea that a function is a dependable rule: one input, one output. From there, we learned to see functions in four ways — words, tables, graphs, and formulas — and to talk about their domain and range. We met piecewise functions, including the V‑shaped absolute value, which change their rule mid‑stream. Then we discovered how to shift, stretch, and reflect graphs without changing their basic shape, giving us a toolkit to sketch almost any function quickly. Finally, we saw that functions can be combined with arithmetic or woven together through composition, and we practiced pulling them apart again. These skills are not just for graphing — they are the foundation on which all of calculus rests. Every derivative, every integral, every model starts with a function you understand deeply.
| Key idea | What it means (plain English) | Why it matters |
|---|---|---|
| Function | A rule that gives exactly one output for each input. | It’s the basic object we study in calculus; everything else builds on it. |
| Vertical line test | If any vertical line crosses a graph more than once, the graph is not a function. | A quick visual check to see if a curve represents a function. |
| Domain and Range | Domain = allowed inputs; Range = possible outputs. | Tells us where a function lives and what values it can produce. |
| Piecewise function | A function that uses different formulas on different intervals. | Models real situations with sudden changes, like tax brackets or speed limits. |
| Absolute value | Distance from zero; $ | x |
| Graph transformations | Shifts, stretches, shrinks, and reflections that move or resize a graph. | Lets us sketch complicated functions by starting from a simple parent graph. |
| Composition | Plugging one function into another: |
The core operation behind the chain rule in differentiation. |
| Decomposition | Breaking a function into an inside part and an outside part. | Essential for applying calculus rules to complex expressions. |