Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MHF4U · Advanced Functions

MHF4U: Sums, Products and Quotients of Functions

Two functions can be combined into a new one by doing arithmetic on their outputs. (f+g)(x)(f + g)(x) means f(x)+g(x)f(x) + g(x): for each xx, add the two yy-values. Subtraction, multiplication and division work the same way, and the only real care needed is with the domain.

How It Works

The four operations. (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x), (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) and (fg)(x)=f(x)g(x)\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}. With equations, substitute and simplify. To evaluate at one number, you can also find f(2)f(2) and g(2)g(2) separately and combine the two numbers.

The domain. A combination is only defined where both ff and gg are, so its domain is the overlap of the two domains. A quotient also leaves out every xx where g(x)=0g(x) = 0. Find the domain from the original functions, before you simplify: x2−9x2−x−6\frac{x^2 - 9}{x^2 - x - 6} simplifies to x+3x+2\frac{x + 3}{x + 2}, but x=3x = 3 is still excluded.

Ordered pairs and graphs. When ff and gg are sets of ordered pairs, keep only the xx-values that appear in both, and combine their yy-values. On a graph, add or subtract the heights of the two curves at the same xx. Where one graph crosses the xx-axis, the sum equals the other function, which makes a useful check.

Applications. Profit is revenue minus cost, P(x)=R(x)−C(x)P(x) = R(x) - C(x), where xx is the number of items sold. Break-even is where P(x)=0P(x) = 0, and the maximum profit of a quadratic profit function is at its vertex.

Even and odd. The product or quotient of two even functions, or of two odd functions, is even; an even times an odd is odd. A sum of an even and an odd function is usually neither.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    For f(x)=3x−2f(x) = 3x - 2 and g(x)=x2+1g(x) = x^2 + 1, find (f+g)(x)(f + g)(x) and (f−g)(2)(f - g)(2).
    Show solution
    1. (f+g)(x)=3x−2+x2+1=x2+3x−1(f + g)(x) = 3x - 2 + x^2 + 1 = x^2 + 3x - 1.
    2. f(2)=4f(2) = 4 and g(2)=5g(2) = 5, so (f−g)(2)=4−5=−1(f - g)(2) = 4 - 5 = -1.

    Answer: (f+g)(x)=x2+3x−1(f + g)(x) = x^2 + 3x - 1; (f−g)(2)=−1(f - g)(2) = -1

  2. Easy

    f={(−1,4),(0,2),(2,5),(3,1)}f = \{(-1, 4), (0, 2), (2, 5), (3, 1)\} and g={(−2,3),(0,−1),(2,4),(3,6)}g = \{(-2, 3), (0, -1), (2, 4), (3, 6)\}. Find f+gf + g and fgfg.
    Show solution
    1. Only x=0,2,3x = 0, 2, 3 appear in both, so −1-1 and −2-2 drop out.
    2. Add the yy-values: (0,2−1)(0, 2 - 1), (2,5+4)(2, 5 + 4), (3,1+6)(3, 1 + 6).
    3. Multiply them: (0,2⋅(−1))(0, 2 \cdot (-1)), (2,5⋅4)(2, 5 \cdot 4), (3,1⋅6)(3, 1 \cdot 6).

    Answer: f+g={(0,1),(2,9),(3,7)}f + g = \{(0, 1), (2, 9), (3, 7)\}; fg={(0,−2),(2,20),(3,6)}fg = \{(0, -2), (2, 20), (3, 6)\}

  3. Medium

    For f(x)=x−1f(x) = \sqrt{x - 1} and g(x)=5−xg(x) = \sqrt{5 - x}, find the domain of f+gf + g and of fgfg, and evaluate (fg)(3)(fg)(3).
    Show solution
    1. ff needs x≥1x \ge 1 and gg needs x≤5x \le 5. Both hold for 1≤x≤51 \le x \le 5.
    2. That overlap is the domain of f+gf + g and of fgfg.
    3. (fg)(3)=2⋅2=2(fg)(3) = \sqrt{2} \cdot \sqrt{2} = 2.

    Answer: Both have domain 1≤x≤51 \le x \le 5; (fg)(3)=2(fg)(3) = 2

  4. Medium

    For f(x)=x2−9f(x) = x^2 - 9 and g(x)=x2−x−6g(x) = x^2 - x - 6, simplify (fg)(x)\left(\frac{f}{g}\right)(x) and state its domain.
    Show solution
    1. Factor: (x−3)(x+3)(x−3)(x+2)\frac{(x - 3)(x + 3)}{(x - 3)(x + 2)}.
    2. g(x)=0g(x) = 0 at x=3x = 3 and x=−2x = -2, so both are excluded.
    3. Cancel the common factor: x+3x+2\frac{x + 3}{x + 2}, still with x≠3x \ne 3.

    Answer: (fg)(x)=x+3x+2\left(\frac{f}{g}\right)(x) = \frac{x + 3}{x + 2}, for x≠−2,3x \ne -2, 3

  5. Test level

    A company's revenue for selling xx items is R(x)=−0.5x2+40xR(x) = -0.5x^2 + 40x dollars and its cost is C(x)=10x+250C(x) = 10x + 250. Find the profit function, the break-even quantities and the maximum profit.
    Show solution
    1. P(x)=R(x)−C(x)=−0.5x2+40x−10x−250=−0.5x2+30x−250P(x) = R(x) - C(x) = -0.5x^2 + 40x - 10x - 250 = -0.5x^2 + 30x - 250.
    2. Break even: −0.5x2+30x−250=0-0.5x^2 + 30x - 250 = 0. Multiply by −2-2: x2−60x+500=0x^2 - 60x + 500 = 0, so (x−10)(x−50)=0(x - 10)(x - 50) = 0.
    3. The vertex is midway between the zeros, at x=30x = 30: P(30)=−450+900−250=200P(30) = -450 + 900 - 250 = 200.

    Answer: P(x)=−0.5x2+30x−250P(x) = -0.5x^2 + 30x - 250; break even at 1010 and 5050 items; maximum profit 200200 dollars at 3030 items

Learn It on Martian Lab

Martian Lab teaches this in the Combining Functions lesson of its MHF4U Combining Functions unit. Watch it, then take the Combining Functions practice tests to see if it stuck.

Watch the Combining Functions lesson free

Start Practicing

No credit card required to start.

Get started