Linear functions and the meaning of slope, polynomials and degree, the roots of a quadratic and what the discriminant predicts, power functions and end behaviour, the algebraic and transcendental families, piecewise-defined functions, and the four transformations of a graph — the classification that lets Chapter 3 give one differentiation rule per family.
Subject: Calculus I · 74 slides · symbolic lesson
Open the interactive version of this deck
Title
Calculus I · Section 1.2
The families every later rule is written for
Objectives
Calculus does not treat every function from scratch. It learns one rule per family and then recognises the family. This section is the catalogue: lines, polynomials, algebraic functions, transcendental functions, functions glued from pieces, and the moves that turn one graph into another.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 30-50 — learning objectives 1.2.1 to 1.2.9
You already know most of these functions from algebra. What changes in calculus is why you care about them. Later in this course every differentiation rule is written for one family at a time: one rule for powers, one for exponentials, one for sines. So being able to look at a formula and name its family on sight is a skill you will use in every chapter.
This section is that catalogue. You start with lines, because the slope of a line is the idea the whole course is built on. Then polynomials and what their leading term does far away, then the algebraic and transcendental families, then functions glued together from pieces.
The last part is about moving graphs around. If you can see a messy formula as a familiar graph that has been shifted, stretched or flipped, you can sketch it in seconds instead of plotting points, and you can check a calculus answer against the picture.
Warm-up
Discussion prompt
From Section 1.1: what is the domain of a function, what is its range, and what does it mean for a function to be even or odd? Write the symmetry conditions as equations.
Write your answer before you reveal it. These three ideas come straight from Section 1.1, and all three are used within the next ten minutes, so it is worth finding out now whether they are solid.
The domain is the set of inputs a function accepts; the range is the set of outputs it actually produces. Notice the word actually: a function can be written to output real numbers and still never reach some of them. You will find ranges by asking which outputs are possible, exactly as in Example 1.16.
Even and odd are symmetry conditions. An even function gives the same output for x and for negative x, so its graph is a mirror image across the y-axis. An odd function gives the opposite output, so its graph survives a half-turn about the origin. Power functions are the reason for these names, as you are about to see.
Section
Part 1
Concept
Figure (svg): The line y equals 2x minus 1 through the points (1, 1), (2, 3), (3, 5) and (5, 9). A small dashed triangle with run 1 and rise 2 sits under the line near (1, 1); a larger one with run 2 and rise 4 sits under it near (3, 5).
Choose any two points on a line, measure how far you go across (the run) and how far you go up (the rise). The ratio never depends on which two points you chose.
\[ \frac{9-3}{5-2} = \frac{6}{3} = 2 \qquad \frac{5-1}{3-1} = \frac{4}{2} = 2 \]
A line is the one graph whose steepness is the same everywhere. That is why calculus starts here: the derivative will be the slope of a curve at a point, found by zooming in until the curve looks like a line.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 31 — Figure 1.16
Look at the two dashed triangles. The small one goes across 1 and up 2; the big one goes across 2 and up 4. Different triangles, the same ratio, 2. You could draw a third anywhere on the line and get 2 again.
That is the defining property of a straight line: its steepness is the same everywhere, so it can be captured in one number. For a curve that is no longer true, and the steepness changes from point to point.
Here is the idea to carry forward. Much of calculus is about the slope of a curve at a single point. You will get it by taking two points on the curve, computing exactly this ratio, and then sliding the second point toward the first. Everything starts with rise over run.
Notation
Annotate
On: \( m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\Delta y}{\Delta x} \)
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 31 — Definition, equation 1.3
Step through the notes one at a time. The formula is short, but each piece has a job and one piece has a trap.
The top is the change in output and the bottom is the change in input. The only rule is that both subtractions must go in the same order: point two minus point one on top, and point two minus point one underneath. If you swap the order in only one place you get the right size with the wrong sign.
The delta notation on the right is worth getting comfortable with now. It reads as change in y over change in x, and you will see it again in the definition of the derivative, where the change in x is made smaller and smaller. The slope of a line is the version where that ratio never changes.
Concept
Take the formula for a linear function and evaluate it at two convenient inputs, 0 and 1.
\[ f(x) = ax + b \]
\[ f(0) = b \qquad f(1) = a + b \]
\[ m = \frac{f(1) - f(0)}{1 - 0} = \frac{(a+b) - b}{1} = a \]
So the coefficient of x is the slope, and the constant is the height where the line crosses the y-axis. That is why the form is renamed with m.
\[ f(x) = mx + b \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 31-32 — derivation before equation 1.4
You have probably been told that in y equals m x plus b, m is the slope. This slide shows you why, using nothing but the definition of slope from two slides ago.
Evaluate the function at 0 and at 1. At 0 you get b, so the point (0, b) is on the line; at 1 you get a plus b. The run between these inputs is 1, and the rise is a plus b minus b, which is a. So the slope is a, whatever a and b are.
The point (0, b) is also where the line crosses the y-axis, so b is the y-intercept. This small argument is typical of how calculus justifies things: pick convenient inputs, compute, and let the algebra show that the answer does not depend on your choice.
Concept
Figure (svg): Four lines on one set of axes: f(x) = 3x + 1 rising steeply, g(x) = 2 horizontal, h(x) = negative one half x falling gently, and a dashed vertical line at x = negative 3.
| form | equation | use it when you know |
|---|---|---|
| point-slope (1.4) | y − y₁ = m(x − x₁) | one point and the slope |
| slope-intercept (1.5) | y = mx + b | the slope and where it crosses the y-axis |
| standard (1.6) | ax + by = c | you need vertical lines too, like x = k |
A vertical line is not the graph of a function, since one input would have infinitely many outputs, so only the standard form can describe it.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 31-32 — Figure 1.15 and equations 1.4 to 1.6
The picture shows every kind of line at once. The blue one rises steeply, with slope 3. The orange one falls gently, with slope negative one half. The green one is flat, slope 0. The dashed red one is vertical, and it has no slope, because the run between any two of its points is zero and you cannot divide by zero.
The three forms are the same line written for different situations. Point-slope form is the fastest to write when you know a point and a slope, which is exactly what you will know when you find tangent lines in Chapter 3. Slope-intercept form is the best for reading the graph. Standard form is the only one that can describe a vertical line.
A vertical line is not the graph of a function, because the single input x equals negative 3 would have every output at once. That is why the two function forms cannot express it.
Worked example
Find the slope, then an equation in point-slope form, then in slope-intercept form.
Subtract in a consistent order
Why: Take the second point minus the first in both the top and the bottom.
\[ m = \frac{5 - (-4)}{-4 - 11} \]
Simplify the top and bottom
Why: Nine up, fifteen to the left.
\[ m = \frac{9}{-15} = -\frac35 \]
Figure (svg): The line through (negative 4, 5) and (11, negative 4). A dashed slope triangle runs 15 to the right from (negative 4, 5) and drops 9 to (11, negative 4). The line crosses the y-axis at 13 over 5.
Point-slope form with the point (11, −4)
Why: Substitute the point and the slope into equation 1.4.
\[ y - (-4) = -\frac35 (x - 11) \]
Clean up the signs
Why: Subtracting negative four is adding four.
\[ f(x) + 4 = -\frac35 (x - 11) \]
Distribute the slope
Why: Negative three fifths times negative eleven is thirty-three fifths.
\[ f(x) + 4 = -\frac35 x + \frac{33}{5} \]
Subtract 4 to isolate f(x)
Why: Four is twenty fifths.
\[ f(x) = -\frac35 x + \frac{33}{5} - \frac{20}{5} = -\frac35 x + \frac{13}{5} \]
Check both points
Why: Each given point must satisfy the final equation.
\[ f(11) = -\frac{33}{5} + \frac{13}{5} = -4, \qquad f(-4) = \frac{12}{5} + \frac{13}{5} = 5 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 32-33 — Example 1.12
The slope calculation is where marks are lost, so do it slowly. Taking the second point minus the first on both top and bottom gives 9 over negative 15, which is negative three fifths. The figure agrees: going right 15 units, the line drops 9.
For point-slope form you may use either point. Using (11, negative 4) gives y plus 4 equals negative three fifths times x minus 11. That is already a correct answer to part b; you do not need to simplify it.
To reach slope-intercept form, distribute and then move the 4 across, writing it as twenty fifths so the fractions combine. The intercept is thirteen fifths, which is where the green dot sits on the y-axis in the figure.
The check is the habit to keep. A line through two given points must pass through both of them, so substitute each one. If either fails, the slip is usually a sign in the distribution step.
Fill the middle
Fill in the slope, then the constant in slope-intercept form. Point-slope form uses the point (1, 4).
Fill in the blanks
m = \frac\frac12\frac72 = ___, \qquad y - 4 = \frac12 (x - 1) \;\Longrightarrow\; y = \frac12 x + ___
Why: The rise is 2 and the run is 4, so the slope is one half. Distributing gives y minus 4 equals one half x minus one half, and adding 4, which is eight halves, leaves seven halves. Check: at x equal to negative 3 the line gives negative three halves plus seven halves, which is 2.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 33 — Checkpoint 1.9
Fill both blanks before you check. The slope comes first: the rise from 2 to 4 is 2, and the run from negative 3 to 1 is 4. Watch the subtraction of a negative in the denominator; 1 minus negative 3 is 4, not negative 2.
With the slope one half and the point (1, 4), point-slope form is y minus 4 equals one half times x minus 1. Distributing gives one half x minus one half, and adding 4, which is eight halves, leaves a constant of seven halves.
Test your answer on the other point. At x equal to negative 3, one half of negative 3 is negative three halves, and adding seven halves gives 2. The line passes through both given points, so it is the right line.
Trap
For the two points of Example 1.12, a common slip:
\[ m = \frac{5 - (-4)}{11 - (-4)} \]
\[ m = \frac{9}{15} = \frac35 \]
Wrong sign. The top is point 2 minus point 1; the bottom is point 1 minus point 2.
Pick an order and use it twice. Either order works, as long as the top and bottom agree:
\[ \frac{5-(-4)}{-4-11} = -\frac35 \]
\[ \frac{-4-5}{11-(-4)} = -\frac35 \]
Sanity check from the figure: the line falls to the right, so its slope must be negative.
This slip is tempting because each subtraction on its own looks reasonable. The trouble is that the top is measured from point one to point two while the bottom is measured the other way, which flips the sign of the ratio.
There are two quick defences. First, write the two points as a pair before you start, label them, and keep the same label on top in both subtractions. Second, glance at a sketch. The line through these two points clearly falls to the right, so any positive answer must be wrong, whatever the arithmetic says.
Notice that the correction shows both valid orders. Swapping which point you call the first changes the sign of the top and the bottom together, and the ratio stays the same.
Worked example
Jessica leaves at 5:50 a.m. for a 9-mile run and is home at 7:08 a.m., at a constant pace. Write the distance run as a linear function of time in minutes and interpret the slope.
Find the total time
Why: From 5:50 to 7:00 is 70 minutes, then 8 more.
\[ 7{:}08 - 5{:}50 = 70 + 8 = 78 \text{ min} \]
Write two points
Why: At the start no distance is run; at 78 minutes she has run 9 miles.
\[ D(0) = 0, \qquad D(78) = 9 \]
Compute the slope
Why: Rise over run, and simplify by 3.
\[ m = \frac{9 - 0}{78 - 0} = \frac{9}{78} = \frac{3}{26} \]
Use the intercept
Why: The line passes through the origin, so b is zero.
\[ D(t) = \frac{3}{26}t \]
Figure (svg): The line D(t) = 3t/26 from the origin to the point (78, 9), time in minutes on the horizontal axis and miles on the vertical axis, with a dashed triangle of run 26 minutes and rise 3 miles.
Interpret the slope with units
Why: Miles divided by minutes is a speed: her average velocity.
\[ m = \frac{3}{26} \approx 0.115 \text{ mi/min} \approx 6.92 \text{ mi/h} \]
Check the endpoint
Why: The formula must return the full 9 miles at 78 minutes.
\[ D(78) = \frac{3 \cdot 78}{26} = \frac{234}{26} = 9 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 33-34 — Example 1.13
The only tricky part is the time. From 5:50 to 7:08 is not 7.08 minus 5.50; clock times are not decimals. Count 70 minutes to 7:00 and then 8 more, for 78 minutes.
Once you have two points, the rest is Example 1.12 again. The slope 9 over 78 simplifies to 3 over 26, and because the line starts at the origin, the intercept is zero.
The interpretation is the point of the example. The slope has units of miles per minute, because it is a change in miles divided by a change in minutes. So the slope is a speed: about 0.115 miles each minute, which is almost 7 miles an hour. Whenever you meet a slope in an applied problem, say its units out loud; that tells you what it means.
The check confirms the formula returns the full 9 miles at 78 minutes.
Matching
Match the pairs
Why: For (−2, 4) and (1, 1): rise −3 over run 3 is −1. For (3, 5) and (−1, 2): rise −3 over run −4 is 3/4. Equal y-values give rise 0, a horizontal line. Equal x-values give run 0, and a fraction with zero on the bottom is undefined: the line is vertical.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 50 — Exercises 59, 61, 65 and 66
Compute each slope before you drag anything, and decide the direction from its sign. These four pairs are chosen so that each kind of line appears exactly once.
The first two need care with negatives. For (3, 5) and (negative 1, 2), both the rise and the run are negative, and a negative divided by a negative is positive, so that line is increasing even though every number you subtracted was going down.
The last two are the special cases. Equal y-values mean zero rise, so the slope is zero and the line is horizontal. Equal x-values mean zero run, and the slope does not exist at all: the line is vertical. Do not write a slope of zero for a vertical line; zero is the slope of the horizontal one.
Section
Part 2
Concept
A linear function is the simplest member of a much larger family: sums of whole-number powers of x, each times a constant.
\[ f(x) = a_n x^n + a_{n-1}x^{n-1} + \cdots + a_1 x + a_0, \qquad a_n \ne 0 \]
Degree and leading coefficient — The highest power n that actually appears is the degree; the number multiplying it is the leading coefficient.
| degree | name | example |
|---|---|---|
| 0 | constant | f(x) = 7 |
| 1 | linear | f(x) = mx + b, with m not 0 |
| 2 | quadratic | f(x) = ax² + bx + c, with a not 0 |
| 3 | cubic | f(x) = x³ − 3x² − 4x |
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 34 — equation 1.7
A polynomial is built from whole-number powers of x, each multiplied by a constant, and added up. That is all. No x in a denominator, no roots of x, no x in an exponent.
Two numbers summarise a polynomial for most purposes. The degree is the highest power that actually appears, and the leading coefficient is the number in front of that power. The requirement that the leading coefficient is not zero just makes sure the highest power really is there.
The table gives the names you will hear constantly. Constant, linear, quadratic and cubic are degrees 0 to 3. Notice that a linear function with slope zero drops to degree 0: a horizontal line is a constant function. Watch for polynomials written out of order, because the leading term is the highest power, not the first one printed.
Concept
Figure (svg): Two panels. Left: y = x squared and y = x to the fourth, both U-shaped, symmetric about the y-axis. Right: y = x cubed and y = x to the fifth, both rising from bottom left to top right, symmetric through the origin.
A power function is a single term, a constant times x to a power. When the power is a positive whole number, the sign of a negative input either disappears or survives:
\[ n \text{ even: } a(-x)^n = ax^n \qquad n \text{ odd: } a(-x)^n = -ax^n \]
So even powers are even functions and odd powers are odd functions, which is where the names came from.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 34-35 — Power Functions, Figure 1.18
Look at the left panel first. The square and the fourth power are both U-shaped and both symmetric about the y-axis, because a negative number raised to an even power becomes positive. The fourth power hugs the axis more closely between negative 1 and 1, then climbs faster beyond them.
In the right panel, the cube and the fifth power keep the sign of the input, so negative inputs give negative outputs. Their graphs are unchanged by a half-turn about the origin.
This is literally where the words even and odd for functions come from. The algebra under the figure is the whole proof: the minus sign inside either disappears, for an even power, or comes out in front, for an odd power. Keep the two shapes in your head, because every polynomial's far ends look like one of them.
Concept
Figure (svg): Two panels. Left: y = 2 + 1/x for positive x, falling toward a dashed horizontal line at y = 2. Right: y = 3x squared climbing without bound.
As the inputs grow without bound, the outputs either close in on a number or grow past every number. Both have notation, and you will use it for the rest of the course.
\[ 2 + \frac1x \to 2 \text{ as } x \to \infty \qquad 3x^2 \to \infty \text{ as } x \to \infty \]
A line the graph approaches, like the line at height 2 on the left, is a horizontal asymptote. What a function does as x runs off to the right and to the left is its end behaviour.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 35 — Behavior at Infinity
The two panels show the two basic ways a function can behave as x grows. On the left, 2 plus 1 over x gets closer and closer to 2, because 1 over x shrinks toward zero. The graph flattens onto the dashed line at height 2, which is called a horizontal asymptote.
On the right, 3 x squared does not settle down at all. Whatever height you name, the graph passes it eventually. The notation for that is f of x approaches infinity as x approaches infinity.
Treat this notation as a shorthand description for now. In Chapter 2 it becomes a precise statement about limits. The end behaviour of a function is simply what happens at both ends: as x runs off to the right and as it runs off to the left.
Concept
Figure (svg): Two panels. Left: the parabola 2x squared minus 12x plus 18 opening upward and the parabola negative x squared minus 4x minus 4 opening downward. Right: the cubic x cubed minus 3x squared plus 3x minus 1 rising left to right, and the cubic negative x cubed minus 3x squared plus x plus 3 falling left to right.
Factor the leading term out of a polynomial and every other term becomes a fraction with x in the denominator:
\[ x^3 - 3x^2 - 4x = x^3\left(1 - \frac{3}{x} - \frac{4}{x^2}\right) \]
As x grows in either direction the bracket tends to 1, so the polynomial behaves like its leading term. Sign of the leading coefficient: up or down. Degree even or odd: whether the two ends agree.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 35-36 — Figure 1.19
The factoring move under the picture is the reason, and it is worth understanding rather than memorising. Pull the leading power out of every term. What is left inside the bracket is 1 plus terms with x in the denominator, and those terms shrink to zero as x grows in either direction. So far away, the polynomial is essentially its leading term.
Now read the panels. On the left are two quadratics: the one with positive leading coefficient opens up, the one with negative leading coefficient opens down. Both ends of each go the same way, because the degree is even.
On the right are two cubics. Their ends go opposite ways, because the degree is odd, and the sign of the leading coefficient decides which end is up. Two facts, the sign and whether the degree is even or odd, give you the ends of any polynomial.
Picture it
Figure (svg): Two panels. Left, a close window: the cubic x cubed minus 3x squared minus 4x with its dip and bump, and the plain cubic x cubed, clearly different. Right, a window 20 times wider: the two curves lie on top of each other.
On the left the cubic has a bump and a dip that the plain cube does not. On the right, the same two curves in a window twenty times wider cannot be told apart: at x equal to 1000 the ratio of the cubic to the plain cube is already 0.997.
Compare the two panels carefully. On the left, in a small window, the cubic has a bump and a dip, and it clearly differs from the dashed plain cube. The lower terms matter here.
On the right, the window is twenty times wider, and the two curves are drawn on top of each other. You cannot tell them apart. The ratio of the cubic to the plain cube is 0.66 at x equal to 10, 0.97 at 100, and 0.997 at 1000.
This is what end behaviour means in practice. Near the origin, the lower terms shape the graph: its zeros and turning points. Far away, the leading term takes over completely. When you sketch a polynomial, get the ends from the leading term first, then fill in the middle with the zeros.
Sorting
Sort into buckets
Sort each polynomial by its end behaviour, using only the leading term.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 50 — Exercises 83, 84, 86 and 87
For each polynomial, find the leading term first, then decide from two facts: the sign of its coefficient, and whether its power is even or odd. You do not need to look at any other term.
Two of the items are written out of order on purpose. In 3x minus x cubed and in 5x minus 2x cubed plus 7, the first term printed is not the leading term. The highest power is a negative cube in both, so they rise on the left and fall on the right.
If you want a check, picture a large positive x and a large negative x. For negative two x cubed, a large positive x gives a large negative output, so the right end falls; a large negative x gives a large positive output, so the left end rises.
Tweak it
Parameter explorer
The curve is y = a xⁿ. Move n between even and odd values, and move a across zero. Which slider decides whether the two ends agree, and which decides up or down?
\[ y = {a}x^{{n}} \]
Start with n equal to 3 and a equal to 1, the plain cube. Now step n up to 4. The left end flips from pointing down to pointing up, and the graph becomes U-shaped. Keep stepping and watch the pattern alternate with every step.
Next move a across zero. Every height changes sign, so the whole graph flips upside down, whatever the power. When a is exactly zero the graph collapses onto the x-axis, which is the zero function the book mentions.
So the two sliders control two different things. The power decides whether the ends agree, even, or disagree, odd. The sign of the coefficient decides which way is up. Notice also that as n grows the graph gets flatter between negative 1 and 1 and steeper outside them.
Concept
A zero of f is an input where f is zero: a place the graph crosses or touches the x-axis. For a line mx plus b the zero is negative b over m. For a quadratic, factor if you can; otherwise use the formula.
\[ ax^2 + bx + c = 0, \quad a \ne 0 \quad\Longrightarrow\quad x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \]
Figure (svg): Three upward parabolas with the same axis x = 1: x squared minus 2x minus 3 crossing the x-axis twice, x squared minus 2x plus 1 touching it once at x = 1, and x squared minus 2x plus 3 staying above it.
| discriminant | real solutions | the graph |
|---|---|---|
| b² − 4ac > 0 | two | crosses the x-axis twice |
| b² − 4ac = 0 | one | touches the axis at the vertex |
| b² − 4ac < 0 | none | misses the axis entirely |
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 36 — Rule: The Quadratic Formula, equation 1.8
A zero of a function is an input that gives an output of zero, and on the graph it is where the curve meets the x-axis. For a line that is one quick solve. For a quadratic, try factoring first, since it is fastest, and fall back on the quadratic formula when factoring fails.
The figure shows three parabolas that differ only in their constant term. Changing c slides the same parabola up or down. The lowest one crosses the axis twice, the middle one just touches it, and the top one misses it entirely.
The discriminant, the expression under the square root, tells you which case you are in before you do any other work. Positive gives two real zeros, zero gives one, negative gives none. In the figure the three discriminants are 16, 0 and negative 8, matching the three pictures.
Notation
Annotate
On: \( x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \)
Go through the notes and connect each piece to a parabola you can picture. The first note is the one most people have never been told: split the fraction and negative b over 2a is the x-coordinate of the vertex. The plus or minus then steps the same distance left and right of it.
So the two zeros of a parabola are always symmetric about its vertex, which you will use in Example 1.15 to find a maximum without the formula.
The last note is about the most common mistake. The 2a divides the whole numerator, not just the square root. If you write negative b plus the root over 2a with the negative b sitting outside the fraction, your answers will be wrong, usually by a lot.
Worked example
For the function below, describe the end behaviour, find all zeros, and sketch the graph.
\[ f(x) = -2x^2 + 4x - 1 \]
Read the leading term for the ends
Why: Even degree, leading coefficient negative two: both ends fall.
\[ a = -2 < 0 \;\Longrightarrow\; f(x) \to -\infty \text{ as } x \to \pm\infty \]
Substitute into the quadratic formula
Why: Here a is negative two, b is four, c is negative one.
\[ x = \frac{-4 \pm \sqrt{4^2 - 4(-2)(-1)}}{2(-2)} \]
Simplify under the root
Why: Sixteen minus eight.
\[ x = \frac{-4 \pm \sqrt{8}}{-4} = \frac{-4 \pm 2\sqrt2}{-4} \]
Divide the top and bottom by negative two
Why: The plus-or-minus absorbs the sign change.
\[ x = \frac{2 \pm \sqrt2}{2} \approx 0.2929 \text{ and } 1.7071 \]
Figure (svg): The downward parabola f(x) = negative 2x squared plus 4x minus 1 with its vertex at (1, 1) and its two zeros marked near 0.29 and 1.71.
Check the smaller zero
Why: Put the exact value back in; the square root terms cancel.
\[ f\left(1 - \tfrac{\sqrt2}{2}\right) = -2\left(\tfrac32 - \sqrt2\right) + 4 - 2\sqrt2 - 1 = 0 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 37 — Example 1.14a
Part i is one line: the leading coefficient is negative two and the degree is even, so both ends fall. That also tells you the graph has a highest point.
For the zeros, the quadratic doesn't factor nicely, so use the formula carefully with a equal to negative 2. The discriminant is 16 minus 8, which is 8, and the root of 8 simplifies to 2 root 2. Dividing everything by negative 2 gives 2 plus or minus root 2, all over 2.
The decimals, about 0.29 and 1.71, are the two yellow dots in the figure. They sit symmetrically on either side of the vertex at x equal to 1, just as the previous slide predicted.
The check substitutes the exact smaller zero back in. Squaring it gives three halves minus root 2, and all the root 2 terms cancel against the linear term, leaving exactly zero.
Worked example
Same three tasks for a cubic.
\[ f(x) = x^3 - 3x^2 - 4x \]
Read the leading term
Why: Odd degree, leading coefficient 1: down on the left, up on the right.
\[ x \to \infty: f(x) \to \infty, \qquad x \to -\infty: f(x) \to -\infty \]
Factor out the common x
Why: Every term has at least one factor of x.
\[ f(x) = x(x^2 - 3x - 4) \]
Factor the quadratic
Why: Two numbers with product negative four and sum negative three: negative four and one.
\[ f(x) = x(x - 4)(x + 1) \]
Set each factor to zero
Why: A product is zero exactly when one of its factors is.
\[ x = 0, \quad x = 4, \quad x = -1 \]
Figure (svg): The cubic f(x) = x cubed minus 3x squared minus 4x crossing the x-axis at negative 1, 0 and 4, rising at the right end and falling at the left end.
Check by expanding at a test value
Why: At x equal to 2 the original and factored forms must agree.
\[ 2^3 - 3(2^2) - 4(2) = -12, \qquad 2(2-4)(2+1) = -12 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 37-38 — Example 1.14b
Here the leading term is x cubed, so the ends go opposite ways: down on the left and up on the right.
A cubic has no simple formula you are expected to use, so factoring is the route. The first move is always to look for a common factor, and every term here contains x. Pulling it out leaves a quadratic, which factors because negative 4 and 1 multiply to negative 4 and add to negative 3.
Each factor gives one zero: 0, 4 and negative 1. In the figure the curve comes up from the lower left, crosses at negative 1, turns, crosses at 0, dips deep, and crosses again at 4 on its way up. The ends match what the leading term said.
The check picks an input that is not a zero, 2, and evaluates both the original and the factored form. Both give negative 12, so the factoring is right.
Worked example
\[ f(x) = 3x^2 - 6x + 2 \]
Compute the discriminant first
Why: Positive, so expect two real zeros.
\[ b^2 - 4ac = (-6)^2 - 4(3)(2) = 36 - 24 = 12 \]
Apply the formula
Why: Minus b is six; two a is six.
\[ x = \frac{6 \pm \sqrt{12}}{6} \]
Simplify the root
Why: Twelve is four times three.
\[ x = \frac{6 \pm 2\sqrt3}{6} = 1 \pm \frac{\sqrt3}{3} \]
Read the direction
Why: The leading coefficient 3 is positive.
\[ a = 3 > 0 \;\Longrightarrow\; \text{opens upward} \]
Figure (svg): The upward parabola 3x squared minus 6x plus 2, vertex at (1, negative 1), crossing the x-axis near 0.42 and 1.58.
Check with decimals
Why: Both approximate zeros should make f nearly zero.
\[ 1 \pm \tfrac{\sqrt3}{3} \approx 0.4226, \; 1.5774; \quad f(0.4226) \approx 0.0000 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 38 — Checkpoint 1.10
Computing the discriminant first is a good habit, because it tells you what to expect. Here it is 12, positive, so two real zeros are coming.
The formula gives 6 plus or minus root 12, all over 6. Simplify the root as 2 root 3 and then divide every term by 6. You get 1 plus or minus root 3 over 3, which is symmetric about x equal to 1, the vertex.
The second question is quick. The leading coefficient 3 is positive, so the parabola opens upward. In the figure you can see the lowest point at (1, negative 1), below the axis, which is exactly why there are two crossings.
The decimal check puts 0.4226 back into the function; the output is zero to four decimal places.
Fill the middle
The quadratic x squared minus 3x plus 1. Fill in the discriminant and the number of real roots it predicts.
Fill in the blanks
b^2 - 4ac = (-3)^2 - 4(1)(1) = 5 \quad\Longrightarrow\quad 2 \text___
Why: Nine minus four is five, which is positive, so there are two real roots: three plus or minus the square root of five, all over two, about 0.38 and 2.62. A positive discriminant that is not a perfect square is the signal that the quadratic will not factor over the integers.
Fill in both blanks before checking. You only need the discriminant, not the roots themselves.
With a equal to 1, b equal to negative 3 and c equal to 1, the discriminant is 9 minus 4, which is 5. Positive means two real roots. Take care with the square of negative 3: it is positive 9.
Five is not a perfect square, and that is useful information too. If the discriminant of a quadratic with whole-number coefficients is not a perfect square, the quadratic will not factor with whole numbers, so do not spend time trying; go straight to the formula. Here the roots are 3 plus or minus root 5, over 2.
Worked example
Find the degree, the zeros, the y-intercept and the end behaviour, and decide whether the polynomial is even, odd or neither.
\[ f(x) = x^3 + 3x^2 - x - 3 \]
Degree and leading coefficient
Why: The highest power is three, with coefficient one.
\[ n = 3, \quad a_3 = 1 \;\Longrightarrow\; \text{down on the left, up on the right} \]
Factor by grouping
Why: Pair the first two terms and the last two.
\[ x^2(x + 3) - 1(x + 3) = (x + 3)(x^2 - 1) \]
Finish with a difference of squares
Why: x squared minus 1 splits into two factors.
\[ f(x) = (x + 3)(x - 1)(x + 1) \;\Longrightarrow\; x = -3, \; 1, \; -1 \]
The y-intercept is the constant term
Why: Put x equal to zero.
\[ f(0) = -3 \]
Test the symmetry
Why: Substitute negative x and compare with f and with its negative.
\[ f(-x) = -x^3 + 3x^2 + x - 3 \]
Figure (svg): The cubic x cubed plus 3x squared minus x minus 3 crossing the x-axis at negative 3, negative 1 and 1, and the y-axis at negative 3.
Check both symmetry conditions
Why: Neither matches, so the function is neither even nor odd: it mixes even and odd powers.
\[ f(-x) \ne f(x) \quad\text{and}\quad f(-x) \ne -f(x) = -x^3 - 3x^2 + x + 3 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 50 — Exercise 86
This exercise asks for everything at once, which makes it a good model for how to approach an unfamiliar polynomial. Take the questions in order and each one is short.
Grouping is the key move for the zeros. The first two terms share x squared and the last two share negative 1, and both groups leave the same factor, x plus 3. What remains, x squared minus 1, is a difference of squares, so all three zeros fall out: negative 3, negative 1 and 1.
For the symmetry test you substitute negative x and compare. Odd powers change sign, even powers do not. Because this polynomial has both odd and even powers, the result matches neither f nor its negative. The figure agrees: the graph is not a mirror image in the y-axis, and it is not symmetric through the origin either, since the y-intercept is negative 3, not 0.
Error analysis
Annotate
On: \( f(x) = 5x - 2x^3 + 7 \;\Longrightarrow\; \text{degree } 1, \text{ leading coefficient } 5 \)
Read the claim first and decide what is wrong before revealing the notes.
The mistake is treating the first term as the leading term. Degree means the highest power, wherever it appears, and here the highest power is the cube. So the degree is 3 and the leading coefficient is negative 2, not 5.
The consequence is not a small one. The wrong reading describes a rising line; the truth is a cubic whose right end falls. Any conclusion built on it, about ends, about the number of zeros, about the shape, would be wrong.
The cure is simple and worth making automatic: rewrite any polynomial in descending powers before you read anything off it.
Comparison
Comparison matrix
| polynomial | degree | leading coefficient | even, odd or neither |
|---|---|---|---|
| 2x² − 3x − 5 | 2 | 2 | neither |
| −3x² + 6x | 2 | −3 | neither |
| (1/2)x² − 1 | 2 | 1/2 | even |
| 3x − x³ | 3 | -1 | odd |
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 50 — Exercises 83, 84, 85 and 87
Fill in every blank before checking. Write the leading coefficient as a number, with a minus sign if it is negative, and use the words even, odd or neither for the last column.
Rows three and four are the interesting ones. One half x squared minus 1 contains only even powers, since the constant counts as x to the zero, so it is an even function. Three x minus x cubed contains only odd powers, so it is odd, and its leading coefficient is negative 1, hidden in the second term.
The first two rows mix even and odd powers, so they are neither. A quick rule for polynomials: all even powers means even, all odd powers means odd, and any mixture means neither.
Section
Part 3
Concept
Revenue is price times the number sold. A company's data show sales falling as the price rises, and falling roughly in a straight line.
| price p ($) | 6 | 8 | 10 | 12 | 14 |
|---|---|---|---|---|---|
| units sold n (thousands) | 19.4 | 18.5 | 16.2 | 13.8 | 12.2 |
Figure (svg): Five data points, units sold in thousands against price in dollars, at prices 6, 8, 10, 12 and 14, falling roughly along the line n = negative 1.04p plus 26, which runs from 26 on the vertical axis down to 25 on the horizontal axis.
\[ n = -1.04p + 26 \quad\Longrightarrow\quad R(p) = p(-1.04p + 26) = -1.04p^2 + 26p \]
Multiplying a linear model by the price turns it into a quadratic. That is the pattern: models are built by combining simple families.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 38-39 — Table 1.6 and Figure 1.20
This is the book's example of a mathematical model: an equation built from real data and used to predict. Look at the scatter of yellow points first. As the price goes up, fewer units sell, and the points fall close to a straight line.
The company summarises the data with that line, n equals negative 1.04 p plus 26. The line does not pass through every point exactly, and it does not need to. It is a model, good enough to make predictions between and slightly beyond the data.
Then the key step: revenue is price times units sold, so multiplying the linear model by p produces a quadratic. This is typical of how models are built. You start with a simple family that fits the data and combine it with other simple families. The quadratic you get is the subject of the next three slides.
Prediction
\[ R(p) = -1.04p^2 + 26p, \qquad 0 \le p \le 25 \]
Predict first
Before any algebra: at which price does the revenue peak?
Correct: At 12.50 dollars, halfway between 0 and 25
Why: Revenue is zero at a price of 0, since everything is given away, and zero at 25, since the model says nobody buys. A downward parabola peaks halfway between its zeros, at 12.50 dollars.
Commit to an answer before revealing. You have enough information to answer without computing anything.
Think about the two extremes. At a price of zero the company gives everything away, so revenue is zero. At a price of 25 the model predicts that nobody buys, so revenue is zero again. In between the revenue is positive, so it must rise and then fall.
The revenue function is a downward parabola, and a parabola is symmetric about the vertical line through its vertex. Its two zeros are at 0 and 25, so the vertex, the best price, is halfway: 12.50 dollars. The next two slides confirm this with algebra.
Worked example
Evaluate at 5 dollars
Why: Square first, then multiply.
\[ R(5) = -1.04(25) + 26(5) = -26 + 130 = 104 \]
Evaluate at 17 dollars
Why: Seventeen squared is 289.
\[ R(17) = -1.04(289) + 26(17) = -300.56 + 442 = 141.44 \]
Attach the units
Why: R is measured in thousands of dollars.
\[ 104 \to \$104{,}000, \qquad 141.44 \to \$141{,}440 \]
Set the revenue to zero and factor out p
Why: Both terms contain p.
\[ -1.04p^2 + 26p = p(-1.04p + 26) = 0 \]
Solve each factor
Why: Twenty-six divided by 1.04 is 25.
\[ p = 0 \quad\text{or}\quad p = \frac{26}{1.04} = 25 \]
Check the meaning of each zero
Why: At 0 dollars the items are free; at 25 dollars the model predicts no sales at all.
\[ n(0) = 26, \; R(0) = 0 \qquad n(25) = -1.04(25) + 26 = 0 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 39-40 — Example 1.15a-b
Part a is careful arithmetic. Square the price first, multiply by negative 1.04, then add 26 times the price. At 5 dollars you get 104 and at 17 dollars you get 141.44. Remember what the units are: thousands of dollars, so these are 104 thousand dollars and 141,440 dollars.
For part b, set the revenue equal to zero and factor out p. One factor gives p equal to zero. The other, negative 1.04 p plus 26, is zero when p is 26 divided by 1.04, which is exactly 25.
The interpretation matters as much as the numbers. The zero at 0 dollars is a company giving its product away. The zero at 25 dollars is the price at which the model predicts no sales at all, which you can see directly by putting 25 into the sales line.
Worked example
Read the shape
Why: Quadratic with leading coefficient negative 1.04: a parabola opening downward.
\[ a = -1.04 < 0 \;\Longrightarrow\; \text{a highest point} \]
Use the symmetry of a parabola
Why: The axis lies halfway between the zeros 0 and 25.
\[ p = \frac{0 + 25}{2} = 12.5 \]
Evaluate at the axis
Why: Twelve and a half squared is 156.25.
\[ R(12.5) = -1.04(156.25) + 26(12.5) = -162.5 + 325 = 162.5 \]
Figure (svg): The downward parabola R(p) = negative 1.04p squared plus 26p for p from 0 to 25, zero at both ends, with its highest point (12.5, 162.5) on a dashed axis of symmetry and the values at p = 5 and p = 17 marked.
Check with the vertex formula
Why: The axis of a parabola is at negative b over 2a.
\[ p = -\frac{26}{2(-1.04)} = 12.5 \quad\Longrightarrow\quad \text{max revenue } \$162{,}500 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 40 — Example 1.15c-d
The book's method uses only the shape. Because the leading coefficient is negative, the graph is a downward parabola, so it has a highest point. Parabolas are symmetric, so that highest point is on the vertical line halfway between the two zeros, at 12.5.
Evaluating there gives 162.5, which in the model's units is 162,500 dollars. In the figure, the peak sits on the dashed axis of symmetry, above both of the prices from part a.
The check uses a different route to the same place, the vertex formula negative b over 2a from the quadratic formula slide. Two independent methods agreeing is a strong check. In Chapter 4 you will find maxima like this with derivatives, and this example is a good one to test that method on.
Real world
Discussion prompt
Exercise 103: equipment bought for 20,500 dollars is worth 12,300 dollars after 3 years, losing value linearly. Write V(t), interpret both intercepts, find the value at 5 years, and find when it is worth 3000 dollars.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 51 — Exercise 103
Work through the four parts before revealing. This exercise is a linear model with a negative slope, and every part is a reading of a line.
The slope is the change in value over the change in time: 12,300 minus 20,500, divided by 3, which is about negative 2733 dollars per year. The negative sign means value is being lost, and the units tell you it is lost at that rate every year.
The vertical intercept is the value at time zero, the purchase price. The horizontal intercept, 7.5 years, is when the model says the equipment is worth nothing. After that the model gives negative values, which make no sense, so the model only applies up to 7.5 years. Every model has a range where it is believable, and finding the intercepts is a quick way to see where that range ends.
Section
Part 4
Concept
Allow division and fractional powers and polynomials grow into the algebraic functions. Two families inside them have names of their own.
Rational function — A quotient of two polynomials, just as a rational number is a quotient of two integers.
\[ f(x) = \frac{3x - 1}{5x + 2}, \qquad g(x) = \frac{4}{x^2 + 1} \]
Root function — A power function with exponent one over n, for a whole number n of at least 2.
\[ x^{1/2} = \sqrt{x}, \qquad x^{1/3} = \sqrt[3]{x} \]
Algebraic function — Anything built from x by adding, subtracting, multiplying, dividing, and taking rational powers or roots, for example the square root of 4 minus x squared.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 40 — Algebraic Functions
Polynomials only allow adding, subtracting and multiplying. Allow dividing and you get rational functions, quotients of polynomials. Allow fractional powers and you get root functions. Allow any combination of all of these and you get the algebraic functions.
The two rational examples look similar but behave differently. The first has a denominator that is zero at one input, so that input is missing from its domain. The second has a denominator that is never zero, so it is defined everywhere. That difference is the subject of Examples 1.16 and 1.17.
The square root of 4 minus x squared is algebraic even though it is neither a polynomial nor a pure root function, because it is built from x using only algebraic operations: squaring, subtracting, taking a root.
Picture it
Figure (svg): Two panels. Left: the square root and fourth root of x, both starting at the origin and existing only for x at least 0. Right: the cube root and fifth root of x, defined for every x and symmetric through the origin.
An even root of a negative number is not a real number, so the square root and fourth root start at the origin and go right only. Odd roots of negatives are fine, because a negative number cubed is negative, and so the cube root and fifth root run across the whole line.
\[ \sqrt[n]{-x} = -\sqrt[n]{x} \quad (n \text{ odd}) \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 41-42 — Figure 1.21
Compare the two panels. On the left, the square root and the fourth root both start at the origin and exist only to the right. No real number squared, or raised to the fourth power, is negative, so these roots of a negative number do not exist in the real numbers.
On the right, the cube root and the fifth root continue to the left of the origin, because a negative number cubed is negative. So the cube root of negative 8 is negative 2, perfectly real, and the domain is every real number.
The equation under the figure says that odd roots are odd functions, and the right panel shows the half-turn symmetry. For domains, the practical rule is: an even root forces what is under it to be at least zero; an odd root forces nothing.
Worked example
\[ f(x) = \frac{3x - 1}{5x + 2} \]
Domain: exclude the zero of the denominator
Why: Division by zero is the only thing that can go wrong.
\[ 5x + 2 = 0 \iff x = -\frac25 \;\Longrightarrow\; \text{domain } \{x \mid x \ne -\tfrac25\} \]
Range: set f equal to y
Why: A value y is in the range exactly when some x produces it.
\[ y = \frac{3x - 1}{5x + 2} \]
Clear the denominator
Why: Multiply both sides by 5x plus 2.
\[ 5xy + 2y = 3x - 1 \]
Collect the x terms on one side
Why: Move 3x left and 2y right.
\[ 2y + 1 = x(3 - 5y) \]
Solve for x
Why: Possible unless the bracket is zero.
\[ x = \frac{2y + 1}{3 - 5y}, \quad y \ne \frac35 \]
Figure (svg): The graph of (3x minus 1) over (5x plus 2): two branches separated by a dashed vertical line at x = negative 2/5 and approaching a dashed horizontal line at y = 3/5 that the graph never reaches.
Check: y = 3/5 is impossible, and y = 1 is reached
Why: At three fifths the equation becomes 11/5 equals zero. At y equal to 1 the formula gives x equal to negative three halves.
\[ 2\left(\tfrac35\right) + 1 = x \cdot 0 \;\text{(no } x\text{)}, \qquad f\left(-\tfrac32\right) = \frac{-5.5}{-5.5} = 1 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 41 — Example 1.16a
The domain is the easy half. The only thing that can go wrong in a quotient is a zero denominator, so find where 5x plus 2 is zero and remove that one input.
The range needs a different idea. A number y is in the range if some x produces it, so set the formula equal to y and try to solve for x. Clearing the denominator and collecting the x terms gives x times 3 minus 5y on one side. You can divide by that bracket unless it is zero, which happens when y is three fifths. So every output is possible except three fifths.
The figure shows both missing values. The dashed vertical line is the missing input; the dashed horizontal line is the missing output, the level the graph approaches but never reaches. The check confirms that three fifths gives an impossible equation and that an ordinary value like 1 is reached, at x equal to negative three halves.
Worked example
\[ f(x) = \sqrt{4 - x^2} \]
Domain: the radicand must not be negative
Why: Factor it as a difference of squares.
\[ 4 - x^2 = (2 - x)(2 + x) \ge 0 \]
Case 1: both factors positive
Why: Both conditions hold together on one interval.
\[ 2 - x > 0 \text{ and } 2 + x > 0 \iff -2 < x < 2 \]
Case 2: both factors negative
Why: The conditions contradict each other.
\[ x > 2 \text{ and } x < -2 \;\Longrightarrow\; \text{no } x \]
Include the zeros of the radicand
Why: At negative 2 and 2 the root is zero, which is allowed.
\[ \text{domain } [-2, 2] \]
Range: bound the radicand, then take roots
Why: On the domain, x squared runs from 0 to 4.
\[ 0 \le 4 - x^2 \le 4 \;\Longrightarrow\; 0 \le \sqrt{4 - x^2} \le 2 \]
Figure (svg): The upper half of the circle of radius 2 centred at the origin, the graph of the square root of (4 minus x squared), with the domain from negative 2 to 2 marked along the x-axis and the range from 0 to 2 marked along the y-axis.
Check the extremes are attained
Why: Both ends of the range really occur.
\[ f(0) = \sqrt4 = 2, \qquad f(2) = \sqrt0 = 0 \;\Longrightarrow\; \text{range } [0, 2] \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 41 — Example 1.16b
For a square root, the domain is wherever the expression underneath is not negative. The book factors it as 2 minus x times 2 plus x and uses a sign argument: a product is positive when both factors have the same sign. Both positive gives the interval from negative 2 to 2; both negative is impossible. The endpoints themselves make the product zero, which is allowed.
For the range, think about what x squared does on that interval: it runs from 0 to 4, so 4 minus x squared also runs from 0 to 4, and its square root runs from 0 to 2.
The figure explains all of this at once. If y is the square root of 4 minus x squared, then x squared plus y squared is 4, a circle of radius 2. The square root keeps only the top half, where y is not negative. The domain is the shadow of the semicircle on the x-axis, and the range is its shadow on the y-axis.
Worked example
\[ f(x) = \frac{5x + 2}{2x - 1} \]
Domain
Why: The denominator vanishes at one half.
\[ 2x - 1 = 0 \iff x = \frac12 \;\Longrightarrow\; x \ne \frac12 \]
Set f equal to y and clear the denominator
Why: Same method as Example 1.16(a).
\[ 2xy - y = 5x + 2 \]
Collect the x terms
Why: Move 5x left and y right.
\[ x(2y - 5) = y + 2 \]
Solve for x
Why: Possible unless 2y minus 5 is zero.
\[ x = \frac{y + 2}{2y - 5}, \quad y \ne \frac52 \]
Check with y = 3
Why: The formula gives x equal to 5; the function at 5 must give back 3.
\[ x = \frac{3 + 2}{6 - 5} = 5, \qquad f(5) = \frac{27}{9} = 3 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 41 — Checkpoint 1.11
This is Example 1.16(a) again with different numbers, so use it to test whether you can run the method on your own.
The domain excludes the zero of the denominator, x equal to one half. For the range, set the function equal to y, multiply through by 2x minus 1, and gather the x terms. You get x times 2y minus 5 equals y plus 2, so you can solve for x unless y is five halves.
Notice a pattern you can use as a check: for a ratio of two linear expressions, the missing output is the ratio of the leading coefficients, here 5 over 2, just as it was 3 over 5 in the example. The formal check picks an output, 3, finds the input that should produce it, 5, and confirms that the function really gives 3 there.
Worked example
Find the domain of each function. The only two dangers in an algebraic function: a zero denominator and an even root of a negative.
(a) A denominator that can vanish
Why: x squared minus 1 is zero at two points.
\[ f(x) = \frac{3}{x^2 - 1}: \quad x^2 - 1 \ne 0 \iff x \ne \pm 1 \]
(b) A denominator that cannot
Why: A square is never negative, so the denominator is at least 4.
\[ f(x) = \frac{2x + 5}{3x^2 + 4}: \quad 3x^2 + 4 \ge 4 \;\Longrightarrow\; (-\infty, \infty) \]
(c) An even root
Why: The radicand must not be negative.
\[ f(x) = \sqrt{4 - 3x}: \quad 4 - 3x \ge 0 \iff x \le \frac43 \]
(d) An odd root
Why: Cube roots accept every real number.
\[ f(x) = \sqrt[3]{2x - 1}: \quad (-\infty, \infty) \]
Check (c) at both sides of the boundary
Why: At 4/3 the root is zero; at 2 the radicand is negative.
\[ \sqrt{4 - 3\cdot\tfrac43} = 0, \qquad 4 - 3(2) = -2 < 0 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 42 — Example 1.17
The first sentence of this slide is the whole method. For algebraic functions there are only two dangers: dividing by zero and taking an even root of a negative number. Look for each one, and if neither can happen, the domain is every real number.
Parts a and b are both quotients, and they show that a denominator may or may not vanish. In part a, x squared minus 1 is zero at 1 and negative 1, so those two inputs are removed. In part b, 3x squared plus 4 is at least 4, so it is never zero and nothing is removed.
Parts c and d are both roots, and they show the even and odd difference. The square root in c needs 4 minus 3x at least zero, which means x at most four thirds. The cube root in d has no restriction at all. The check tests the boundary of part c from both sides.
Step zero
\[ f(x) = \frac{5 - 2x}{x^2 + 2} \qquad g(x) = \sqrt{5x - 1} \]
Discussion prompt
Before solving anything: for each function, name the one operation that could make it undefined, and decide whether it actually does anywhere. Then give each domain.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 42 — Checkpoint 1.12
Answer the question before you calculate anything. Naming the danger first is what keeps domain problems short.
For f, the danger is division by zero. But x squared plus 2 is always at least 2, because a square is never negative. So the denominator is never zero, and the domain is every real number. The numerator does not matter at all for the domain; a numerator of zero is allowed.
For g, the danger is a square root of a negative number, and this one does happen. You need 5x minus 1 to be at least zero, which means x at least one fifth. The endpoint is included, because the square root of zero is zero.
Concept
Some functions cannot be built from finitely many algebraic operations. They are called transcendental, because they go beyond algebra. The common ones are the trigonometric, exponential and logarithmic functions.
\[ \sin x, \; \cos x, \; \tan x \qquad b^x \; (b > 0, \; b \ne 1) \qquad \log_b x \]
Figure (svg): The exponential curve y = 2 to the x and the logarithm y = log base 2 of x, drawn on equal axes as mirror images across the dashed line y = x.
\[ \log_b x = y \iff b^y = x \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 42 — Transcendental Functions
Some functions cannot be built from x using finitely many additions, subtractions, multiplications, divisions and roots. They are called transcendental, and the three families you need are the trigonometric, exponential and logarithmic functions. Each gets its own section later in this chapter.
The figure shows the two that are closely linked. The exponential 2 to the x and the logarithm base 2 are mirror images across the dashed line y equals x, because each undoes the other; that is exactly what the equation under the figure says. The exponential passes through (0, 1) and the logarithm through (1, 0).
Why does the distinction matter for calculus? Because algebraic and transcendental functions get different derivative rules. The power rule handles powers of x; exponentials, logarithms and trig functions each need a rule of their own.
Sorting
Sort into buckets
Sort each function. Algebraic means built only from +, −, ×, ÷ and rational powers.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 43 — Example 1.18 and Checkpoint 1.13
For each item, ask one question: can this be built from x using only the four arithmetic operations and rational powers? If yes, it is algebraic. If it needs x in an exponent, inside a trig function, or inside a logarithm, it is transcendental.
The first item looks complicated but is algebraic: a cube, a sum, a square root and a quotient, all algebraic operations. The second is transcendental even though it contains x squared, because the x squared sits in an exponent. Complexity is not the test; the kind of operation is.
The x over 2 item is Checkpoint 1.13, and it is the simplest algebraic function of all, a line. The item with x to the two thirds is algebraic because two thirds is a rational power; the book's remark that algebraic functions can only have rational powers is exactly this point.
Counterexample
Discussion prompt
Claim: every rational function that is not a polynomial has at least one input missing from its domain. Find a counterexample, and say what property of the denominator makes it work.
Write your counterexample before revealing. The claim sounds reasonable, since the rational functions you usually see do have missing inputs.
But a rational function only loses the inputs where its denominator is zero, and some denominators are never zero. Four over x squared plus 1 is the book's own example: x squared plus 1 is always at least 1, so every real number is allowed, and yet the function is a genuine quotient, not a polynomial.
The general lesson is to never assume a domain from the look of a formula. Find the actual inputs that break it. Sometimes there are two, as in Example 1.17(a), sometimes one, and sometimes none.
Section
Part 5
Concept
A piecewise-defined function uses different formulas on different parts of its domain. You have met one already: the absolute value.
\[ |x| = \begin{cases} -x, & x < 0 \\ x, & x \ge 0 \end{cases} \]
Figure (svg): The absolute value graph drawn as two coloured pieces: the ray y = negative x for x below 0 in orange and the ray y = x for x at least 0 in blue, meeting at the origin with a filled dot.
To graph one, draw each formula only on its own interval, then decide at each boundary which piece owns the point: a filled dot for the owner, an open circle for the other.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 43 — Piecewise-Defined Functions
A piecewise-defined function is still one function. Each input gets exactly one output; it is just that which formula computes that output depends on where the input is.
The absolute value is the example you already know. For negative inputs it uses negative x, which makes them positive; for inputs at least zero it uses x itself. In the figure the two formulas are coloured differently, and they meet at the origin.
The two jobs when graphing are always the same. Draw each formula only on its own interval, and then look at each boundary point and decide which formula owns it. The owner gets a filled dot. If the other piece stops at a different height, it gets an open circle there, showing a point it approaches but does not include.
Worked example
\[ f(x) = \begin{cases} x + 3, & x < 1 \\ (x - 2)^2, & x \ge 1 \end{cases} \]
Graph the first piece on its interval
Why: A line of slope 1, drawn only for x less than 1.
\[ y = x + 3 \text{ on } (-\infty, 1) \]
Graph the second piece on its interval
Why: A parabola with vertex at (2, 0), drawn for x at least 1.
\[ y = (x - 2)^2 \text{ on } [1, \infty) \]
Decide who owns the boundary
Why: The condition x at least 1 includes 1, so the parabola gives the value there.
\[ f(1) = (1 - 2)^2 = 1 \;\Longrightarrow\; \text{filled dot at } (1, 1) \]
Mark where the line would have ended
Why: The line approaches height 4 but never gets there.
\[ 1 + 3 = 4 \;\Longrightarrow\; \text{open circle at } (1, 4) \]
Figure (svg): A piecewise graph: the line y = x plus 3 for x below 1, ending in an open circle at (1, 4), and the parabola y = (x minus 2) squared for x at least 1, starting at a filled dot at (1, 1).
Check one value from each piece
Why: Pick inputs well inside each interval.
\[ f(-1) = -1 + 3 = 2, \qquad f(3) = (3 - 2)^2 = 1 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 43-44 — Example 1.19, Figure 1.22
Graph each piece as if the other did not exist, but only on its own interval. The line x plus 3 is drawn for x less than 1, and the parabola, which has its vertex at (2, 0), is drawn for x at least 1.
The boundary is where the thinking happens. The condition x at least 1 includes 1, so the parabola owns that point: f of 1 is 1, and it gets a filled dot at (1, 1). The line would have reached a height of 4 at x equal to 1, but its condition excludes 1, so it ends in an open circle at (1, 4).
In the figure, the graph jumps down from the open circle to the filled dot. That jump is something you will name in Chapter 2: this function is not continuous at x equal to 1. The check evaluates one input from inside each piece.
Prediction
\[ f(x) = \begin{cases} 2 - x, & x \le 2 \\ x + 2, & x > 2 \end{cases} \]
Predict first
What does the graph look like at x = 2?
Correct: A filled dot at (2, 0) and an open circle at (2, 4)
Why: The first piece includes x = 2 (less than OR EQUAL), so f(2) = 2 − 2 = 0 and that dot is filled. The second piece would reach 2 + 2 = 4 but excludes x = 2, so its end is an open circle. Two filled dots would give one input two outputs, which a function cannot do.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 44 — Checkpoint 1.14
Decide before revealing. The whole question is which of the two conditions includes the number 2.
The first condition is x less than or equal to 2, so it includes 2. That makes f of 2 equal to 2 minus 2, which is zero, and the point (2, 0) gets a filled dot. The second piece, x plus 2, would reach a height of 4 at x equal to 2, but its condition is strictly greater than 2, so it starts with an open circle at (2, 4).
The two other tempting answers are both impossible for a function. Filled dots at both heights would give the input 2 two outputs. No dot at all would leave 2 out of the domain, but the first condition clearly includes it.
Worked example
A garage open 18 hours charges 10 dollars for the first hour or any part of it, and 2 dollars more for each further hour or part of one, up to a daily maximum of 30 dollars.
Set the domain
Why: The garage is open from 6 a.m. to midnight.
\[ 0 < x \le 18 \]
Write the first few pieces
Why: Any part of an hour counts as a whole hour, so each interval is open on the left and closed on the right.
\[ C(x) = 10 \text{ on } (0, 1], \quad 12 \text{ on } (1, 2], \quad 14 \text{ on } (2, 3] \]
Find where the cap takes over
Why: After k hours the charge is 10 plus 2 for each hour after the first.
\[ 10 + 2(k - 1) = 30 \iff k = 11 \]
Write the full function
Why: Hour 10 costs 28 dollars; any time past 10 hours costs the cap.
\[ C(x) = \begin{cases} 10 + 2(k - 1), & k - 1 < x \le k, \; k = 1, \dots, 10 \\ 30, & 10 < x \le 18 \end{cases} \]
Figure (svg): A staircase graph of parking cost against hours: a step at 10 dollars from 0 to 1 hour, then steps 2 dollars higher each hour up to 28 dollars from 9 to 10 hours, then a long flat step at 30 dollars from 10 to 18 hours. Each step has an open circle on the left and a filled dot on the right.
Check three stays
Why: A 90-minute stay is in the second hour; nine and a half hours is in the tenth; a full day hits the cap.
\[ C(1.5) = 12, \qquad C(9.5) = 28, \qquad C(18) = 30 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 44-45 — Example 1.20
The phrase any part of the first hour is the key to the whole model. Parking for 10 minutes costs the same as parking for a full hour. So within each hour the cost is constant, and it jumps at the whole numbers. That is why each interval is open on the left and closed on the right: exactly 1 hour still costs 10 dollars, while one second more costs 12.
The cap is where the pattern stops. The charge for the kth hour is 10 plus 2 for each hour after the first, and that reaches 30 at the eleventh hour, so from 10 hours onward the cost is simply 30. The garage closes after 18 hours, which ends the domain.
The figure is a staircase of short flat steps, each with an open circle on the left and a filled dot on the right, and then one long step at the cap. The check tries three realistic stays.
Worked example
A letter costs 49 cents for the first ounce and 21 cents for each additional ounce or part of one, for weights up to 3 ounces.
First ounce
Why: Up to and including 1 ounce.
\[ C(x) = 49 \text{ for } 0 < x \le 1 \]
Second ounce
Why: One extra charge of 21 cents.
\[ 49 + 21 = 70 \text{ for } 1 < x \le 2 \]
Third ounce
Why: Two extra charges.
\[ 49 + 2(21) = 91 \text{ for } 2 < x \le 3 \]
Figure (svg): Three steps for postage in cents against weight in ounces: 49 cents on (0, 1], 70 cents on (1, 2], and 91 cents on (2, 3], each with an open circle on the left end and a filled dot on the right.
Check the boundary
Why: Exactly 2 ounces belongs to the second piece; a hair over belongs to the third.
\[ C(2) = 70, \qquad C(2.01) = 91 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 45 — Checkpoint 1.15
This is the parking example in miniature, so use the same reasoning. Any part of an ounce is charged as a whole ounce, so the cost is constant on each ounce and jumps at the whole numbers.
The first ounce costs 49 cents. Each additional ounce, or part of one, adds 21 cents, so the second ounce brings the total to 70 and the third to 91. Each interval is open on the left and closed on the right, because a letter weighing exactly 1 ounce is still in the first price band.
The check tests the boundary directly: exactly 2 ounces costs 70 cents, but 2.01 ounces has started the third ounce and costs 91. If your function gave 91 at exactly 2, your inequalities are the wrong way round.
Trap
For the function of Example 1.19:
\[ f(1) = 1 + 3 = 4 \]
or, worse, both at once:
\[ f(1) = 4 \text{ and } f(1) = 1 \]
Wrong. The line's condition is x less than 1, which excludes 1.
Read the inequality before the formula. Exactly one condition contains the boundary value, and only that formula may be used there.
\[ 1 \ge 1 \;\Longrightarrow\; f(1) = (1-2)^2 = 1 \]
A function has one output per input. If two pieces both claim a point, the definition itself is broken.
This error usually comes from reading the formulas before the conditions. The line's formula happens to be first on the page, so it is tempting to plug in 1 and get 4.
The fix is an order of operations for piecewise functions: first find the condition your input satisfies, then use that piece's formula and no other. Here 1 fails the condition x less than 1 and passes the condition x at least 1, so only the parabola applies.
The second version of the error, giving two outputs, is worth a moment of thought. It is not just a wrong answer; it would mean the rule is not a function at all. Well-written piecewise definitions always make the conditions non-overlapping, so exactly one piece claims each input.
Section
Part 6
Concept
Figure (svg): Two panels. Left: the dashed parabola y = x squared with copies shifted up 4 and down 4. Right: the dashed graph y = |x| with copies shifted left 3, vertex at negative 3, and right 3, vertex at 3.
| new function (c > 0) | effect on the graph of f |
|---|---|
| f(x) + c | shift up c units |
| f(x) − c | shift down c units |
| f(x + c) | shift LEFT c units |
| f(x − c) | shift RIGHT c units |
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 45-46 — Figures 1.23 and 1.24
Start with the left panel. Adding 4 to every output lifts every point of the parabola by 4; subtracting 4 lowers it by 4. Outside constants do what they look like they do.
The right panel is the surprise. Adding 3 inside the absolute value moves the vertex to negative 3, which is to the left. Subtracting 3 inside moves it to the right. The inside constant moves the graph in the direction opposite to its sign.
A quick way to find the direction every time is to ask where the inside equals zero. For the absolute value of x plus 3, the inside is zero at x equal to negative 3, so that is where the old vertex, which used to be at zero, now sits. The next slide shows why this reversal happens.
Concept
Take the shifted function and evaluate it three units to the left of any input x.
\[ g(x) = |x + 3| \]
\[ g(x - 3) = |(x - 3) + 3| = |x| \]
So the new graph reaches, at x minus 3, the height the old graph had at x. Every point has moved three units left. The inside constant says how much to add to the input, and adding to the input means you arrive at each height sooner.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 46 — the argument before Figure 1.24
This is the book's argument, and it takes three lines. Evaluate the new function three units to the left of any input. The plus 3 inside cancels the minus 3, and you get back the old function at x.
Read that as a statement about the graphs. Whatever height the old graph had at x, the new graph already had three units earlier, at x minus 3. So every point of the old graph appears three units to the left on the new one.
Put in plainer words: adding 3 to the input means you feed the old function a bigger number than you are standing at, so you reach every old value sooner. Reaching things sooner, as you move left to right, means the graph has moved left. The same reasoning explains the horizontal scalings on the next slide.
Concept
Figure (svg): Two panels. Left: the dashed parabola x squared, the narrower 3x squared, and the wider one third x squared. Right: the dashed square root of x, the taller square root of 2x, and the flatter square root of x over 2.
| new function | effect |
|---|---|
| c f(x), c > 1 | vertical stretch by c |
| c f(x), 0 < c < 1 | vertical compression |
| f(cx), c > 1 | horizontal compression by c |
| f(cx), 0 < c < 1 | horizontal stretch |
\[ \sqrt{2\cdot \tfrac{x}{2}} = \sqrt{x}: \quad \sqrt{2x} \text{ reaches at } \tfrac{x}{2} \text{ what } \sqrt x \text{ reaches at } x \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 46-47 — Figures 1.25 and 1.26
The left panel shows vertical scaling. Multiplying the outputs by 3 makes every height three times bigger, so the parabola looks narrower; dividing by 3 makes it wider. Both are really changes of height.
The right panel shows horizontal scaling, and once again inside works backwards. The square root of 2x reaches, at x over 2, the height the plain square root reaches at x. So everything happens twice as early, and the graph is squeezed toward the y-axis by a factor of 2. The square root of x over 2 is stretched away from it.
Notice that a vertical stretch and a horizontal squeeze can look alike, since both make a graph look steeper. They are different operations, and for most functions they give different results.
Concept
Figure (svg): Two panels. Left: the dashed curve x cubed plus 1 and its reflection in the x-axis, negative (x cubed plus 1), which crosses the y-axis at negative 1. Right: the dashed curve x cubed plus 1 and its reflection in the y-axis, (negative x) cubed plus 1, which still crosses the y-axis at 1.
\[ -f(x): \; (x, y) \mapsto (x, -y) \qquad f(-x): \; (x, y) \mapsto (-x, y) \]
A negative multiplier is a positive one combined with one of these reflections. Outside, it reflects about the x-axis; inside, about the y-axis.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, pp. 47-48 — Figure 1.27
Look at the left panel. A minus sign outside changes the sign of every output, so each point swaps with the point at the same x on the other side of the x-axis. The dashed curve crosses the y-axis at 1, and the reflected one crosses at negative 1.
In the right panel the minus sign is inside. Now every point swaps with the point at the same height on the other side of the y-axis. The y-intercept stays at 1, because the point on the y-axis is its own partner.
A negative multiplier, inside or outside, is always a reflection combined with a positive scaling. That is how the table on the next slide treats it: the size of the number scales and the sign reflects.
Notation
Annotate
On: \( y = c\,f\big(a(x + b)\big) + d \)
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 48 — the transformation order and Table 1.7
This one formula contains every transformation in the section. Step through the notes, and for each constant ask two questions: is it inside or outside, and is it added or multiplied.
The note on order needs your attention, because it corrects the book. The book lists a horizontal shift first and horizontal scaling second. But shifting first and then replacing x by a times x produces f of a x plus b, not f of a times x plus b. The two agree only when a is 1, which is true in both of the book's examples, so they come out right.
The rule that always works mirrors order of operations. Outside, you compute the output, multiply by c, then add d: so scale, then shift. Inside, the moves are undone in reverse, so do the scaling or reflection first and the shift last. The slide after next shows a case where the order changes the answer.
Worked example
\[ f(x) = -|x + 2| - 3 \]
Identify the parent and the constants
Why: Parent absolute value; b is 2, c is negative 1, d is negative 3.
\[ y = |x| \quad b = 2, \; c = -1, \; d = -3 \]
Shift left 2
Why: Adding 2 inside moves the vertex to negative 2.
\[ y = |x + 2|, \quad \text{vertex } (-2, 0) \]
Reflect about the x-axis
Why: Every height changes sign; the V opens downward.
\[ y = -|x + 2|, \quad \text{vertex } (-2, 0) \]
Shift down 3
Why: Subtract 3 from every output.
\[ y = -|x + 2| - 3, \quad \text{vertex } (-2, -3) \]
Figure (svg): Four V-shaped graphs: the starting graph y = |x| with vertex at the origin, the shifted y = |x + 2| with vertex at negative 2, the reflected y = negative |x + 2| opening downward, and the final y = negative |x + 2| minus 3 with its peak at (negative 2, negative 3).
Check two points
Why: The vertex and the y-intercept from the formula.
\[ f(-2) = -0 - 3 = -3, \qquad f(0) = -2 - 3 = -5 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 49 — Example 1.21a, Figure 1.28
Start by naming the parent graph and reading off the constants. The parent is the absolute value, with its vertex at the origin. Inside, x plus 2 is a shift left by 2. Outside, the minus sign reflects and the minus 3 lowers.
Track one landmark through the moves rather than the whole graph. The vertex goes from (0, 0) to (negative 2, 0) under the shift; the reflection leaves it where it is, since its height is zero; the last move lowers it to (negative 2, negative 3).
In the figure, the dashed stages are drawn on top of each other, so you can see each move. The finished graph is an upside-down V with its peak at (negative 2, negative 3). The check evaluates the formula at the vertex and at the y-intercept, and both agree with the picture.
Worked example
\[ f(x) = 3\sqrt{-x} + 1 \]
Reflect about the y-axis
Why: Negative x inside: the curve now runs left from the origin.
\[ y = \sqrt{-x}, \quad x \le 0 \]
Stretch vertically by 3
Why: Every height triples.
\[ y = 3\sqrt{-x} \]
Shift up 1
Why: The endpoint rises from the origin to (0, 1).
\[ y = 3\sqrt{-x} + 1 \]
Figure (svg): Four square-root curves: the starting curve y = square root of x to the right of the origin, its mirror image y = square root of negative x to the left, the taller 3 times the square root of negative x, and the final curve raised by 1, starting at (0, 1).
Check with a perfect square
Why: At x equal to negative 4, the root of 4 is 2.
\[ f(-4) = 3\sqrt{4} + 1 = 7, \qquad f(0) = 1 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 49 — Example 1.21b, Figure 1.29
The parent here is the square root, which starts at the origin and goes to the right. The minus sign inside reflects it about the y-axis, so it now starts at the origin and goes to the left. That also changes the domain: the square root of negative x needs x at most zero.
Multiplying by 3 stretches every height by 3, and adding 1 lifts the whole curve, so its endpoint moves to (0, 1).
The check uses a perfect square so the arithmetic is exact. At x equal to negative 4, the inside is 4, its root is 2, three times 2 is 6, and adding 1 gives 7. The yellow dot at (negative 4, 7) in the figure is that point.
Ranking
\[ f(x) = -(x + 1)^2 - 4 \quad \text{from} \quad y = x^2 \]
Put in order
Order the transformations that turn the graph of y = x² into this graph.
Why: Inside first: x + 1 shifts the parabola left 1, vertex (−1, 0). Then the outside moves in their order: the minus sign reflects, then subtracting 4 lowers the vertex to (−1, −4). Reflecting after the shift down would put the vertex at (−1, 4) instead: check f(−1) = −4.
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 50 — Checkpoint 1.16
Order the three moves before checking. The inside move is the shift left by 1, so it comes first. The outside moves follow in order of operations: the minus sign multiplies the output, then 4 is subtracted.
The order of the two outside moves genuinely matters here. Reflect and then lower, and the vertex ends at (negative 1, negative 4), which matches the formula, since f of negative 1 is negative 4. Lower and then reflect, and the vertex would end at (negative 1, 4), because the reflection would flip the lowering into a raising.
So the parabola opens downward with its highest point at (negative 1, negative 4). That means it never reaches the x-axis at all, which you can confirm from the formula: negative of a square, minus 4, is always negative.
Worked example
Rewrite the inside so that a and b are visible, then test the two possible orders against the endpoint of the graph.
Factor the inside
Why: Take out negative one.
\[ \sqrt{2 - x} = \sqrt{-(x - 2)} \quad\Longrightarrow\quad a = -1, \; b = -2 \]
Order 1: reflect, then shift right 2
Why: Reflecting gives the root of negative x; replacing x by x minus 2 shifts it right.
\[ \sqrt{x} \to \sqrt{-x} \to \sqrt{-(x - 2)} = \sqrt{2 - x} \quad \checkmark \]
Order 2: shift right 2, then reflect
Why: Replacing x by negative x in the shifted function.
\[ \sqrt{x} \to \sqrt{x - 2} \to \sqrt{-x - 2} \quad \times \]
Figure (svg): Three curves: the dashed starting curve y = square root of x, the correct graph y = square root of (2 minus x) ending at x = 2 and extending left, and a wrong graph y = square root of (negative x minus 2) ending at x = negative 2, produced by shifting before reflecting.
Check the endpoints
Why: The true graph must end where the radicand is zero, at x equal to 2.
\[ 2 - x = 0 \iff x = 2 \qquad -x - 2 = 0 \iff x = -2 \]
OpenStax Calculus Volume 1, §1.2 Basic Classes of Functions §1.2, p. 48 — correcting the order stated there
This example is here because the book's list of steps gets it wrong. Factor the inside as negative 1 times x minus 2, so there is a reflection and a shift right by 2, and try both orders.
Reflect first: the square root of x becomes the square root of negative x. Now shift right by 2 by replacing x with x minus 2, and you get the square root of negative x minus 2 in brackets, which is exactly the target. Shift first: you get the square root of x minus 2, and then reflecting replaces x by negative x, giving the square root of negative x minus 2. That is a different function.
The figure shows the difference. The correct graph ends at x equal to 2 and runs left. The wrong order gives a graph ending at negative 2. The endpoint check settles it: the graph must end where the expression under the root is zero, at 2.
Tweak it
Parameter explorer
The graph is y = c|x + b| + d. Where is the vertex, in terms of b and d? What does c do when it goes negative?
\[ y = {c}\,|x + {b}| + {d} \]
The sliders start at the values of Example 1.21(a), so the graph opens with its peak at (negative 2, negative 3). Move one slider at a time and predict before you look.
Move b and watch the vertex slide horizontally. It sits at x equal to negative b, so a positive b puts it on the left, the inside reversal again. Move d and the vertex slides vertically, the same way as the sign of d.
Now move c. Its size sets how steep both arms are, and as it passes through zero the V flattens to a horizontal line and then turns over. So c does two jobs at once: the size scales, and the sign reflects. Try to make the graph pass through the origin with its vertex at (1, negative 2), and check which values work.
Trap
Describing the graph of a shifted parabola:
\[ y = (x - 3)^2 \]
\[ \text{shift LEFT 3?} \]
Wrong direction. The minus sign inside does not mean move toward negative x.
Find where the inside is zero: that is where the old vertex lands.
\[ x - 3 = 0 \iff x = 3 \]
The vertex moves from 0 to 3: a shift RIGHT 3. Outside constants go the way their sign says; inside constants go the opposite way.
The minus sign in x minus 3 looks like it points toward the negative numbers, so shift left feels natural. It is the single most common error in this whole topic.
The quickest defence is the zero test. Ask where the inside equals zero: x minus 3 is zero when x is 3. The old vertex was where the inside of x squared was zero, at the origin, so the new vertex is at 3, which is to the right.
If you prefer to reason with a point, plug in the new vertex: at x equal to 3 the function is 0, so the lowest point of the parabola is at 3. Either way, the rule is the same as on the shifts slide: inside constants move the graph against their sign.
Section
Part 7
Pattern
Figure (svg): A family tree: 'functions' at the top splits into 'algebraic' and 'transcendental'. Algebraic splits into polynomial, rational and root; polynomial further contains linear and quadratic. Transcendental splits into trigonometric, exponential and logarithmic.
This is the order to work in whenever a new function appears, and the tree at the top is its first step. Placing a function on the tree tells you which tools apply. Everything in this section fits on one of its branches.
The domain comes second because everything else depends on it, and for algebraic functions it takes one line: look for a zero denominator and an even root of a negative. The ends and zeros come next for polynomials, the leading term first and then the factoring.
The last two steps are about graphs. If the function is a familiar graph in disguise, use the transformations, in the order that works: inside scaling and reflection, inside shift, outside scaling and reflection, outside shift. If it is piecewise, graph each piece on its own interval and settle every boundary dot.
Check
Check your understanding
A plumber charges C(h) = 45h + 60 dollars for h hours of work. What does the number 45 mean?
Answer: B
Why: The coefficient of h is the slope: the change in cost for each one-unit change in hours. Its units are the output units over the input units, dollars per hour. The constant 60 is the intercept, the cost at zero hours.
Decide before revealing, and use units to reason. The cost is in dollars and the input is in hours.
In a linear function, the coefficient of the variable is the slope, and a slope is a change in output per unit change in input. So 45 is dollars per hour: every extra hour of work adds 45 dollars. The constant 60 is the cost at zero hours, the fixed fee, which is the intercept.
The tempting wrong answer is the one that mixes up the two constants. If you are unsure which is which, evaluate at zero hours and then at one hour. The difference between those two costs is the slope.
Check
Check your understanding
Which polynomial falls on the left and rises on the right?
Answer: D
Why: Only the leading term matters. For 2x³ − 100x² it is 2x³: odd degree, positive coefficient, so it falls on the left and rises on the right, even though the −100x² term dominates for small x.
Find the leading term of each option before thinking about anything else. Two of them are written out of order.
Only the fourth option has a leading term that is an odd power with a positive coefficient, 2 x cubed, so it is the only one that falls on the left and rises on the right. The large negative 100 x squared term controls the graph near the origin, and for moderate x it makes the function negative, but far enough out the cube always wins.
The third option is the most tempting trap: 7 x cubed is printed first, but the highest power is negative 2 x to the fifth, which gives the opposite ends.
Check
Check your understanding
The graph of y = √x is transformed into y = −√(x − 4) + 2. Where does the endpoint (0, 0) move?
Answer: A
Why: Inside, x − 4 is zero at x = 4, so the endpoint moves right to x = 4. The reflection about the x-axis leaves a height of 0 unchanged, and adding 2 lifts it to 2. Check: −√(4 − 4) + 2 = 2.
Track the single landmark, the endpoint at the origin, through each move. That is faster and safer than moving the whole curve.
The inside, x minus 4, is zero at x equal to 4, so the endpoint moves right to 4. The minus sign outside reflects heights, but the endpoint has height zero, and zero reflected is still zero. Adding 2 lifts it to height 2. So it ends at (4, 2).
The check substitutes 4 into the formula: the root of zero is zero, its negative is zero, and adding 2 gives 2. The other options each make one of the two classic errors: moving left instead of right, or letting the reflection act on the shift.
Explain it to yourself
Discussion prompt
In two or three sentences, explain to yourself why f(x + 3) moves the graph of f to the LEFT, while f(x) + 3 moves it UP, using the idea of 'where does the old height get reached now'.
Write your explanation before revealing. If you can say this in your own words, you will not need to memorise which way the inside constants go.
The key is to ask where the old height gets reached now. An outside constant changes the output after the function has been evaluated, so every height simply goes up by 3. An inside constant changes the input before the function sees it, so the new function reaches the old value at x when its input is three units smaller.
The equation in the answer is that sentence in symbols: the new function at x minus 3 equals the old function at x. Everything the old graph did at x, the new graph does three units to the left.
Exit ticket
\[ f(x) = -2(x - 1)^2 + 8 \]
Discussion prompt
Describe f as a transformation of y = x², give its end behaviour, and find its zeros.
This combines three parts of the lesson in one quadratic. Describe the transformations, read the end behaviour, and find the zeros.
Inside, x minus 1 shifts right 1. Outside, the negative 2 stretches by 2 and reflects, and the plus 8 lifts, so the vertex ends at (1, 8). The leading coefficient is negative 2 and the degree is even, so both ends fall.
For the zeros you do not need to expand. Move the 8 across and divide by negative 2 to get x minus 1 squared equals 4, so x minus 1 is 2 or negative 2. The zeros are negative 1 and 3, symmetric about the vertex at 1, exactly as the shape predicts.
Recap
| family | what defines it | what to read off |
|---|---|---|
| linear | f(x) = mx + b | slope m = Δy/Δx, a rate with units; intercept b |
| polynomial | sum of aₖxᵏ, whole-number k | degree and leading coefficient decide the ends |
| quadratic | ax² + bx + c | zeros from the formula; b² − 4ac counts them |
| algebraic | +, −, ×, ÷, rational powers | domain: no zero denominator, no even root of a negative |
| transcendental | trig, exponential, logarithmic | cannot be built algebraically |
| piecewise | different formulas on intervals | one owner per boundary point |
\[ y = c\,f\big(a(x + b)\big) + d \]
\[ \text{inside: scale, then shift (opposite way)} \qquad \text{outside: scale, then shift} \]
Next, Section 1.3 adds the trigonometric functions to the catalogue, and Chapter 3 will give one derivative rule per family on this list.
Stewart, Calculus: Early Transcendentals 8e, §1.2 Mathematical Models: A Catalog of Essential Functions §1.2, pp. 23-35 — the same catalogue in Stewart
Stewart, Calculus: Early Transcendentals 8e, §1.3 New Functions from Old Functions §1.3, pp. 36-44 — transformations in Stewart
The table is the catalogue in one place. For each family, remember what defines it and the one or two things you read off it: the slope and intercept of a line, the leading term of a polynomial, the discriminant of a quadratic, the two dangers for the domain of an algebraic function.
The transformation rule is the part people forget, so note the formula under the table. Outside constants act on heights and move the way their sign says; inside constants act on inputs and move the opposite way. Inside, scale or reflect before you shift.
Section 1.3 adds the trigonometric functions to the catalogue, and Sections 1.4 and 1.5 add inverses, exponentials and logarithms. After that, Chapter 3 goes back through this list and gives one derivative rule per family.
Want this taught 1-on-1? Alexander tutors Calculus I — $55/session, free consultation.