Quarry School

Composition of functions

A day determines a temperature, and that temperature determines a heating cost, so one function's answer can become another function's input. This section first compares arithmetic on two function outputs with composition, which connects functions in order. You will follow that connection through tables, graphs, and formulas, then check both stages to find the allowed starting inputs. Finally, you will split a complicated formula into the jobs that build it. The practice covers the kinds of questions used in section 1.4: arithmetic combinations, compositions in either order, tables, graphs, domains, and splitting a formula.

Lessons

  1. Combine two functions with arithmetic
  2. Composition passes one answer into the next function
  3. Order changes the result, and units must fit
  4. Follow a composition through tables
  5. Follow a composition across two graphs
  6. Evaluate formulas one number at a time
  7. Substitute the whole inside expression
  8. A composite domain has two gates
  9. Square roots add boundary checks
  10. Decompose by naming the inside and outside jobs

Vocabulary

Function
A rule that gives exactly one output for each input it accepts.
Input
The starting value you give a function. It goes inside the parentheses in function notation.
Output
The answer a function produces from an accepted input.
Evaluate
Find the output of a function or the value of an expression for a given input.
Algebraic operations
The familiar actions of addition, subtraction, multiplication, and division, applied to numbers or expressions.
Sum of functions
A new function that adds two outputs produced from the same input. Both original functions must accept that input.
Difference of functions
A new function that subtracts one output from another at the same input. Subtract the entire second expression.
Product of functions
A new function that multiplies two outputs produced from the same input. Both original functions must accept that input.
Quotient of functions
A new function that divides two outputs at the same input. Both outputs must exist, and the bottom output must not be zero.
Ratio
A comparison made by division. The first amount is divided by the second, so the second must not be zero.
Domain
All inputs for which a function is defined.
Range
All outputs a function actually produces from its allowed inputs.
Undefined
Having no permitted output under the rule being used, as with division by zero or a negative real square-root radicand.
Composition of functions
Using the output of one function as the input of another function.
Composite function
The new function produced by composition. Its single rule carries an input through both original functions in order.
Composition operator
The open-circle symbol ∘ that joins two function names to indicate composition.
Binary operation
An operation that takes two starting objects and produces one result. Here binary means two objects, rather than the computer digits 0 and 1.
Inner function
The function evaluated first in a composition. Its output becomes the next function's input.
Outer function
The function evaluated second in a two-function composition. It receives the inner function's output.
Commutative
Describing an operation whose result stays the same when the order is reversed. Function composition usually does not have this property.
Unit
The named measure attached to a quantity, such as hours, miles, gallons, or dollars.
Substitution
Replacing a variable with a number or expression everywhere that variable appears. Parentheses hold a multi-term replacement together.
Domain of a composite
Inputs the inner function accepts and whose inner outputs the outer function accepts.
Radicand
The number or expression inside a root symbol. A real square root requires its radicand to be nonnegative.
Square root
The nonnegative number whose square is the given nonnegative number. Here the √ symbol names that one nonnegative value.
Reciprocal
One divided by a nonzero number. A fraction's reciprocal swaps its top and bottom, and their product is 1.
Decomposition
Writing a function as a composition of simpler functions by naming an inside job and an outside job.
Component functions
The individual functions that make up a composite function.
Interval notation
A way to write stretches of the number line. Brackets include finite endpoints; parentheses exclude endpoints and always accompany infinity.
Intersection
The values shared by all the sets or conditions being combined.
Absolute value
A number's distance from zero, written with vertical bars. Distance is never negative.
Ordered pair
Two coordinates written (x, y). The first gives horizontal position and the second gives vertical position.
x-axis
The horizontal number line of a coordinate graph. A function's inputs are read here.
y-axis
The vertical number line of a coordinate graph. A function's outputs are read here.
Function composition
Another name for composition of functions: one function's output becomes another function's input.
Formula
A written rule using numbers, symbols, and operations to describe how a quantity is calculated.
Variable
A symbol that stands for a number or quantity. Its value may change or may be the unknown you need to find.
Table
An organized display of matching values. In a function table, each input and its output share a column or row.
Graph
A picture of coordinate pairs. A function graph shows each input horizontally and its output vertically.
Denominator
The bottom of a fraction. It names the divisor and cannot be zero.
Real number
A number on the ordinary number line, including negatives, zero, fractions, and numbers such as 2.
Order of operations
The agreed calculation order: parentheses, exponents, multiplication and division left to right, then addition and subtraction left to right.
Nonnegative
Greater than or equal to zero. Zero is included, while positive means greater than zero and excludes zero.
Union
The values that belong to at least one of the sets being combined. The symbol is ∪.
Difference of squares
One squared expression minus another. It factors into the first expression minus the second, times the first plus the second.
Factor
One of the quantities multiplied together in a product.
Factoring
Rewriting an expression as a product of factors without changing its value.
Cancellation
Dividing a fraction's top and bottom by the same nonzero factor. It preserves the value on the original domain.
Binomial
An algebraic sum or difference with two terms, such as x + 2 or 3x − 1.
Fraction
One number divided by another nonzero number. The top is divided by the bottom; equal pieces give a picture of its size.
Exponent
A raised number indicating a power. A positive whole-number exponent counts how many copies of the input are multiplied together.
Intermediate answer
The in-between output of the first function, which becomes the next function’s input.
Nested
Placed inside another expression, like one pair of parentheses inside another.
Linear
A formula built from a constant times the input plus a constant. Its graph is a straight line.
Quadratic
A formula built from a nonzero number times x2, a number times x, and a constant, added together. Its graph is a U shape opening upward or downward.
Constant function
A function that gives the same output for every input it accepts.
Hole
One missing graph point, shown with an open dot. Its input does not have that plotted value.
Descriptive variable
A letter chosen to remind you what it measures, such as d for day, T for temperature, or C for cost.
Solve
Find every input that makes a stated equality or inequality true. This differs from evaluating at a given input.
Endpoint
A boundary number at an end of an interval. A bracket includes it; a parenthesis leaves it out.
Set-builder notation
A set written by describing the condition its members must satisfy. The bar reads such that.
Like terms
Terms with the same variable part and powers. Their number factors can be added or subtracted.
Distribute
Multiply each term inside parentheses by the outside factor.
Equation
A statement that two expressions have equal values.
Inequality
A comparison saying less than, greater than, or either relation with equality allowed. It can describe many permitted inputs rather than one number.
Numerator
The top of a fraction. It is the amount divided by the denominator.
Power
The result of repeatedly multiplying a number or expression by itself. A positive whole-number exponent counts the copies.

Quick checks

Let f(x) = x2 + 2 and g(x) = 4x. Find f(g(1)) and g(f(0)). You want the output of each two-step route.
  • f(g(1)) = f(4) = 18, because g acts first.
  • g(f(0)) = g(2) = 8, because f acts first.
Use the two pictured complete tables. Find p(q(2)); then find every start x for which p(q(x)) = 5. The first gives an input and asks for an output; the second gives an output and asks for inputs.
  • p(q(2)) = p(3) = 4.
  • p(q(x)) = 5 requires q(x) = 1, so x = 1 or x = 4, because only p(1) is 5 and the q output 1 appears in those two columns.
p(t) counts pages printed in t minutes, and w(n) gives grams of ink used for n pages. What does w(p(8)) measure, and why does p(w(8)) lack the stated meaning?
  • w(p(8)) measures grams of ink used in 8 minutes of printing, because pages are the shared handoff.
  • p(w(8)) passes grams to a rule expecting minutes, so its units do not match.
Let f(u) = 2u−4 and g(x) = x+11. Find the domain of f(g(x)). You want starts where the root exists and its answer does not make the outer bottom zero.
  • [−11, 5) ∪ (5, ∞), because x ≥ −11 makes the root real and x+11 = 4 gives x + 11 = 16, hence excluded start 5. At 5 the root is 4 and the outer bottom is 0
  • at −11 the outer bottom is −4 and works.
Let f(x) = 5x − 2. Find f(f(x)). You want to feed the first answer into the same rule again.
f(f(x)) = 5(5x − 2) − 2 = 25x − 12, because the second application acts on the entire first answer, rather than squaring that answer.
Let g(x) = x − 7 and f(u) = u. Find the domain of f(g(x)). You need the inner output to be allowed under the root.
[7, ∞), because x − 7 ≥ 0 gives x ≥ 7 and 0 is defined at the endpoint.
Now use g(x) = x − 7 and f(u) = 1u. Is input 7 still allowed? Find the domain.
  • Input 7 is excluded.
  • Domain: (7, ∞), because the denominator x−7 must be real and nonzero, requiring x − 7 > 0.
The pictures show g(x) = 6 − x and f(x) = x2 with no answer labels. Read f(g(2)) from the grid. You want the height on g at input 2, then the height on f at that new input.
g(2) = 4, then f(4) = 16, because the first height becomes the second horizontal input.

Before you start

  • Explain it like I am five: pass one answer to the next machine

    Picture two machines connected by a short belt. A machine is a rule that takes a starting number, called its input, and gives one answer, called its output. You send 2 into a machine that adds 1. It sends out 3.

    The belt carries that 3 into a second machine that doubles its input. Doubling means adding a number to itself, so 3 becomes 3 + 3 = 6. The second machine receives the first answer.

    This connection is called composition. It is useful when one answer supplies information the next job needs. To find a heating bill for a day, you first find that day's temperature. You then hand the temperature to the heating-cost rule. The starting day and the final dollar amount are linked through the temperature.

  • Function notation and replacing an input

    Picture a vending machine with one item for each accepted button. A function works like that: you choose an input, the rule acts, and you receive one output. A number machine can say to double the input and add 1. With input 3, doubling means 3 + 3 = 6, and the output is 7. The written recipe f(x) = 2x + 1 is a formula. f names the recipe; x names its input slot. Read f(3) aloud as f of 3. Evaluate means find the output. Substitution means replace the input letter wherever it occurs.

  • Signed numbers and order of operations

    Picture your bank balance. Adding 5 dollars raises it by 5. Subtracting 5 dollars lowers it by 5. Removing a debt raises it, which is why subtracting a negative adds: 2 − (−3) = 5. Multiplying by a negative reverses direction; two reversals restore the original direction, so a negative times a negative is positive. Order of operations is the agreed reading order for a formula. The memory cue PEMDAS means parentheses, exponents, multiplication and division, addition and subtraction. The paired operations share a level and go left to right. A positive whole number used as an exponent counts the copies you multiply: 32 means 3 × 3.

  • Distribute a factor and subtract a whole expression

    Imagine buying two identical bags. Each bag contains 3 apples and 1 orange. Two bags contain 2 × 3 apples and 2 × 1 orange. A factor is a number or expression multiplied by another amount. Distributing means multiplying every part inside a group by the factor outside it. A minus sign before a group means subtract the entire group. You can think of it as multiplying the group by −1. That changes the sign of every piece inside, including a piece that was already negative. Keep the group in parentheses until each part has received the outside factor. A term is one piece joined to other pieces by addition or subtraction, such as 3x or −2 in 3x − 2.

  • Multiply two groups and expand a square

    When x is positive, a rectangle with side lengths x + 2 and x + 3 can be cut into four smaller rectangles. Their areas are x × x, x × 3, 2 × x, and 2 × 3. Adding those four areas gives the whole area. Multiplying two groups follows the same pattern: every term in the first group multiplies every term in the second. A group with two terms is called a binomial. Squaring a binomial means multiplying the entire group by another copy of itself. It creates two matching middle pieces, so those pieces must be included.

  • Replace an input with a whole expression

    Think of one restaurant order held together in a bag. An input can be one number or a whole expression. Keep the whole replacement in parentheses, as you would keep the entire order together before processing it. Every copy of the old input letter gets the same bag. A formula with two input slots needs that replacement twice. This is substitution with an expression, and the previous refreshers have now taught the distribution and powers needed to carry it out.

  • Fractions, reciprocals, and division

    A fraction is a division: 34 means 3 ÷ 4, or three equal quarter-pieces of one whole. The denominator tells how many equal pieces make one whole; the top counts those pieces. In 34, each piece is one quarter, and you have three of them. To add pieces, first make their sizes match. To multiply fractions, multiply the tops and multiply the bottoms. A reciprocal is the upside-down version of a nonzero number, such as 23 and 32. Dividing by a fraction asks how many of those pieces fit into your amount. It gives the same answer as multiplying by the fraction's reciprocal. A zero bottom makes division undefined, meaning it has no permitted numerical answer: no number times 0 gives 1, and every number times 0 gives 0, so 00 has no unique answer. The sign ≠ means not equal to.

  • Factor a difference of squares and cancel safely

    Factoring reverses multiplication. You turn one expression into a product of smaller pieces. Each multiplied piece is a factor. A difference of squares means one squared quantity minus another, such as x2 − 12. It becomes (x − 1)(x + 1). Think of unwrapping a package to see the matching pieces hidden inside. A fraction can lose a matching factor from its top and bottom only when that factor is not zero. Record the original forbidden input before cancellation. A shorter formula cannot repair a division that was impossible at the start. The accepted-input list is called the domain. Undefined means the calculation has no permitted numerical answer, as with a zero bottom.

  • Solve a linear equation or a fraction equation

    An equation says the two sides have the same value. Picture a balanced scale. Adding the same amount to both pans keeps it balanced; dividing both amounts by the same nonzero number does too. Solving means finding the input that makes the equality true. A linear equation has the unknown to the first power, such as 3x − 2 = 4. A fraction equation may become linear after you multiply by its denominator. Record where that denominator is zero first, because an illegal input can never become a solution.

  • Real square roots, nonnegative outputs, and absolute value

    Think of a square tile with area 9. Its side length is 3, because 3 × 3 = 9. A square root names that nonnegative side length. Nonnegative means zero or greater, so 0 = 0 belongs with the positive roots. The number inside a root is the radicand. A real number is a number on the ordinary number line. Every real square is nonnegative, so a negative radicand has no real square root. Absolute value means distance from zero, so |−3| = 3 and |3| = 3. The symbol > means greater than, < means less than, ≥ means greater than or equal to, and ≤ means less than or equal to. Equality is included only in the last two comparisons. An even root undoes a power of 2, 4, or another positive even whole number. Even means divisible by 2 with no remainder. A square root undoes a power of 2, and a fourth root undoes a power of 4. These roots require a nonnegative radicand for real values. The sign ≈ means approximately equal to. A rounded decimal is a nearby value; the radical keeps the exact value.

  • Solve inequalities, including squares and roots

    An inequality compares sizes instead of saying they are equal. On a number line, greater numbers stand farther right. Adding the same number shifts both positions equally and keeps their order. Multiplying both by a positive number changes their positions without reversing order. Multiplying or dividing by a negative reflects them across zero, so the comparison sign reverses. A square condition asks about distance from zero. A root condition needs a real root first. You may square both sides to remove a root only after checking that both sides are nonnegative.

  • Solve a square-root equation

    Picture a square tile whose side must be 4. Its area must be 4 × 4 = 16. A square-root equation asks which inside amount gives a chosen root output. Squaring both sides undoes a square root when its requested output is zero or more. A negative requested output cannot work, because the root symbol always chooses a nonnegative value. After squaring, check the answer in the original root equation, the same way you would check the original tile size after a measurement.

  • Domain, intervals, union, and intersection

    Think of a machine's accepted-input list. Its domain is every input for which it can produce an answer. Its range is the outputs it actually produces. Interval notation packages a stretch of the number line: a bracket includes an endpoint and a parenthesis leaves it out. Infinity describes an unending direction, not a number you can include. Union means keep points in either allowed piece. Intersection means keep only points shared by all conditions. Arithmetic combinations need both functions to accept the same starting input, so their restrictions meet by intersection. A finite endpoint is an ordinary number, rather than infinity.

  • Read a table downward or upward

    A table is a list of input-output addresses arranged in matching columns. The top cell tells you what enters; the bottom cell tells you what comes out. Read down a column to evaluate a function at a given input. If you are given an output and asked which inputs make it, scan the bottom row and read upward from every match. For this refresher, the table lists every input this function accepts. It accepts only those shown inputs. That statement matters: a partial table would leave unlisted inputs unknown rather than prove them undefined.

  • Read graph coordinates as input and output

    A graph is a picture of input-output addresses. Its horizontal line is the x-axis, where you read inputs. Its vertical line is the y-axis, where you read outputs. An ordered pair (2, 5) means 2 across and 5 up, so it shows input 2 giving output 5. Think of finding an address on a map: travel across first, then up or down. To evaluate from a graph, start at the input on the x-axis, move vertically to the curve, then read that point's height on the y-axis.

  • Read a percentage discount

    Picture a price split into 100 equal parts. Percent means out of 100. A 25% discount removes 25 of those parts and leaves 75 of them. You can find the price that remains by multiplying by 75100, which is 0.75. A fixed coupon removes a stated dollar amount instead. These are different kinds of instructions, so a store applying both instructions may get different answers when their order changes.