Algebra 2Rational Exponents and Radical Functions5 of 6
Rational Exponents and Radical Functions · 5
Operations on Functions and Composition
When we have two functions, we need ways to combine their rules into a single formula instead of calculating each function separately for every input.
1
Adding, Subtracting, Multiplying, and Dividing Functions
If two functions take the same input x at the same time, we can add, subtract, multiply, or divide their rules directly. Let's combine the blue function f(x)=2x+3 and the orange function g(x)=x2−1 using all four operations.
Adding, Subtracting, Multiplying, and Dividing Functions
Multiply every term in each groupTo find (f⋅g)(x), we multiply each term in f(x) by each term in g(x) and put the powers in order from highest to lowest.
Place the rules into a fraction to divideTo find (f/g)(x), we put f(x) on top and g(x) on the bottom.
(f/g)(x)=g(x)f(x)=x2−12x+3
2
Domain of Combined Functions
Combining two formulas gives us a single rule, but that new formula doesn't always work for every input number. We need to find the domain of a combined function: the inputs x we are allowed to plug in without dividing by zero or taking an even root of a negative number.
Domain of Combined Functions
(f/g)(x)domain=x2−12x+3=?
Text solution
Exclude inputs that make a new denominator zeroIn (f/g)(x)=x2−12x+3, the bottom of the fraction turns into 0 when x=1 or x=−1, so both numbers are left out of the domain.
x2−1x=0=1,−1(excluded)
Find the restrictions on each original functionFor f(x)=x and g(x)=x−51, the square root cannot take a negative number and the fraction cannot have 0 on the bottom.
needs x≥0xandneeds x=5x−51
Keep both restrictions in the combined functionAny input that doesn't work in either original function won't work in their combination either, so the domain of (f+g)(x),(f−g)(x), and (f⋅g)(x) is x≥0 and x=5.
3
Composing Functions with Numbers
Adding, subtracting, multiplying, and dividing all send the same input x into both functions side-by-side. Now we want to chain two functions together in a line so that the output of the first function goes straight into the input slot of the second, which is called composition.
Let's evaluate the chain f(g(4)) and its reverse g(f(4)) for f(x)=2x+3 and g(x)=x2.
Composing Functions with Numbers
In (f∘g)(4), the open circle ∘ means "of," not multiplication (⋅). Rewriting it right away as f(g(4)) makes it clear that g(4) is on the inside.
Text solution
Evaluate the inside function first for f(g(4))We start on the inside by plugging 4 into g(x)=x2.
g(4)=42=16
Plug that output into the outside functionWe replace g(4) with 16 and plug it into f(x)=2x+3.
f(g(4))=f(16)=2(16)+3=35
Reverse the order for g(f(4))When f(4) is on the inside, we find f(4)=11 first and plug that result into g(x)=x2, giving 121 instead of 35.
f(4)g(f(4))=2(4)+3=11=g(11)=(11)2=121
4
Using Tables and Graphs
Sometimes a problem gives us a table of numbers or a graph of two curves instead of formulas, and we need to find values like (f+g)(2),f(g(3)), or g(f(1)) by looking up the outputs directly.
Using Tables and Graphs
Text solution
Read both outputs in the same table row to addTo find (f+g)(2), we go to the row where x=2, look up f(2)=7 and g(2)=1, and add them.
(f+g)(2)=f(2)+g(2)=7+1=8
Use the first table output as the next input rowTo find f(g(3)), we look at row x=3 to find g(3)=2, and then move up to the row where x=2 to read f(2).
f(2g(3))=f(2)=7
Use the first curve's height as the next horizontal input on the graphTo find g(f(1)), we read the height of the f curve at x=1 to get 5, then move to x=5 on the horizontal axis and read the height of the g curve there, which is 4.
g(height 5f(1))=g(new x5)=4
On a graph, the height you get from the inside curve f becomes the new horizontal x-value where you read the height of the outside curve g.
The height of the inside function swings down to the x-axis to become the input for the outside function.
5
Composing Functions with Formulas
When there is no number on the inside, meaning we want a single formula for f(g(x)) in terms of x, trying to plug one formula into another in your head makes the two x's easy to mix up. Let's build the composite formulas for f(g(x)) and g(f(x)) by turning the outside function's x into empty parentheses first.
Composing Functions with Formulas
f(x)g(x)f(g(x))g(f(x))=2x+3=x2=?=?
Text solution
Open an empty slot in the outside function for f(g(x))For f(x)=2x+3 and g(x)=x2, we write the outside rule f with empty parentheses in place of x and put x2 inside.
f()f(g(x))=2()+3=2(x2)+3=2x2+3
Put g on the outside for g(f(x))When g(x)=x2 is on the outside, we write g()=()2, put 2x+3 into the slot, and multiply (2x+3) by itself.
g()g(f(x))=()2=(2x+3)2=(2x+3)(2x+3)=4x2+12x+9
Fill every slot when x appears more than onceFor f(x)=x2−5x+1 and g(x)=x+2, we replace every x in f with empty parentheses and put x+2 into every slot at once.
When you compose two functions, the outside function stays as a template while the inside function drops into every input slot, so swapping their order can build a different formula.
6
Stacking Discounts with Composition
Because changing the order of composition can change the formula, the order in which we chain two discounts can change the final price. For a jacket that costs x dollars, let's compare a $10-off coupon, f(x)=x−10, and a 20%-off sale, g(x)=0.8x, to see which order saves more money.
Stacking Discounts with Composition
Text solution
Apply the 20%-off sale first with f(g(x))Putting g(x)=0.8x into f()=()−10 takes 80% of the original price and subtracts the full $10 coupon at the end.
f()f(g(x))=()−10=0.8x−10
Apply the $10 coupon first with g(f(x))Putting f(x)=x−10 into g()=0.8() distributes the 0.8 to the −10 as well, shrinking the $10 discount to $8.
g()g(f(x))=0.8()=0.8(x−10)=0.8x−8
Compare the two final formulasComparing 0.8x−10 and 0.8x−8 shows that taking the percentage discount first, f(g(x)), gives a final price $2 lower under these rules (paying $70 instead of $72 on a $100 jacket).
7
Splitting a Composite Function Apart
Now suppose we are given a function that has already been put together, like h(x)=(2x+3)5, and we want to work backwards to split it into an inside function g(x) and an outside function f(x) so that h(x)=f(g(x)).
Splitting a Composite Function Apart
h(x)h(x)g(x)f(x)=(2x+3)5=f(g(x))=?=?
Text solution
Pull out the first calculation as g(x)If we plug a number into h(x)=(2x+3)5, the first expression we calculate is 2x+3 inside the parentheses, so that inner piece is g(x).
h(x)=(g(x)2x+3)5⟹g(x)=2x+3
Put x into the remaining outside part to write f(x)Pulling 2x+3 out leaves the outer operation ()5, which becomes f(x) when we put x into the empty slot.
f()=()5⟹f(x)=x5
Split roots and fractions the same wayFor h(x)=x2−1 and h(x)=x+41, the expression under the square root or in the denominator is g(x), and the operation left around the empty slot is f(x).
Pull out the first step sitting inside a composite function to separate the inside function from the outside function left around the empty slot.
8
Domain of a Composite Function
Finally, we need to find the domain of a composite chain f(g(x)), such as when f(x)=x−21 and g(x)=x1. Because x goes into g first and that output goes into f second, an input is only allowed if both steps in the chain work without dividing by zero or taking an even root of a negative number.
Domain of a Composite Function
f(x)g(x)domain of f(g(x))=x−21=x1=?
Text solution
Exclude inputs that don't work in the inside function g(x)Because x enters g(x)=x1 first, we cannot plug in x=0.
g(x)=x1⟹x=0
Exclude inputs that don't work in the unsimplified composition f(g(x))Putting x1 into f()=()−21 puts x1−2 in the main denominator, which equals 0 when x=21.
f(g(x))x1−2x1x=x1−21=0=2=21(excluded)
Keep both restrictions even if the algebra simplifiesMultiplying the top and bottom by x simplifies the formula to 1−2xx, which hides the x=0 restriction, so the domain of f(g(x)) is all real numbers except x=0 and x=21.
Key concepts
Combining two functions comes down to whether they run side-by-side on the same input or in a chain where the first output becomes the next input.
Side-by-side operations (f+g)(x),(f−g)(x),(f⋅g)(x), and (f/g)(x)
Do not plug one function into the other, and do not multiply by the (x) at the end. Wrap both rules in parentheses and combine them directly, especially when subtracting, as in (f−g)(x)=(2x+3)−(x2−1)=−x2+2x+4. For each operation, the input must be in the domains of both f and g. For (f/g)(x), we also exclude any x for which g(x)=0.
Composition (f∘g)(x)=f(g(x))
The open circle ∘ means "of," not multiplication. Work from the inside out:
With numbers, tables, or graphs: Find the inside output first and use that answer as the new input for the outside function. In f(g(4))=f(16)=35, the output 16 from g becomes the input for f.
With formulas: Erase every x in the outside function to leave empty parentheses () and put the inside formula into every slot: for f(g(x)),f()=2()+3 becomes 2(x2)+3.
Splitting h(x)=f(g(x)) apart: The first calculation on the inside (like g(x)=2x+3 in (2x+3)5) is the inside function, and what is left around the empty slot (f(x)=x5) is the outside function.
Domain of f(g(x)): Check before simplifying. Exclude any x that doesn't work in the inside function g(x) and any x that doesn't work in the unsimplified f(g(x)) expression.
9
Practice
1
Let f(x)=4x−5 and g(x)=2x2−3x+1. Find (f−g)(x).
Wrap both expressions in parentheses before subtracting: (4x−5)−(2x2−3x+1). What happens to the signs of the terms inside the second set of parentheses?
(Watch out at the subtraction step: writing 4x−5−2x2−3x+1 without parentheses around g(x) only subtracts 2x2 and leaves the other signs unchanged, giving the wrong answer −2x2+x−4.)
Answer−2x2+7x−6
2
Let f(x)=3x−2 and g(x)=x2+4. Find (f⋅g)(x).
Set up (3x−2)(x2+4) side-by-side and multiply every term in the first group by every term in the second group.
(Watch out when expanding: multiplying only the first terms and last terms gives 3x3−8, and confusing the solid multiplication dot ⋅ with composition f(g(x)) gives 3(x2+4)−2=3x2+10.)
Answer3x3−2x2+12x−8
3
Let f(x)=3x−4 and g(x)=x2+1. Find (f∘g)(2) and (g∘f)(2).
Watch out at the first step: mistaking the open circle ∘ for multiplication gives f(2)⋅g(2)=2⋅5=10, and working from left to right instead of from the inside out swaps the two answers.
Rewrite the open circle ∘ as nested parentheses first: f(g(2)) and g(f(2)). Which function do you plug 2 into first in each one?
(Watch out at the first step: mistaking the open circle ∘ for multiplication gives f(2)⋅g(2)=2⋅5=10, and working from left to right instead of from the inside out swaps the two answers.)
Answer(f∘g)(2)=11 and (g∘f)(2)=5
4
A table of values gives: for x=1,f(1)=6 and g(1)=3; for x=2,f(2)=1 and g(2)=5; for x=3,f(3)=4 and g(3)=2. Find (f+g)(1) and f(g(3)).
For (f+g)(1), stay in the x=1 group. For f(g(3)), once you look up g(3), what becomes your new input x for f?
(f+g)(1)f(g(3))=f(1)+g(1)=6+3=9=f(2)=1
(Watch out after finding g(3)=2: staying at x=3 to read f(3)=4 or multiplying f(3)⋅g(3)=8 instead of moving to the new input x=2 gives 4 or 8 instead of 1.)
Answer(f+g)(1)=9 and f(g(3))=1
5
On a graph of two functions f and g, the curve f passes through (2,6) and (4,1), and the curve g passes through (2,4) and (6,5). Find (f−g)(2) and g(f(2)).
Each point (x,y) on a curve tells you (input,output height). In g(f(2)), where does the output height f(2) go next?
(f−g)(2)g(f(2))=f(2)−g(2)=6−4=2=g(6)=5
(Watch out when chaining g(f(2)): finding g(2)=4 first and plugging that into f(4) works from the outside in and gives the wrong answer 1.)
Answer(f−g)(2)=2 and g(f(2))=5
6
Let f(x)=x and g(x)=x−3. Find the domain of (f+g)(x) and the domain of (f/g)(x).
Check what input values x requires first, then check what extra restriction appears when g(x)=x−3 is placed on the bottom of the fraction (f/g)(x).
(f+g)(x)(f/g)(x)=x+(x−3)⟹x≥0=x−3x⟹x≥0 and x−3=0
(Watch out on (f/g)(x): if you only check the original domains of f and g without checking where the new denominator x−3 equals 0, you will miss x=3 and write x≥0 for both.)
AnswerThe domain of (f+g)(x) is x≥0; the domain of (f/g)(x) is x≥0 and x=3.
7
Let f(x)=x2−3x+4 and g(x)=x−2. Find and simplify f(g(x)).
Rewrite the outside function f with empty parentheses in both places where x appears: f()=()2−3()+4.
(Watch out when expanding: squaring the terms separately as (x−2)2=x2+4 misses the −4x middle term and gives x2−3x+14, while forgetting to distribute the negative sign in −3(x−2)=−3x+6 gives x2−7x+2.)
Answerx2−7x+14
8
Split h(x)=5x−3 into an inside function g(x) and an outside function f(x) so that h(x)=f(g(x)).
If you plugged a number in for x, what calculation under the square root would you do first?
h(x)=g(x)5x−3⟹g(x)=5x−3,f(x)=x
(Watch out when naming the two pieces: swapping the labels to write f(x)=5x−3 and g(x)=x would make f(g(x))=5x−3 instead of 5x−3.)
Answerg(x)=5x−3 and f(x)=x
9
A store offers a $15-off coupon, f(x)=x−15, and a 30%-off sale, g(x)=0.7x, on an item with original price x dollars. Write simplified formulas for f(g(x)) and g(f(x)), and state which order saves more money and by how much.
Put g(x) into f()=()−15, then put f(x) into g()=0.7() and distribute the 0.7. Compare how many dollars are subtracted from 0.7x in each result.
f(g(x))g(f(x))=0.7x−15=0.7(x−15)=0.7x−10.5
(Watch out when simplifying 0.7(x−15): forgetting to multiply 0.7 by −15 gives 0.7x−15 for both and makes it look like the order doesn't matter; and remember that subtracting $15 from 0.7x gives a lower price than subtracting $10.50, saving $15−$10.50=$4.50.)
Answerf(g(x))=0.7x−15 and g(f(x))=0.7x−10.5; applying the 30%-off sale first, f(g(x)), saves $4.50 more.
10
Let f(x)=x−41 and g(x)=x1. Find the domain of f(g(x)).
Copying x=4 from the original f(x)=x−41 instead of setting the new denominator x1−4=0 gives the wrong restriction x=4 instead of x=41.
Check what doesn't work in the inside function g(x)=x1 first, then put x1 into the slot of f()=()−41 and check what makes the main denominator equal zero.
(Watch out for two traps here: simplifying the fraction to 1−4xx before checking the domain hides x=0, and copying x=4 from the original f(x)=x−41 instead of setting the new denominator x1−4=0 gives the wrong restriction x=4 instead of x=41.)