DoAssignment.ca

D2.1 · Analyze sums, differences, products, and quotients of functions

Learn to analyze sums, differences, products, and quotients of functions through clear examples and targeted practice.

Ontario Grade 12 Mathematics

Characteristics of Functions

Sums, differences, products, and quotients

A function assigns an output to each allowed input. You can think of a function as a rule or a machine: give it an input, and it returns an output. If two functions describe quantities that depend on the same input, you can combine their outputs. For example, if one function gives the cost of a ride and another gives the cost of a fee, their sum can give the total cost. This lesson focuses on analyzing those combined functions and their domains.

What you will learn

1. Prerequisite bridge: inputs, outputs, and domains

The input of a function is often written as xx. The output of a function ff is written as f(x)f(x). If f(x)=2x+3f(x)=2x+3, then an input of 44 gives the output f(4)=11f(4)=11.
The domain is the set of inputs for which a function is defined. For a polynomial such as f(x)=2x+3f(x)=2x+3, every real number is allowed. For a fraction, an input that makes the denominator zero is not allowed. For example, h(x)=1x−2h(x)=\frac{1}{x-2} is undefined at x=2x=2.
When combining functions, use the same input in both functions. Then combine the outputs as directed. The allowed inputs for the result must work in both original functions. A quotient has one extra restriction: the output of the function in the denominator cannot be zero.
f(x)=2x+3  ⇒  f(4)=11f(x)=2x+3\;\Rightarrow\;f(4)=11

2. Four ways to combine functions

Suppose ff and gg are functions. Their sum adds the two outputs for the same input. Their difference subtracts the output of gg from the output of ff. Their product multiplies the outputs. Their quotient divides the output of ff by the output of gg, where the output of gg is not zero.
The order matters for subtraction and division. In general, subtracting gg from ff is not the same as subtracting ff from gg. Likewise, dividing ff by gg is not the same as dividing gg by ff.
After writing the combined rule, simplify it when possible. Keep track of restrictions from both original functions. For a quotient, also find any inputs that make the denominator function zero. Do not cancel a factor and then forget an excluded input: simplification does not restore an input where the original quotient was undefined.
(f+g)(x)=f(x)+g(x),(f−g)(x)=f(x)−g(x),(fg)(x)=f(x)g(x),(fg)(x)=f(x)g(x)(f+g)(x)=f(x)+g(x),\quad (f-g)(x)=f(x)-g(x),\quad (fg)(x)=f(x)g(x),\quad \left(\frac{f}{g}\right)(x)=\frac{f(x)}{g(x)}

3. Read the operations in context

The meaning of a combined function depends on what the original outputs represent. If f(x)f(x) is the cost of one item and g(x)g(x) is the cost of another item, then (f+g)(x)(f+g)(x) is their total cost. If the functions represent amounts added to and removed from a container, their difference can represent the change in amount.
A product can describe a total built from two changing quantities. For example, if f(x)f(x) is a length and g(x)g(x) is a width, their product can represent the area of a rectangle. A quotient can compare two quantities or describe a rate per unit. The denominator must be nonzero for that quotient to make sense.
A table can help distinguish the operation from the function rule. Each row shows how the outputs are combined for one shared input. The algebraic rules are the same whether the function values come from a formula, a table, or a graph.

4. Guided example: form and analyze all four combinations

Let f(x)=x+2f(x)=x+2 and g(x)=x−1g(x)=x-1. Both rules are defined for every real input. We will write each combined rule, evaluate it at x=3x=3, and identify its domain.
For the sum, add the expressions. For the difference, subtract the entire expression for gg; brackets help preserve the minus sign. For the product, multiply the expressions. For the quotient, place f(x)f(x) over g(x)g(x) and exclude any input that makes the denominator zero.
At x=3x=3, the original outputs are f(3)=5f(3)=5 and g(3)=2g(3)=2. The results below can be checked by combining these two numbers. For the quotient, check the domain before evaluating: g(x)=0g(x)=0 when x=1x=1, so that input must be excluded.

5. Use the rules carefully

A reliable method is to identify the requested operation, substitute both function rules using the same variable, simplify, and then state the domain. For a quotient, solve g(x)=0g(x)=0 and exclude those inputs. Also check whether either original function has its own domain restriction.
In an application, state what the combined output represents. A numerical value alone may not tell the reader whether it is a total, a difference, a product, or a comparison. Keep the units consistent with the operation and context.
The quick check asks you to apply the rules and domain restrictions. For each question, choose one answer. Use the definitions in this lesson, and remember that the order in subtraction and division is important.

How the outputs are combined

OperationCombined output at input xxDomain reminder
Sumf(x)+g(x)f(x)+g(x)Both functions must be defined.
Differencef(x)−g(x)f(x)-g(x)Both functions must be defined; keep the order.
Productf(x)g(x)f(x)g(x)Both functions must be defined.
Quotientf(x)g(x)\frac{f(x)}{g(x)}Both must be defined, and g(x)≠0g(x)\ne0.

Worked example

Combine two linear functions

Given f(x)=x+2f(x)=x+2 and g(x)=x−1g(x)=x-1, find the sum, difference, product, and quotient. State the domain of each, then evaluate each combined function at x=3x=3.
  1. Set up the sum
    Add the outputs of the two functions for the same input. Simplify the resulting expression. Both original rules allow every real input, so the sum does too.
    (f+g)(x)=(x+2)+(x−1)=2x+1(f+g)(x)=(x+2)+(x-1)=2x+1
  2. Set up the difference
    Subtract the full rule for gg from the rule for ff. The brackets show that both terms in g(x)g(x) are being subtracted.
    (f−g)(x)=(x+2)−(x−1)=3(f-g)(x)=(x+2)-(x-1)=3
  3. Set up the product
    Multiply the two output expressions. The product remains defined for every real input because both original functions are defined for every real input.
    (fg)(x)=(x+2)(x−1)=x2+x−2(fg)(x)=(x+2)(x-1)=x^2+x-2
  4. Set up the quotient and domain
    Divide f(x)f(x) by g(x)g(x). The denominator cannot equal zero. Solving x−1=0x-1=0 gives the excluded input x=1x=1.
    (fg)(x)=x+2x−1,x≠1\left(\frac{f}{g}\right)(x)=\frac{x+2}{x-1},\quad x\ne 1
  5. Evaluate and check
    At x=3x=3, the original outputs are 55 and 22. Add, subtract, multiply, or divide those outputs to check the four values from the combined rules.
    (f+g)(3)=7,(f−g)(3)=3,(fg)(3)=10,(fg)(3)=52(f+g)(3)=7,\quad (f-g)(3)=3,\quad (fg)(3)=10,\quad \left(\frac{f}{g}\right)(3)=\frac{5}{2}
Answer: The sum is 2x+12x+1, the difference is 33, the product is x2+x−2x^2+x-2, and the quotient is x+2x−1\frac{x+2}{x-1} with x≠1x\ne1. Their values at x=3x=3 are 77, 33, 1010, and 52\frac{5}{2}, respectively.
Check: Since f(3)=5f(3)=5 and g(3)=2g(3)=2, the four results must be 5+2=75+2=7, 5−2=35-2=3, 5⋅2=105\cdot2=10, and 52\frac{5}{2}. The quotient is defined at 33 because its denominator value is 22, not zero.

Common mistakes and how to avoid them

Subtracting only the first term of the second function.
Correction: Use brackets around the entire second expression. For example, (x+2)−(x−1)(x+2)-(x-1) changes the sign of both terms in the second bracket.
Treating a quotient like an ordinary fraction without checking its denominator.
Correction: Find where the denominator function equals zero and exclude those inputs from the quotient's domain.
Assuming that a simplified rule automatically has the same domain as the original quotient.
Correction: Keep all restrictions from the original functions. An excluded input remains excluded even if a factor cancels during simplification.
Reversing the order of the functions in a difference or quotient.
Correction: Follow the notation exactly: f−gf-g means subtract gg from ff, and fg\frac{f}{g} means divide ff by gg.

Lesson summary

Check your understanding

Question 1

If f(x)=2xf(x)=2x and g(x)=x+3g(x)=x+3, what is (f−g)(x)(f-g)(x)?
  1. x−3x-3
  2. 3−x3-x
  3. 3x+33x+3
  4. 2xx+3\frac{2x}{x+3}
Show answer and explanation
x−3x-3
Subtract the full expression for gg: 2x−(x+3)=x−32x-(x+3)=x-3.

Question 2

Let p(x)=x+4p(x)=x+4 and q(x)=x−2q(x)=x-2. Which input must be excluded from (pq)(x)\left(\frac{p}{q}\right)(x)?
  1. −4-4
  2. 00
  3. 22
  4. 44
Show answer and explanation
22
The denominator function is zero when x−2=0x-2=0, so x=2x=2 is not in the quotient's domain.

Question 3

If a(5)=6a(5)=6 and b(5)=−2b(5)=-2, what is (ab)(5)(ab)(5)?
  1. 44
  2. −12-12
  3. −3-3
  4. 88
Show answer and explanation
−12-12
A product of functions multiplies their outputs at the same input: 6(−2)=−126(-2)=-12.

Key terms

Input
A value supplied to a function.
Output
The value returned by a function for an allowed input.
Domain
The set of inputs for which a function is defined.
Combined function
A function formed by adding, subtracting, multiplying, or dividing the outputs of two functions.

Continue through MHF4U

View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons

About this lesson and its review

Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 12 Mathematics (MHF4U), expectation D2.1. It is a study resource, not an official curriculum publication.

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question