We use functions to write a rule that turns each input number into a single output, and graphs to see what that rule does to every number at once.
1
Function Notation and the One-Output Rule
A function is a rule that takes an input number x and gives back one predictable output number, written f(x).
Function Notation and the One-Output Rule
f(x)f(−2)f(x+h)=x2−1=?=?
To evaluate f(x)=x2−1 at different inputs, treat the parentheses in f(□)=(□)2−1 as empty boxes waiting to be filled.
Text solution
Plug in a negative numberPutting −2 into every box automatically wraps the negative sign in parentheses before squaring.
f(−2)=(−2)2−1=4−1=3
Plug in an expressionPutting x+h into the same boxes replaces x with the whole expression (x+h).
f(x+h)=(x+h)2−1
So f(−2)=3, and since f(2)=22−1=3 as well, two different inputs are allowed to share the same output. What a function can never do is give two different outputs for the same input.
2
Testing Whether an Equation Defines a Function
When we start with an equation in x and y, we want to know whether each input x produces only one output y.
Testing Whether an Equation Defines a Function
x2+2yx+y2=6=5
Is y a function of x?
We test x2+2y=6 and x+y2=5 by solving each equation for y.
Text solution
Isolate y in x2+2y=6Subtracting x2 and dividing by 2 leaves a single formula for y.
2yy=6−x2=3−21x2
Each number plugged in for x gives only one value for y, so this equation defines y as a function of x.
Isolate y in x+y2=5Taking the square root to undo y2 introduces a plus-or-minus sign.
y2yx=1⟹y=5−x=±5−x=±5−1=±2
Because the single input x=1 gives two outputs, y=2 and y=−2, this equation does not define y as a function of x.
3
Reading the Graph of a Function
Instead of testing numbers one by one, a graph plots every input x along the horizontal axis and puts the output f(x) as the height of the curve directly above or below it.
Reading the Graph of a Function
Using the graph of f(x)=x2−1, we can either start at an input on the x-axis to read the height, or start at a height on the y-axis to find which inputs reach it.
Text solution
Find f(2) from the graphStart at 2 on the x-axis and read the curve's height on the y-axis.
f(position on x-axis2)=height on y-axis3
Find where f(x)=3Start at height 3 on the y-axis and look across horizontally to see every spot where the curve reaches that height.
f(x)=3⟹x=−2 or x=2
On the parabola y=x2−1, every position x on the x-axis has a single curve height f(x) directly above or below it, while the horizontal line at height f(x) meets the curve at both x and −x.
Every spot on the x-axis gives you only one height on the parabola, even when the other side reaches that same height too.
4
Domain and Range from a Graph
The domain of a function is the set of all inputs x where the graph exists from left to right, and the range is the set of all heights y the graph reaches from bottom to top.
Domain and Range from a Graph
For the curve starting at an open circle at (−3,1), rising to a peak at (0,4), and ending at a solid dot at (2,−2), we read the domain off the x-axis and the range off the y-axis.
Text solution
Flatten vertically onto the x-axis for the domainReading from left to right, the graph starts at the open circle at x=−3 (excluded, parenthesis) and ends at the solid dot at x=2 (included, bracket).
Domain=(−3,2]
Flatten horizontally onto the y-axis for the rangeReading from bottom to top, the lowest height reached is the solid dot at y=−2 and the highest is the peak at y=4, both reached by the curve.
Range=[−2,4]
The vertical shadow on the x-axis tracks the left-to-right endpoints of the curve, while the horizontal shadow on the y-axis stays fixed at [−2,4] unless the left endpoint moves higher than the peak at y=4 or lower than the right endpoint at y=−2.
The left endpoint always sets the left edge of the domain, but it only changes the range when it goes higher than the peak or lower than the other endpoint.
5
Finding the Domain from an Equation
For the formulas in these examples, we find the domain by starting with all real numbers (−∞,∞) and ruling out any x-values that cause division by zero or a negative number inside an even root.
Finding the Domain from an Equation
f(x)g(x)=x2−9x+5=12−3x
Domain=?
Let's find the domains of f(x)=x2−9x+5 and g(x)=12−3x.
Text solution
Exclude where the denominator is zero for f(x)=x2−9x+5Set the bottom equal to zero to find the disallowed inputs and remove them from the number line.
x2−9Domain=0⟹x=−3 and x=3=(−∞,−3)∪(−3,3)∪(3,∞)
Keep the inside of the square root non-negative for g(x)=12−3xSet the expression inside the root greater than or equal to zero.
12−3x12x≥0≥3x≤4⟹Domain=(−∞,4]
If that same square root sits in the bottom of a fraction, as in 12−3x1, the inside cannot be zero either, so 12−3x>0 replaces the bracket with a parenthesis: (−∞,4).
6
Finding the Zeros of a Function
The zeros of a function, also called its roots, are the inputs x where the curve's height f(x) equals 0. The corresponding points on the graph are its x-intercepts.
Finding the Zeros of a Function
f(x)g(x)=x2−5x−6=x+32x−8=0=0
x=?
We find the zeros of f(x)=x2−5x−6 and g(x)=x+32x−8 by setting each function equal to 0.
Text solution
Set the quadratic equal to zero and factor
x2−5x−6(x−6)(x+1)=0=0⟹x=6 and x=−1
Set the numerator equal to zero for g(x)=x+32x−8A fraction equals zero only when its top is zero.
x+32x−82x−8=0=0⟹2x=8⟹x=4
Checking the denominator gives 4+3=7=0, so x=4 is the zero.
7
Increasing, Decreasing, and Local Extrema
Tracing a graph from left to right, we want to describe the intervals along the x-axis where the curve is flat (constant), climbing uphill (increasing), or falling downhill (decreasing), and mark the peaks (local maxima) and valleys (local minima) where it turns around.
Increasing, Decreasing, and Local Extrema
For the curve that stays flat at height 1 up to (−3,1), climbs to a peak at (−1,3), falls to a valley at (2,−4), and climbs forever after, we record the intervals using x-coordinates.
Text solution
Read the x-intervals from left to rightUse open parentheses at the turning points so the intervals do not overlap.
Constant on Increasing on Decreasing on (−∞,−3)(−3,−1) and (2,∞)(−1,2)
Separate the x-location from the y-height at each turning point
Local maximum at where it occursx=−1,Local minimum at x=2,local maximum value heighty=3local minimum value y=−4
Using the non-strict definition, every x<−3 on the flat ray is both a local maximum and a local minimum; x=−3 is also a local minimum. The peak and valley above are the turning extrema.
Changing the height of the peak changes the local maximum value y on the vertical axis without changing the increasing and decreasing intervals at all, while shifting the peak horizontally moves the interval boundary along the x-axis.
The peak’s height on the y-axis gives the local maximum value, while its spot on the x-axis sets the increasing and decreasing intervals.
8
Even and Odd Functions
An even function is symmetric across the y-axis so that stepping to −x gives the same height as x, while an odd function is symmetric by a 180∘ rotation around the origin so that stepping to −x flips the height to the opposite sign.
Even and Odd Functions
f(x)f(x)=x3−4x=x2+x
Even, odd or neither?
To test f(x)=x3−4x and f(x)=x2+x algebraically, we plug −x into the input boxes and compare the simplified expression to the original function.
Text solution
Substitute −x into f(x)=x3−4xOdd powers keep the negative sign.
f(−x)=(−x)3−4(−x)=−x3+4x=−(x3−4x)=−f(x)
Every sign flipped to give −f(x), so f(x)=x3−4x is odd.
Substitute −x into f(x)=x2+xSquaring −x makes it positive, while the odd power keeps the negative sign.
f(−x)=(−x)2+(−x)=x2−x
Because x2−x matches neither the original x2+x nor its exact opposite −x2−x, this function is neither even nor odd.
For an even function, the point at the opposite input −x has height f(−x)=f(x). For an odd function, it has height f(−x)=−f(x).
At the opposite input, an even function keeps the same height while an odd function flips to the opposite height.
9
Piecewise Functions
A piecewise function uses different formulas on different parts of the x-axis, switching rules at a boundary value.
Piecewise Functions
f(x)f(3)={x+24−x2if x<1if x≥1=?
For the piecewise function
f(x)={x+24−x2if x<1if x≥1
we check the `if` condition before plugging in an input, and we test the boundary x=1 in both formulas to see how the two pieces meet on the graph.
Text solution
Evaluate f(3) using the matching ruleSince 3≥1, only the bottom rule applies.
f(3)=4−(3)2=4−9=−5
Find the boundary points at x=1Plug x=1 into both rules, using an open circle for < and a solid dot for ≥.
Left piece (x<1):Right piece (x≥1):1+24−12=3⟹open circle at (1,3)=3⟹solid dot at (1,3)
The solid dot at (1,3) fills in the open circle, so the line on the left and the parabola on the right connect at (1,3).
10
Average Rate of Change
The average rate of change between two distinct inputs is the slope of the straight secant line connecting the corresponding points on the graph.
Average Rate of Change
To find the average rate of change of f(x)=x2 from x=1 to x=3, we divide the change in height by the change in x.
Text solution
Find the slope between (1,f(1)) and (3,f(3))
Average rate of change=3−1f(3)−f(1)=3−132−12=29−1=4
So between x=1 and x=3, the height of the curve rises by an average of 4 units for every 1 unit we step to the right.
11
The Difference Quotient
Instead of picking two fixed numbers like 1 and 3, we can find a formula for the average rate of change starting at an input x over a nonzero horizontal step h, provided both x and x+h are in the domain:
difference quotienthf(x+h)−f(x)
The Difference Quotient
f(x)hf(x+h)−f(x)=x2−3x=?
We work out the difference quotient for f(x)=x2−3x in three steps so the algebra stays clean.
Text solution
Find and expand f(x+h)Put x+h into every input box of f(□)=(□)2−3(□).
f(x+h)=(x+h)2−3(x+h)=x2+2xh+h2−3x−3h
Subtract the original f(x)Every term without an h cancels out.
f(x+h)−f(x)=(x2+2xh+h2−3x−3h)−(x2−3x)=2xh+h2−3h
Divide by hFactor h out of the numerator. Since h=0, cancel it with the denominator.
hf(x+h)−f(x)=hh(2x+h−3)=2x+h−3
As h approaches 0, the average slope 2x+h−3 approaches 2x−3, the slope of this curve at x.
As the horizontal step h shrinks toward 0, both the rise f(x+h)−f(x) and the run h approach 0 together while the secant line settles into the steepness of the curve right at (x,f(x)).
As the step between the points shrinks toward zero, both the rise and the run shrink toward zero while the secant line settles into the steepness of the curve right at the starting point.
Key concepts
Everything here comes back to reading x as your position on the horizontal axis and f(x)=y as the height of the curve there:
Function notation and testing equations
The parentheses in f(□) are an empty input box: for f(x)=x2−1,f(−2)=(−2)2−1=3. When given an equation in x and y, solve for y:x2+2y=6⟹y=3−21x2 defines a function. For x+y2=5,x=1 gives both y=2 and y=−2, so it does not define y as a function of x.
Domain vs. zeros
On a graph, flatten vertically onto the x-axis for the domain and horizontally onto the y-axis for the range. For the formulas in these examples, exclude inputs that make a denominator zero or make the inside of an even root negative. If an even root is itself the denominator, its inside must be positive. For g(x)=x+32x−8, the domain excludes x=−3, while the zero is x=4, where the numerator is zero and the denominator is nonzero. The polynomial f(x)=x2−5x−6 has domain (−∞,∞).
Intervals and extrema
Always write increasing, decreasing, and constant intervals using x-values with open parentheses, never y-heights. At a peak like (−1,3), "where" the local maximum occurs is the x-location (x=−1), and the local maximum "value" is the height (y=3).
Symmetry and piecewise rules
Check that the domain contains −x whenever it contains x, then compare f(−x) with f(x) and −f(x). Equality with f(x) means even, equality with −f(x) means odd, and neither equality means neither. For a piecewise function, evaluate an input using the formula whose `if` condition matches. In the example above, both formulas can be evaluated at the boundary to locate the open circle and solid dot.
Average rate of change and the difference quotient
Between two distinct inputs, find the secant slope x2−x1f(x2)−f(x1). For the polynomial example, simplify hf(x+h)−f(x) by expanding f(x+h), subtracting f(x), and factoring out h. Since h=0, it cancels with the denominator.
12
Practice
1
For f(x)=2x2−x, find f(−3) and f(x+1).
Watch out for squaring without parentheses as −32=−9 to get −15, or forgetting the double negative in −(−3) to get 15.
Replace each x with an empty box, 2(□)2−(□), before putting in −3 or x+1.
Writing the boxes keeps the parentheses around −3 and x+1:
f(−3)=2(−3)2−(−3)=2(9)+3=21
(Watch out for squaring without parentheses as −32=−9 to get −15, or forgetting the double negative in −(−3) to get 15.) For f(x+1), multiply out (x+1)(x+1) and distribute both the 2 and the minus sign:
f(x+1)=2(x+1)2−(x+1)=2(x2+2x+1)−x−1=2x2+3x+1
(Don't square term-by-term as x2+1 or forget to distribute the negative sign across −(x+1), which gives 2x2−x+1 or 2x2+3x+3.) f(−3)=21;f(x+1)=2x2+3x+1
2
Determine whether each equation defines y as a function of x: (a) x2−4y=8, (b) y2+3x=7, (c) ∣y∣=x−1.
Isolate y in each equation and check whether a single input x can produce two different values of y.
Solve each equation for y. An even power on x in (a) does not prevent each input from giving one output: (a) Yes (y=41x2−2 gives one y for each x); (b) No (x=1 gives y=±2); (c) No (x=5 gives y=±4). In (c), y=±(x−1) applies when x≥1.
3
The graph of f starts at an open circle at (−4,1), rises through (−2,3) to a peak at (0,5), and falls through (2,3) to a solid dot at (3,−2). Find: (a) f(3), (b) all values of x for which f(x)=3, (c) the domain of f, and (d) the range of f.
Treat the number inside f() as your position on the x-axis and the output as the height y; read the domain left to right and the range bottom to top.
At x=3, the solid dot is at height −2, and height 3 is reached at both x=−2 and x=2. Left to right, the x-values run from the open circle at −4 (use a parenthesis, not [−4,3]) to the solid dot at 3. Bottom to top, use the lowest height −2 and highest peak 5, rather than just using the two endpoint heights to write [−2,1). (a) −2; (b) x=−2 and x=2; (c) (−4,3]; (d) [−2,5]
4
Find the domain of f(x)=x2−16x−4 in interval notation.
Which part of a fraction is never allowed to equal 0?
Set the denominator equal to zero before touching the numerator:
x2−16=0⟹x=−4 and x=4
(Don't cancel x−4 with x2−16=(x−4)(x+4) first and only exclude x=−4, and ignore where the numerator x−4 is 0: plugging x=4 into the original fraction still divides by zero.) Removing −4 and 4 splits the number line into three pieces: (−∞,−4)∪(−4,4)∪(4,∞)
5
Find the domain of g(x)=8−2x5 in interval notation.
The expression inside the square root sits in the denominator. Can it equal 0, and what happens to the inequality sign when you divide by −2?
Because the square root is in the denominator, the inside must be strictly positive (using ≥0 would divide by 0=0 and give a bracket at 4):
8−2x>0⟹−2x>−8⟹x<4
(Remember to flip the inequality sign when dividing by −2, or you will get (4,∞).) (−∞,4)
6
Find the zeros of (a) f(x)=x2+2x−15 and (b) g(x)=x−23x+12.
Don't read the numbers straight off the factors as 5 and −3; set each factor to 0.
A zero is where the height is 0. For a fraction, does the top or the bottom make the whole fraction equal 0?
In (a), set the quadratic equal to 0 and factor:
x2+2x−15=0⟹(x+5)(x−3)=0
(Don't read the numbers straight off the factors as 5 and −3; set each factor to 0.) In (b), set the numerator equal to 0,3x+12=0, not the denominator x−2=0 (which gives the excluded domain value x=2). (a) x=−5 and x=3; (b) x=−4
7
A function f is flat at height −2 to the left of (−2,−2), rises to a peak at (1,4), falls to a valley at (5,−3), and rises forever to the right of (5,−3). Find: (a) the intervals on which f is constant, increasing, and decreasing, (b) where the local maximum occurs and the local maximum value, and (c) where the local minimum occurs and the local minimum value.
Use the x-coordinates for intervals and "where" questions, and use the y-axis heights for "value" questions.
Read all interval boundaries from the x-coordinates −2,1, and 5 (don't use the heights to write (−2,4) for increasing or (4,−3) for decreasing), and don't swap the x-location with the y-height at the peak (1,4) and valley (5,−3). (a) Constant on (−∞,−2), increasing on (−2,1) and (5,∞), decreasing on (1,5); (b) at x=1, value 4, and at every x<−2, value −2; (c) at x=5, value −3, and at every x≤−2, value −2. On the flat ray, the value is both at least and at most the nearby values, so each interior point is both a local maximum and a local minimum.
8
Determine algebraically whether each function is even, odd, or neither: (a) f(x)=x4−3x2, (b) g(x)=2x3−x, (c) h(x)=x3−x2.
Plug (−x) into each term and compare the simplified result to the original function.
In (a), (−x)4−3(−x)2=x4−3x2 (don't let the minus sign in front of 3x2 trick you into flipping it: the even exponent in (−x)2=x2 makes the (−x) positive). In (b), 2(−x)3−(−x)=−2x3+x=−(2x3−x). In (c), (−x)3−(−x)2=−x3−x2 (only the first sign flipped, so don't call it odd just because of the x3 term). (a) Even, since f(−x)=x4−3x2=f(x); (b) Odd, since g(−x)=−2x3+x=−g(x); (c) Neither, since h(−x)=−x3−x2 equals neither h(x) nor −h(x)
9
For the piecewise function f(x)={2x+1x2−1if x<2if x≥2, find f(0),f(2), and f(4), and determine whether the two pieces of the graph connect at x=2.
Check the `if` condition first to pick a single rule for each input, then test x=2 in both rules to compare the boundary heights.
For x=0,0<2 uses the top rule: 2(0)+1=1. For x=2,2≥2 uses the bottom rule: 22−1=3 (don't plug 2 into the top rule to get f(2)=5, because x<2 does not include 2). For x=4,4≥2 uses the bottom rule: 42−1=15. Checking the boundary x=2 in both pieces: f(0)=1,f(2)=3,f(4)=15; they do not connect because the left piece approaches an open circle at (2,5) while the right piece starts at a solid dot at (2,3)
10
Find the average rate of change of f(x)=x2+2x from x=−1 to x=3.
Watch the double negatives in both the top and bottom: writing 15−1=14 or 3−1=2 gives 7 or 8.
Find the curve heights f(−1) and f(3) first, then divide the change in height by the change in x.
Evaluate the two heights: f(−1)=(−1)2+2(−1)=1−2=−1 and f(3)=32+2(3)=15. Then find the slope:
3−(−1)f(3)−f(−1)=3−(−1)15−(−1)=416=4
(Watch the double negatives in both the top and bottom: writing 15−1=14 or 3−1=2 gives 7 or 8.) 4
11
Find and simplify the difference quotient hf(x+h)−f(x) for f(x)=2x2−5x+1.
Expand f(x+h) first, then subtract the entire expression f(x) in parentheses so every term without an h cancels.
Step 1: put x+h into every box (don't just add +h onto the end of the formula, and remember to distribute the 2 across all three terms of (x+h)2=x2+2xh+h2):
f(x+h)=2(x+h)2−5(x+h)+1=2x2+4xh+2h2−5x−5h+1
Step 2: subtract the original f(x) in parentheses so the signs flip on −5x and +1: