Calculus Essentials
Introduction to Functions
The Function Machine
Think of a function as a simple machine, like a vending machine. You press a button (the input), and it gives you a specific snack (the output). Each button corresponds to exactly one type of snack. You wouldn't expect the button for chips to sometimes give you a soda. That reliability is the core idea of a function.
function
noun
A rule that assigns to each input exactly one output.
In mathematics, we write this relationship as , which you'd read as "f of x." Here, is the name of the function (the machine), and is the input. The entire expression, , represents the output. So, if we have a function that doubles any number you give it, we could write it as . If you input a 3, the output is .
Key rule: For any given input, a function must produce exactly one output. This is often checked with the "vertical line test" on a graph. If a vertical line can cross the graph more than once, it's not a function.
Domain and Range
A function's machine doesn't just accept any input. A vending machine might be out of stock for certain items, or it might not accept pennies. The set of all possible inputs a function can accept is called the domain. The set of all possible outputs it can produce is called the range.
For the function , the domain is all non-negative numbers (), because you can't take the square root of a negative number in the real number system. The range is also all non-negative numbers, because the result of a square root is never negative.
For the function , the domain is all real numbers except 0, because you can't divide by zero. The range is also all real numbers except 0.
Common Function Types
Functions come in many flavors. You'll encounter some types over and over again.
| Type | Example | Description |
|---|---|---|
| Linear | Forms a straight line when graphed. | |
| Quadratic | Forms a parabola (a U-shape) when graphed. | |
| Polynomial | Functions with non-negative integer powers of . | |
| Exponential | The variable is in the exponent; models rapid growth or decay. | |
| Logarithmic | The inverse of an exponential function. |
There are also rational functions (ratios of polynomials) and trigonometric functions (like and ) which describe relationships in triangles and periodic waves. We'll explore these more deeply later on.
Transforming Functions
Once you know the basic shape of a function's graph, you can move it around without having to plot a bunch of new points. These movements are called transformations.
Let's use the basic parabola, , as our starting point.
-
Vertical Shifts: Adding a constant outside the function moves the graph up or down. For example, shifts the parabola up by 3 units. The function shifts it down by 2 units.
-
Horizontal Shifts: Adding a constant inside the function moves the graph left or right. This one can feel backward. The function shifts the parabola to the right by 4 units. The function shifts it to the left by 1 unit.
-
Stretching and Compressing: Multiplying the function by a constant can stretch or compress it. Multiplying by a number greater than 1, like in , makes the parabola narrower (a vertical stretch). Multiplying by a fraction between 0 and 1, like in , makes it wider (a vertical compression).
-
Reflections: A negative sign also has an effect. Placing it outside, as in , flips the graph over the x-axis. Placing it inside, like , flips it over the y-axis (though for , this looks the same).
These transformations can be combined. The function takes the basic parabola, flips it upside down, moves it 5 units to the left, and 3 units up.
Understanding these rules is a powerful shortcut. Instead of calculating dozens of points, you can recognize the base function and simply shift, stretch, or flip its graph into place.
Ready to test your knowledge?
Which statement best describes the core characteristic of a function?
What is the domain of the function ?
Functions are the building blocks of calculus. Getting comfortable with what they are, how they behave, and how to manipulate their graphs will set a strong foundation for everything that comes next.
