Function Operations

Arithmetic operations combine function outputs at the same input, while composition feeds one function’s output into another. Learn to simplify function rules, preserve domain restrictions, evaluate compositions inside out, and model a multi-step cost in the correct order.

Course cover for Function Operations

One Price, Many Steps

Nadia wants to order a handmade teapot from an online shop in England. Its price is in British pounds, but she needs the total cost in US dollars. Before she pays, the order involves a service charge, shipping, and currency conversion

Can one function take the pound price as input and return the total in dollars? The process has two stages: first add the shop’s fees in pounds, then convert the resulting pound total to dollars. Each stage can be represented by a function, with the first stage’s output becoming the second stage’s input

This lesson develops two ways to build new functions from existing ones: combine outputs using addition, subtraction, multiplication, or division; or chain functions using composition. The learning tasks are to interpret the notation, simplify arithmetic combinations, keep necessary domain restrictions, evaluate and write composite rules, and build a model that follows a real process

Reading the Notation

The four arithmetic operations combine the outputs of f and g at the same input x. The notation names a new function and then evaluates that function at x

OperationNotation and ruleMeaning
Addition(f+g)(x) = f(x) + g(x)Add the two outputs.
Subtraction(f-g)(x) = f(x) - g(x)Subtract the entire output of g from the output of f.
Multiplication(fg)(x) = f(x) · g(x)Multiply the two outputs; this is not composition.
Division(f/g)(x) = f(x)/g(x), where g(x) ≠ 0Divide the output of f by the nonzero output of g.

Practice 1 asks you to match (f+g)(x), (fg)(x), and (f/g)(x) to their meanings. The correct relationships are: (f+g)(x) matches f(x) + g(x), the two outputs added at the same input; (fg)(x) matches f(x) · g(x), the product of the two outputs; and (f/g)(x) matches f(x)/g(x), defined only where g(x) ≠ 0. The extra meaning, “f times g times x,” matches none of these notations

Adding and Subtracting Functions

Use the shared pair f(x) = 2x^2 + 5x + 3 and g(x) = 2x + 3 to find (f+g)(x) and (f-g)(x). In each case, read the notation, substitute both full rules, and combine like terms

Adding the outputs

(f+g)(x) = f(x) + g(x) = (2x^2 + 5x + 3) + (2x + 3). The quadratic term is 2x^2, the linear terms combine as 5x + 2x = 7x, and the constants combine as 3 + 3 = 6. Therefore, (f+g)(x) = 2x^2 + 7x + 6

Subtracting the entire second rule

(f-g)(x) = f(x) - g(x) = (2x^2 + 5x + 3) - (2x + 3). Distributing the minus sign gives 2x^2 + 5x + 3 - 2x - 3. Now 5x - 2x = 3x and 3 - 3 = 0, so (f-g)(x) = 2x^2 + 3x

Given f(x) = 6x + 11 and g(x) = x^2 - 4x, find (f-g)(x)

A

-x^2 + 10x + 11

B

-x^2 + 2x + 11

C

x^2 - 10x - 11

D

-x^2 + 10x

Multiplying Functions

Using f(x) = 2x^2 + 5x + 3 and g(x) = 2x + 3, find (gf)(x). Here (gf)(x) = g(x) · f(x), not g(f(x)). Set up the product as (gf)(x) = (2x + 3)(2x^2 + 5x + 3)

Distribute 2x across every term of the quadratic: 2x(2x^2 + 5x + 3) = 4x^3 + 10x^2 + 6x. Then distribute 3 across every term: 3(2x^2 + 5x + 3) = 6x^2 + 15x + 9

Add the partial products, combining matching powers only. The x^2 terms give 10x^2 + 6x^2 = 16x^2, and the x terms give 6x + 15x = 21x. Thus (gf)(x) = 4x^3 + 16x^2 + 21x + 9. This product is a polynomial, so it is defined for all real numbers

Practice 3: Complete the product

Given f(x) = 3x^2 + 3x and g(x) = x + 2, complete the simplified product: (fg)(x) = 3x^3 + ___ x^2 + ___ x. The available coefficients are 9, 6, 3, and 12

Multiplying x by both terms gives 3x^3 + 3x^2; multiplying 2 by both terms gives 6x^2 + 6x. Adding matching powers gives (fg)(x) = 3x^3 + 9x^2 + 6x. The blanks are 9 and 6, respectively. Every term in each factor must participate in the multiplication

Dividing Functions and Domain

Using f(x) = 2x^2 + 5x + 3 and g(x) = 2x + 3, find (f/g)(x). Begin with the original quotient: (f/g)(x) = (2x^2 + 5x + 3)/(2x + 3)

Factor the numerator as (2x + 3)(x + 1). Expanding checks the factorization: (2x + 3)(x + 1) = 2x^2 + 2x + 3x + 3 = 2x^2 + 5x + 3. Therefore, the quotient becomes

$$(2x + 3)(x + 1)$$

/(2x + 3), which simplifies to x + 1 wherever the original denominator is nonzero

Find the excluded input from the original denominator: 2x + 3 = 0 gives 2x = -3, so x = -3/2. The complete answer is (f/g)(x) = x + 1, where x ≠ -3/2

Given f(x) = 5x^2 + 10x and g(x) = x + 2, find (f/g)(x) and its domain

A

5x, where x ≠ -2

B

5x, for all real numbers

C

5x, where x ≠ 0

D

5x, where x ≠ 2

Evaluating Composite Functions

Composition chains functions instead of multiplying their outputs. In f(g(x)), input x enters g first. The output g(x) then becomes the input of f, producing f(g(x)). Read nested function notation from the inside out

Evaluate f(g(2))

Given f(x) = 4x - 2 and g(x) = x^2, find f(g(2)). Start with the inner function: g(2) = 2^2 = 4. Feed that output into f: f(4) = 4(4) - 2 = 14. Therefore, f(g(2)) = 14

Reverse the order: g(f(2))

With the same functions, find g(f(2)). Now f is the inner function: f(2) = 4(2) - 2 = 6. Feed 6 into g: g(6) = 6^2 = 36. Thus g(f(2)) = 36, whereas f(g(2)) = 14

The same functions and starting input produced different results because the order changed. Composition is not commutative: f(g(x)) and g(f(x)) are usually different functions

Given f(x) = 2x^2 and g(x) = 9 - x, find f(g(6))

A

18

B

-63

C

216

D

72

Writing Composite Rules

To write a composite rule in terms of x, substitute the entire inner rule in place of every x in the outer rule. Use f(x) = 2x + 1 and g(x) = 4/(x + 3) to write both orders of composition and state their domains. The function g is undefined at x = -3

Write f(g(x))

Replace x in f with the fraction 4/(x + 3): f(g(x)) = f(4/(x + 3)) = 2(4/(x + 3)) + 1 = 8/(x + 3) + 1. Since the inner function g is undefined at x = -3, this composite inherits that restriction. The result is f(g(x)) = 8/(x + 3) + 1, where x ≠ -3

Write g(f(x))

Reverse the order and replace x in g with 2x + 1: g(f(x)) = g(2x + 1) = 4/((2x + 1) + 3) = 4/(2x + 4). The denominator must not be zero. Solving 2x + 4 = 0 gives x = -2, so g(f(x)) = 4/(2x + 4), where x ≠ -2

CompositeRuleDomain
f(g(x))8/(x + 3) + 1All real x except -3
g(f(x))4/(2x + 4)All real x except -2

Reversing the order changes both the rule and the excluded input in this example. Domain restrictions must be checked for the actual order of composition

Practice 6: Match the composite rules

Given f(x) = x^2 and g(x) = 3x - 2, match f(g(x)) and g(f(x)) to their simplified rules. The candidate rules are (3x-2)^2 = 9x^2 - 12x + 4; 3x^2 - 2; 9x^2 + 4; and 3x^3 - 2x^2

For f(g(x)), the entire binomial enters the squaring rule: f(g(x)) = (3x - 2)^2 = 9x^2 - 12x + 4. For g(f(x)), substitute x^2 into the linear rule: g(f(x)) = 3x^2 - 2. These are the two correct matches. The candidate 9x^2 + 4 omits the middle term from squaring the binomial; 3x^3 - 2x^2 is the product of the two outputs, not either composition

Modeling with Composition

Return to Nadia’s teapot order. The item costs c British pounds. The shop adds a service charge equal to 20% of the item price and an 8-pound shipping fee. The exchange rate is 0.53 British pounds per US dollar. Find one function for the total cost in US dollars, then evaluate it when c = 30 pounds

Stage 1: Find the total in pounds

Start with the item price c, add the service charge 0.20c, and add shipping: P(c) = c + 0.20c + 8 = 1.20c + 8. The input and output of P are both measured in pounds

Stage 2: Convert pounds to dollars

Because 0.53 pounds equals 1 US dollar, m pounds equals m/0.53 dollars. The conversion function is D(m) = m/0.53. It takes an amount in pounds and returns an amount in US dollars

Compose and evaluate

The pound total from P is the input D needs, so the combined function is D(P(c)) = (1.20c + 8)/0.53. This single rule takes the item’s pound price and returns the complete dollar cost

At c = 30, the total in pounds is P(30) = 1.20(30) + 8 = 36 + 8 = 44 pounds. Converting gives D(44) = 44/0.53 ≈ 83.02 dollars. Thus D(P(30)) ≈ $83.02. Evaluating the composed rule directly and evaluating the two stages separately give the same result

Summary

Notation: (f+g)(x) = f(x) + g(x), (f-g)(x) = f(x) - g(x), (fg)(x) = f(x) · g(x), and (f/g)(x) = f(x)/g(x), where g(x) ≠ 0. All four operations combine outputs at the same input

Subtraction: distribute the minus sign to every term of the second function before combining like terms

Division: factor and cancel common factors, but retain the restriction from the original denominator. For the shared quotient example, the simplified rule is x + 1 with x ≠ -3/2

Composition: f(g(x)) works inside out, using g’s output as f’s input. Order matters. An inner function’s restriction carries into the composite, and the resulting rule must remain defined

Modeling: write one simple function per real-world stage, then compose the functions in the order the process happens. In Nadia’s order, fees in pounds come before conversion to dollars

Quiz

Quiz 1: Distribute the subtraction

Given f(x) = x^2 + 6x and g(x) = 4x - 9, complete the distributed subtraction and the result: (f-g)(x) = x^2 + 6x ___ 4x ___ 9 = x^2 + 2x + ___. The available entries are -, +, 9, -9, and 0

The entries are -, +, and 9, in that order. Subtracting all of g gives (f-g)(x) = x^2 + 6x - (4x - 9) = x^2 + 6x - 4x + 9 = x^2 + 2x + 9. The minus sign changes both terms of g; subtracting negative nine produces positive nine

Quiz 2: Evaluate inside out

Given f(x) = x^2 - 1 and g(x) = 3x, evaluate g(f(2)) by completing both steps: Step 1, f(2) = ___; Step 2, g(f(2)) = ___. The available values are 3, 9, 6, 35, and 18

The entries are 3 and 9. First, f(2) = 2^2 - 1 = 3. Then that output enters g: g(f(2)) = g(3) = 3(3) = 9. Only the output of f becomes the input of g; the task does not ask for the reverse composition or a product of outputs

Quiz 3: Follow the money

Priya saves part of her paycheck every month. Her net pay is 90% of her gross pay g. Her savings are 20% of her net pay, plus $30. Apply the net-pay stage before the savings stage

Find Priya's monthly savings when her gross pay is $1500

A

$300

B

$330

C

$297

D

$270

Continue with the interactive lesson