Combine two functions with arithmetic
Imagine two pay envelopes for the same year. One person earned f(x) dollars and another earned g(x) dollars. To find their household income, you open both envelopes and add the amounts. You use the same year for both people. Algebraic operations on functions work this way: get two answers at the same input, then add, subtract, multiply, or divide those answers. You are making a new function from two old ones. A sum of functions adds the outputs. A difference of functions subtracts them. A product of functions multiplies them. A quotient of functions divides them, provided the bottom answer is not zero.
- Substitution. Replace the input letter everywhere: − 1 at x = 3 gives − 1 = 8.
- Subtracting parentheses. A minus outside reverses every sign: −(x − 1) = −x + 1.
- Factoring. − 1 = (x − 1)(x + 1), because the middle terms cancel when multiplied.
- Domain. A denominator cannot be zero: excludes x = 1.
- Shared factor. − x = x·x − x·1 = x(x − 1). Distributing x rebuilds the two terms.
- Multiplying powers. x· = x·x·x = , because three copies of x are multiplied.
Use inputs allowed by both functions; for the quotient also require g(x) ≠ 0.
f plus g of x; f times g of x; f divided by g of x
Put one input into both recipes, then combine their two outputs.
- (f + g)(x) = f(x) + g(x)
- (f − g)(x) = f(x) − g(x)
- (fg)(x) = f(x)·g(x)
- ()(x) =
- f + g names a recipe; (f + g)(2) names its output at 2
Two pay envelopes for the same year.
At one year, open both pay envelopes. Adding their amounts gives the total for that year; using different years would answer a different question. At year 2, the two incomes are 38400 and 43600 dollars. Together they give 82000 dollars in the pictured household column.
If f(2) = 3 and g(2) = 4, the sum at 2 is 7 and the product at 2 is 12. You combine 3 and 4 after evaluating, rather than putting 3 through g.
.1Sum of functions
A sum collects two amounts. If f and g represent incomes in the same currency and year, their sum is household income. Both amounts must exist before you can add them.
- (f + g)(x) = f(x) + g(x).
- The domain is the intersection of the original domains: inputs accepted by both.
- The shared input may be a date or an item name instead of a number; both outputs must be real numbers.
- Addition and subtraction need matching units or two unitless outputs. If two price rules for the same book give 12 dollars and 8 dollars, their sum is 20 dollars because the quantities match.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Sum of functions
A sum collects two amounts. If f and g represent incomes in the same currency and year, their sum is household income. Both amounts must exist before you can add them.
- (f + g)(x) = f(x) + g(x).
- The domain is the intersection of the original domains: inputs accepted by both.
- The shared input may be a date or an item name instead of a number; both outputs must be real numbers.
- Addition and subtraction need matching units or two unitless outputs. If two price rules for the same book give 12 dollars and 8 dollars, their sum is 20 dollars because the quantities match.
A sum collects two amounts. If f and g represent incomes in the same currency and year, their sum is household income. Both amounts must exist before you can add them.
For f(x) = x + 1 and g(x) = 2x, find (f + g)(x). You want one formula for the total output at any input. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- (f + g)(x) = (x + 1) + 2x.A sum adds the original function outputs.
- x + 2x + 1 = 3x + 1.One x and two x amounts make three x amounts.
- Write the input beside both function names before adding.
.2Difference of functions
A difference compares two outputs at one input. Think of money earned minus money spent in one month. Subtract the whole second amount, including every term in its formula. In a cup-selling model, profit is revenue minus cost. If R(x) = 3x and C(x) = 0.75x + 18 dollars, profit is 2.25x − 18 dollars. At 24 cups, 72 dollars earned minus 36 dollars spent leaves 36 dollars.
- (g − f)(x) = g(x) − f(x).
- Subtraction order matters: a − b and b − a usually differ.
- Pulling out a factor. − x = x·x − x·1 = x(x − 1), because both terms contain x.
Difference of functions
A difference compares two outputs at one input. Think of money earned minus money spent in one month. Subtract the whole second amount, including every term in its formula. In a cup-selling model, profit is revenue minus cost. If R(x) = 3x and C(x) = 0.75x + 18 dollars, profit is 2.25x − 18 dollars. At 24 cups, 72 dollars earned minus 36 dollars spent leaves 36 dollars.
- (g − f)(x) = g(x) − f(x).
- Subtraction order matters: a − b and b − a usually differ.
A difference compares two outputs at one input. Think of money earned minus money spent in one month. Subtract the whole second amount, including every term in its formula. In a cup-selling model, profit is revenue minus cost. If R(x) = 3x and C(x) = 0.75x + 18 dollars, profit is 2.25x − 18 dollars. At 24 cups, 72 dollars earned minus 36 dollars spent leaves 36 dollars.
Let f(x) = x − 1 and g(x) = − 1. Find (g − f)(x). You want the g output minus the whole f output. Plan: keep the second output in parentheses, change both of its signs, then collect matching terms.
- (g − f)(x) = ( − 1) − (x − 1).The requested order is g minus f.
- = − 1 − x + 1.Subtracting x − 1 means adding its opposite, −x + 1.
- = − x = x(x − 1).The constants −1 and +1 cancel, and both remaining terms contain a factor x.
- Put parentheses around the second function before distributing the subtraction.
.3Product of functions
A product multiplies two outputs at the same input. If one output is a price per ticket and the other is the number of tickets, their product is the total price. Multiplication may change the units.
- (fg)(x) = f(x)·g(x).
- The product needs both functions defined, but an output of zero is allowed.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Product of functions
A product multiplies two outputs at the same input. If one output is a price per ticket and the other is the number of tickets, their product is the total price. Multiplication may change the units.
- (fg)(x) = f(x)·g(x).
- The product needs both functions defined, but an output of zero is allowed.
A product multiplies two outputs at the same input. If one output is a price per ticket and the other is the number of tickets, their product is the total price. Multiplication may change the units.
Let f(x) = x + 2 and g(x) = . Find (fg)(x). You want to multiply their outputs at the same x. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- (fg)(x) = (x + 2).The product multiplies f(x) by g(x).
- = x· + 2· = + 2.Distribution multiplies both terms, and x times contains three factors x.
- A multiplication dot belongs between the two output expressions.
.4Quotient of functions
A quotient is a ratio: one output divided by another at the same input. The denominator is the bottom expression. It must not be zero, even if later cancellation makes the formula look harmless. The same cost model gives average cost per cup as , for x > 0 cups. At 24 cups, = dollars per cup. Zero cups cannot supply a cost per cup because division by zero fails.
- ()(x) = , with both functions defined and f(x) ≠ 0.
- Equal functions need matching domains and matching outputs, not only matching simplified formulas.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Quotient of functions
A quotient is a ratio: one output divided by another at the same input. The denominator is the bottom expression. It must not be zero, even if later cancellation makes the formula look harmless. The same cost model gives average cost per cup as , for x > 0 cups. At 24 cups, = dollars per cup. Zero cups cannot supply a cost per cup because division by zero fails.
- ()(x) = , with both functions defined and f(x) ≠ 0.
- Equal functions need matching domains and matching outputs, not only matching simplified formulas.
A quotient is a ratio: one output divided by another at the same input. The denominator is the bottom expression. It must not be zero, even if later cancellation makes the formula look harmless. The same cost model gives average cost per cup as , for x > 0 cups. At 24 cups, = dollars per cup. Zero cups cannot supply a cost per cup because division by zero fails.
For f(x) = x − 1 and g(x) = − 1, find ()(x). You want the g output divided by the f output and the inputs where that division works. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- ()(x) = . Require x ≠ 1.The original bottom x − 1 is zero at 1.
- − 1 = (x + 1)(x − 1).Multiplying these factors gives − x + x − 1, so the middle terms cancel.
- = x + 1, while keeping x ≠ 1.A common nonzero factor can be divided out; at 1 that factor is zero, so cancellation was never legal there.
- ()(x) = x + 1, with x ≠ 1.
- Domain: (−∞, 1) ∪ (1, ∞).
- Write excluded inputs before factoring.
- 1. Find the requested operation and its order. g − f means the g answer minus the f answer.
- 2. Use the same input in both original functions, because their outputs must refer to the same starting value.
- 3. Record where both formulas work and, for division, where the bottom output is nonzero.
- 4. Put each whole expression in parentheses before combining it. Simplify while keeping every original domain restriction.
- 5. Check one permitted input directly in the original functions.
Combine two functions and keep their domains
- Write the accepted inputs of each original function. Keep inputs accepted by both.
- For a quotient, solve bottom function = 0 to locate the additional inputs to remove. Plug each proposed excluded input back into that bottom.
- Substitute the formulas with parentheses around the whole second expression.
- Simplify and keep all original exclusions. Check using the two original outputs.
Let f(x) = x + 1 and g(x) = 2x. Find their sum, difference f − g, product, and quotient f divided by g at input 2. The question asks you to get both outputs at 2, then combine those outputs in four ways. Plan: evaluate both functions at the same input 2, combine their outputs in four ways, then derive the four combined formulas.
- f(2) = 2 + 1 = 3 and g(2) = 2 × 2 = 4.Both functions receive input 2, so both answers describe that same input.
- (f + g)(2) = 3 + 4 = 7.The sum adds the two outputs.
- (f − g)(2) = 3 − 4 = −1.The written order puts the f output first.
- (fg)(2) = 3 × 4 = 12.The product multiplies the outputs.
- ()(2) = .The quotient divides the f output by the nonzero g output.
- As formulas, (f + g)(x) = (x + 1) + 2x = 3x + 1 and (f − g)(x) = (x + 1) − 2x = 1 − x.Only matching x terms combine; the written subtraction order stays fixed.
- (fg)(x) = (x + 1)(2x) = 2 + 2x, and ()(x) = , requiring x ≠ 0.Distribution multiplies both terms. The quotient removes the input 0 that makes 2x zero.
- Sum: 7.
- Difference: −1.
- Product: 12.
- Quotient: .
Let p(x) = x + 5 and q(x) = 2. This is a constant function: it returns the same output 2 for every input. Find (p − q)(x). You want the first output minus 2. Plan: write the original outputs with parentheses, record any forbidden input, then simplify and check.
- (p − q)(x) = (x + 5) − 2.Subtraction acts on the two outputs.
- = x + 3.5 − 2 = 3.
Let p(x) = + 4 and q(x) = 2x − 3. Find (p − q)(x). You must subtract both terms of q. Plan: write the original outputs with parentheses, record any forbidden input, then simplify and check.
- (p − q)(x) = + 4 − (2x − 3).Parentheses keep the second formula together.
- = + 4 − 2x + 3 = − 2x + 7.Subtracting −3 adds 3.
Rewrite − 16 as a product. You want two factors whose multiplication recreates the original expression. Plan: recognize − , use the difference and sum of x and 4, then multiply to check.
- 16 = , so − 16 = − .This is a difference of two squares.
- − = (x − 4)(x + 4).Expanding gives + 4x − 4x − 16; the middle terms cancel.
Let p(x) = − 16 and q(x) = x − 4. Find ()(x) and its domain. You want a quotient formula and every permitted input. Plan: write the original outputs with parentheses, record any forbidden input, then simplify and check.
- Start with and record x ≠ 4.The original denominator must be nonzero.
- Factor the top: . − 16 is a difference of squares.
- Cancel the factor x − 4 to obtain x + 4, still with x ≠ 4.The cancellation divides by a factor known to be nonzero only on that restricted domain.
- ()(x) = x + 4, x ≠ 4.
- Domain: (−∞, 4) ∪ (4, ∞).
Let p(x) = x − 3 and q(x) = − 9. Find (pq)(x), ()(x), their domains, and whether they are the same function. You want to multiply the outputs, then divide them. Plan: identify the original bottom zeros before factoring or canceling.
- (pq)(x) = (x − 3)( − 9).A product multiplies outputs at one shared input.
- = x· + x(−9) + (−3) + (−3)(−9).Every term in the first group multiplies every term in the second.
- = − 9x − 3 + 27 = − 3 − 9x + 27.x· contains three x factors, and two negative factors make positive 27.
- For the quotient, start with . Solve − 9 = 0, so = 9 and x = 3 or x = −3.This finds both inputs that would make the original bottom zero, so both must be removed.
- Check: − 9 = 0 and (−3 − 9 = 0. Exclude both 3 and −3.Substitution confirms that both original divisions fail.
- Factor − 9 = (x − 3)(x + 3). Then = , with both exclusions retained.Canceling a common nonzero factor preserves outputs only where the original quotient existed.
- At x = 4, (pq)(4) = 1 × 7 = 7 and ()(4) = .Two different outputs at one shared allowed input prove the functions are different.
- (pq)(x) = − 3 − 9x + 27, domain (−∞, ∞).
- ()(x) = , domain (−∞, −3) ∪ (−3, 3) ∪ (3, ∞).
- They are different functions.
Let f(x) = and g(x) = . Find f + g, f − g, fg, f/g and g/f with their domains. You want formulas and the inputs each operation can accept. Plan: overlap the two original domains, then remove any zero bottom output for each quotient.
- f needs x + 6 ≥ 0, so x ≥ −6. g needs x − 5 ≠ 0, so x ≠ 5.The root requires a nonnegative inside, and the fraction requires a nonzero bottom.
- The overlap is [−6, 5) ∪ (5, ∞).Arithmetic needs both original outputs at the same starting input.
- (f + g)(x) = + ; (f − g)(x) = − ; (fg)(x) = .Apply the requested operation to the two complete outputs.
- For f/g, g(x) never equals zero on its domain, since its top is 2. Thus ()(x) = × = .Division multiplies by the reciprocal of the nonzero bottom output.
- For g/f, also require ≠ 0. It equals zero at x = −6, because = 0. Remove −6.This finds and confirms the extra starting input that would make the quotient bottom zero.
- ()(x) = , with domain (−6, 5) ∪ (5, ∞).The bottom combines the original fraction bottom and the root output; both must stay nonzero.
- (f + g)(x) = + , domain [−6, 5) ∪ (5, ∞).
- (f − g)(x) = − , domain [−6, 5) ∪ (5, ∞).
- (fg)(x) = , domain [−6, 5) ∪ (5, ∞).
- ()(x) = , domain [−6, 5) ∪ (5, ∞).
- ()(x) = , domain (−6, 5) ∪ (5, ∞).
- Know cold.
Arithmetic gives both functions the same input. Memory cue: same input, two answers, one operation.
Composition runs the inner function first. Memory cue: read ∘ as after, so f ∘ g means f after g.
Replace every input slot with the whole expression. Memory cue: every slot gets the whole package.
Check both domain gates. Memory cue: gate 1 checks x, gate 2 checks the first answer.
An ordinary root permits zero; a denominator forbids it. Memory cue: root zero can stay, bottom zero goes away.
When decomposing, identify the last operation. Memory cue: the last calculator step is the outer function. - Understand, then rebuild when needed.
Expanded sums, products, factorizations, and composition formulas can be recreated with substitution and distribution. Do not memorize each final formula.
Rebuild a table or graph path by carrying the inner output to the outer input.
Rebuild domain intervals from the allowed points and the endpoint checks.
Rebuild a decomposition by identifying the final operation, then recomposing to check. - Put on the cheat sheet for study.
Arithmetic: (f + g)(x) = f(x) + g(x); (f − g)(x) = f(x) − g(x); (fg)(x) = f(x)·g(x); ()(x) = . Use the shared domain, with g(x) ≠ 0 for the quotient.
Composition: (f ∘ g)(x) = f(g(x)). Its domain keeps x allowed by g and g(x) allowed by f.
Roots: needs A ≥ 0; needs A > 0.
Square expansion: (a + b = + 2ab + . Difference of squares: − = (a − b)(a + b).
Intervals: brackets include finite endpoints, parentheses exclude them, and infinity always takes parentheses.
This is a study sheet. For a closed-book exam, practice recalling the short definitions and rebuilding the rest without looking. - A function name before parentheses means input: f(2) reads f of 2. A number before parentheses means multiplication: 3(2) = 6.