K12 Prep

Mathematics 30-1 · Function Operations and Composition

Adding, subtracting, multiplying and dividing functions

Jump to:What it’s aboutWorked exampleTypical mistakesCheck
Key points in brief

Choose ff, gg and an operation. The thick curve is the result. Move aa to see the values at one point.

— f · — g · — result

What it’s about

Functions with the same input can be combined like numbers. Revenue minus cost gives profit; a price times a quantity gives a total.

The four operations

With f(x)=x2−1f(x) = x^2 - 1 and g(x)=2x+1g(x) = 2x + 1: (f+g)(x)=x2+2x(f + g)(x) = x^2 + 2x, (f−g)(x)=x2−1−(2x+1)=x2−2x−2(f - g)(x) = x^2 - 1 - (2x + 1) = x^2 - 2x - 2, (f⋅g)(x)=(x2−1)(2x+1)(f \cdot g)(x) = (x^2 - 1)(2x + 1), (fg)(x)=x2−12x+1\left(\frac{f}{g}\right)(x) = \frac{x^2 - 1}{2x + 1}.

Values at a point

f(x)=2x−1f(x) = 2x - 1, g(x)=x2+3g(x) = x^2 + 3: f(2)=3f(2) = 3, g(2)=7g(2) = 7, so (f⋅g)(2)=21(f \cdot g)(2) = 21 and (f−g)(2)=−4(f - g)(2) = -4. You do not need the expression first.

From a table or graph, read f(a)f(a) and g(a)g(a) at the same aa, then combine.

Two operations

f(x)=xf(x) = x, g(x)=x+1g(x) = x + 1, k(x)=3k(x) = 3: h(x)=(f⋅g)(x)−k(x)=x(x+1)−3=x2+x−3h(x) = (f \cdot g)(x) - k(x) = x(x + 1) - 3 = x^2 + x - 3.

Worked example

A school club sells nn hoodies. Revenue is R(n)=45nR(n) = 45n and cost is C(n)=25n+300C(n) = 25n + 300, in dollars. Find the profit function P=R−CP = R - C and the profit for 40 hoodies.

Show the solution
  1. P(n)=45n−(25n+300)=20n−300P(n) = 45n - (25n + 300) = 20n - 300.
  2. P(40)=800−300=500P(40) = 800 - 300 = 500 dollars.
  3. Check with the originals: R(40)=1800R(40) = 1800 and C(40)=1300C(40) = 1300, and 1800−1300=5001800 - 1300 = 500 ✓
Typical mistakes (2)
Mistake 1 of 8

Confusing an operation with the composition

f(x)=x+4, g(x)=x2\displaystyle f(x) = x + 4,\ g(x) = x^2
✗ Wrong(f⋅g)(x)=x2+4\displaystyle (f \cdot g)(x) = x^2 + 4
✓ Right(f⋅g)(x)=(x+4)x2=x3+4x2;  x2+4 is f(g(x))\displaystyle (f \cdot g)(x) = (x + 4)x^2 = x^3 + 4x^2;\ \ x^2 + 4 \text{ is } f(g(x))

Why it’s tempting: Both put ff and gg “together”, and f⋅gf \cdot g and f∘gf \circ g even look alike.

Catch it: The dot multiplies outputs. The circle feeds one output into the other function. Say it out loud: “ff times gg” or “ff of gg”.

Mistake 3 of 8

Not distributing the minus sign

(f−g)(x) with f(x)=x2−1, g(x)=2x+1\displaystyle (f - g)(x) \text{ with } f(x) = x^2 - 1,\ g(x) = 2x + 1
✗ Wrongx2−1−2x+1=x2−2x\displaystyle x^2 - 1 - 2x + 1 = x^2 - 2x
✓ Rightx2−1−(2x+1)=x2−2x−2\displaystyle x^2 - 1 - (2x + 1) = x^2 - 2x - 2

Why it’s tempting: Without brackets, the minus seems to belong only to the first term of g(x)g(x).

Catch it: Always write g(x)g(x) in brackets first: f(x)−(g(x))f(x) - (g(x)). Then change every sign inside.

Laws and formulas on this sheet

Operations

Sum(f+g)(x)=f(x)+g(x)\displaystyle (f + g)(x) = f(x) + g(x)
Difference(f−g)(x)=f(x)−g(x)\displaystyle (f - g)(x) = f(x) - g(x)
Product(f⋅g)(x)=f(x) g(x)\displaystyle (f \cdot g)(x) = f(x)\,g(x)
Quotient(fg)(x)=f(x)g(x), g(x)≠0\displaystyle \left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)},\ g(x) \ne 0
Curriculum and sources

Matched to the official curriculum: Alberta Mathematics 30-1. All examples and questions are our own.

Check: 5 questions

Did it stick? Every wrong answer points to the mistake behind it.

Question 1 of 5

If f(x)=x+2f(x) = x + 2 and g(x)=3xg(x) = 3x, then (f+g)(2)(f + g)(2) is

Question 2 of 5

If f(x)=4xf(x) = 4x and g(x)=x−3g(x) = x - 3, then (f−g)(x)(f - g)(x) is

Question 3 of 5

If f(x)=x−1f(x) = x - 1 and g(x)=x+4g(x) = x + 4, then (f⋅g)(x)(f \cdot g)(x) is

Question 4 of 5

If f(x)=x2+2xf(x) = x^2 + 2x and g(x)=x2−x+1g(x) = x^2 - x + 1, then (f−g)(x)(f - g)(x) is

Question 5 of 5

If f(x)=x2+1f(x) = x^2 + 1 and g(x)=x−3g(x) = x - 3, then (f−g)(2)(f - g)(2) is

Official curriculum: Alberta Mathematics 30-1 · Exam information: Alberta.

CA$9.99 · Course pass: Mathematics 30-1

Unlock Mathematics 30-1

Course pass: Mathematics 30-1CA$9.99
  • ✓ Function Operations and Composition
  • ✓ Transformations and Inverses
  • ✓ Polynomial, Radical and Rational Functions
  • ✓ Exponential and Logarithmic Functions
  • ✓ Trigonometry: Angles, the Unit Circle and Graphs
  • ✓ Trigonometric Identities
  • ✓ Permutations, Combinations and the Binomial Theorem

One-time payment, no subscription, no account. New units are added to your pass automatically.

Other coursesComing soon
  • British Columbia Pre-calculus 12

Later: several courses together at a lower price.