Skip to content
Family Table Math
Auto

Multiplying and Dividing Functions

Just as you can add and subtract functions, you can multiply and divide them. Products and quotients build some of the most useful models there are: revenue is price times quantity, and a bouncing spring that slowly settles down is an exponential function times a sinusoidal one. Trig functions here use radians.

(fg)(x)=f(x) g(x)(fg)(x)=f(x)g(x),g(x)≠0(fg)(x) = f(x)\,g(x) \qquad\qquad \left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}, \quad g(x) \ne 0

Put the same xx into both functions, then multiply or divide the outputs. Careful with notation: (fg)(x)(fg)(x) means the product f(x)⋅g(x)f(x) \cdot g(x). It is not the same as f(g(x))f(g(x)), which is a composition.

  • fgfg: the overlap of the domains of ff and gg (just like f+gf + g).
  • fg\dfrac{f}{g}: the overlap of the domains, and also remove every xx where g(x)=0g(x) = 0.

Find the domain before you simplify. If a factor cancels, its zero is still excluded, and the graph has a hole there instead of an asymptote. This is the same idea as the restrictions on rational expressions.

Think about the y-values of the two pieces at each xx:

  • Zeros: (fg)(x)=0(fg)(x) = 0 exactly when f(x)=0f(x) = 0 or g(x)=0g(x) = 0 (inside the common domain). So the product’s zeros are the zeros of both factors put together.
  • Sign: the product is positive where the factors have the same sign, and negative where they have opposite signs.
  • Where a factor equals 1: if g(x)=1g(x) = 1, then (fg)(x)=f(x)(fg)(x) = f(x), so the graphs meet there. If g(x)=−1g(x) = -1, the product is −f(x)-f(x).
  • Envelopes: since −1≤sin⁡x≤1-1 \le \sin x \le 1, the product f(x)sin⁡xf(x)\sin x always stays between −f(x)-f(x) and f(x)f(x) (when f(x)≥0f(x) \ge 0). The curves y=±f(x)y = \pm f(x) form an envelope that the product bounces between.

A spring, a pendulum, or a guitar string vibrates back and forth, but friction makes each swing a little smaller. That is a sinusoidal function multiplied by a decreasing exponential:

d(t)=A btcos⁡(kt)(0<b<1)d(t) = A\,b^{t}\cos(kt) \qquad (0 \lt b \lt 1)

The cosine supplies the back-and-forth motion, and A btA\,b^{t} is the envelope that shrinks the amplitude toward 00.

The rules work like the signs in multiplication (think of even as ++ and odd as −-):

ffggfgfg and fg\dfrac{f}{g}
eveneveneven
oddoddeven
evenoddodd

For example, if ff and gg are both odd, then (fg)(−x)=f(−x) g(−x)=(−f(x))(−g(x))=f(x) g(x)(fg)(-x) = f(-x)\,g(-x) = \big(-f(x)\big)\big(-g(x)\big) = f(x)\,g(x), so fgfg is even. And tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} is odd divided by even, which is odd.

Example 1: Product and quotient from equations

Section titled “Example 1: Product and quotient from equations”

Let f(x)=2x−1f(x) = 2x - 1 and g(x)=x+3g(x) = x + 3. Find (fg)(x)(fg)(x) and (fg)(x)\left(\dfrac{f}{g}\right)(x), and state the domain of each. Then evaluate (fg)(2)(fg)(2).

Solution.

(fg)(x)=(2x−1)(x+3)=2x2+5x−3(fg)(x) = (2x - 1)(x + 3) = 2x^2 + 5x - 3

Both pieces are defined for all real numbers, so the domain of fgfg is {x∈R}\{x \in \mathbb{R}\}.

(fg)(x)=2x−1x+3\left(\frac{f}{g}\right)(x) = \frac{2x - 1}{x + 3}

g(x)=0g(x) = 0 when x=−3x = -3, so the domain of fg\dfrac{f}{g} is {x∈R∣x≠−3}\{x \in \mathbb{R} \mid x \ne -3\}.

(fg)(2)=2(4)+5(2)−3=15(fg)(2) = 2(4) + 5(2) - 3 = 15. Check: f(2)=3f(2) = 3 and g(2)=5g(2) = 5, and 3×5=153 \times 5 = 15. ✓

Let f(x)=x2−9f(x) = x^2 - 9 and g(x)=x−3g(x) = x - 3. Find (fg)(x)\left(\dfrac{f}{g}\right)(x), state its domain, and describe its graph.

Solution. First the domain: g(x)=0g(x) = 0 at x=3x = 3, so x=3x = 3 is excluded. Now simplify:

(fg)(x)=x2−9x−3=(x−3)(x+3)x−3=x+3,x≠3\left(\frac{f}{g}\right)(x) = \frac{x^2 - 9}{x - 3} = \frac{(x - 3)(x + 3)}{x - 3} = x + 3, \qquad x \ne 3

The domain is {x∈R∣x≠3}\{x \in \mathbb{R} \mid x \ne 3\}. The graph is the line y=x+3y = x + 3 with a hole at x=3x = 3. The hole’s yy-coordinate comes from the simplified form: 3+3=63 + 3 = 6, so the hole is at (3,6)(3, 6).

The graph of y = (x^2 - 9)/(x - 3): the line y = x + 3 with an open circle (a hole) at (3, 6). −4 −2 2 4 −2 2 4 6 8 hole at (3, 6) y = (x² − 9)/(x − 3)
y=x2−9x−3y = \dfrac{x^2 - 9}{x - 3} is the line y=x+3y = x + 3 with the point (3,6)(3, 6) missing.

Compare (gf)(x)=x−3(x−3)(x+3)=1x+3\left(\dfrac{g}{f}\right)(x) = \dfrac{x - 3}{(x - 3)(x + 3)} = \dfrac{1}{x + 3} for x≠±3x \ne \pm 3. Here the factor x+3x + 3 does not cancel, so x=−3x = -3 gives a vertical asymptote, while x=3x = 3 gives a hole at (3,16)\left(3, \tfrac{1}{6}\right).

A weight on a spring is pulled down and released. Its displacement below its resting position (positive means below), in centimetres, after tt seconds is modelled by

d(t)=12(0.8)tcos⁡(πt)d(t) = 12(0.8)^t\cos(\pi t)
  • (a) Find d(0)d(0), d(1)d(1), d(2)d(2) and d(3)d(3), and describe the motion.
  • (b) Find the times in the first 44 s when the weight passes through its resting position.
  • (c) After how many seconds is the envelope less than 11 cm?

Solution.

(a) cos⁡(πt)\cos(\pi t) is 11 at even whole numbers and −1-1 at odd whole numbers:

d(0)=12(1)(1)=12d(1)=12(0.8)(−1)=−9.6d(2)=12(0.64)(1)=7.68d(3)=12(0.512)(−1)=−6.144\begin{aligned} d(0) &= 12(1)(1) = 12 \\ d(1) &= 12(0.8)(-1) = -9.6 \\ d(2) &= 12(0.64)(1) = 7.68 \\ d(3) &= 12(0.512)(-1) = -6.144 \end{aligned}

The weight swings from one side to the other every second, and each swing is 80%80\% as big as the one before. The cosine makes it oscillate with period 2ππ=2\tfrac{2\pi}{\pi} = 2 s, and the factor 12(0.8)t12(0.8)^t shrinks the amplitude.

A damped oscillation d = 12(0.8)^t cos(pi t) bouncing between the dashed envelope curves d = 12(0.8)^t and d = -12(0.8)^t, which shrink toward 0. 1 2 3 4 5 6 7 8 −12 −9 −6 −3 3 6 9 12 (0, 12) (1, −9.6) (2, 7.68) d = 12(0.8)ᵗ cos(πt) envelope d = ±12(0.8)ᵗ t (s) displacement d (cm)
The product bounces between the envelope curves d=±12(0.8)td = \pm 12(0.8)^t.

(b) d(t)=0d(t) = 0 when either factor is 00. The factor 12(0.8)t12(0.8)^t is never 00, so we need cos⁡(πt)=0\cos(\pi t) = 0:

πt=π2,3π2,5π2,7π2⇒t=0.5, 1.5, 2.5, 3.5\pi t = \frac{\pi}{2}, \frac{3\pi}{2}, \frac{5\pi}{2}, \frac{7\pi}{2} \quad\Rightarrow\quad t = 0.5,\ 1.5,\ 2.5,\ 3.5

The weight passes through its resting position at 0.50.5, 1.51.5, 2.52.5 and 3.53.5 s.

(c) Solve 12(0.8)t<112(0.8)^t \lt 1, using logarithms:

(0.8)t<112tlog⁡0.8<log⁡112t>log⁡(1/12)log⁡0.8≈11.14\begin{aligned} (0.8)^t &\lt \frac{1}{12} \\ t \log 0.8 &\lt \log\frac{1}{12} \\ t &\gt \frac{\log(1/12)}{\log 0.8} \approx 11.14 \end{aligned}

(The inequality flips because log⁡0.8\log 0.8 is negative.) After about 11.1411.14 s, every swing is less than 11 cm.

Decide whether each function is even, odd, or neither.

  • (a) f(x)=xsin⁡xf(x) = x\sin x
  • (b) g(x)=x2sin⁡xg(x) = x^2\sin x
  • (c) h(x)=sin⁡xxh(x) = \dfrac{\sin x}{x}, x≠0x \ne 0

Solution. xx and sin⁡x\sin x are odd; x2x^2 is even.

(a) Odd × odd is even: f(−x)=(−x)sin⁡(−x)=(−x)(−sin⁡x)=xsin⁡x=f(x)f(-x) = (-x)\sin(-x) = (-x)(-\sin x) = x\sin x = f(x). Even.

(b) Even × odd is odd: g(−x)=(−x)2sin⁡(−x)=−x2sin⁡x=−g(x)g(-x) = (-x)^2\sin(-x) = -x^2\sin x = -g(x). Odd.

(c) Odd ÷ odd is even: h(−x)=sin⁡(−x)−x=−sin⁡x−x=h(x)h(-x) = \dfrac{\sin(-x)}{-x} = \dfrac{-\sin x}{-x} = h(x). Even.

Numerical check for (a): f ⁣(π2)=π2(1)≈1.57f\!\left(\tfrac{\pi}{2}\right) = \tfrac{\pi}{2}(1) \approx 1.57 and f ⁣(−π2)=(−π2)(−1)≈1.57f\!\left(-\tfrac{\pi}{2}\right) = \left(-\tfrac{\pi}{2}\right)(-1) \approx 1.57. ✓

Finding the domain after simplifying. x2−9x−3\dfrac{x^2 - 9}{x - 3} simplifies to x+3x + 3, but x=3x = 3 is still excluded. Always find the restrictions from the original quotient.

Confusing fg with f(g(x)). (fg)(x)(fg)(x) multiplies the outputs; f(g(x))f(g(x)) puts one function inside the other. For f(x)=x+1f(x) = x + 1 and g(x)=x2g(x) = x^2, (fg)(x)=x3+x2(fg)(x) = x^3 + x^2 but f(g(x))=x2+1f(g(x)) = x^2 + 1.

Expecting zeros from an exponential factor. In 12(0.8)tcos⁡(πt)12(0.8)^t\cos(\pi t), only the cosine can be 00: an exponential like btb^t is always positive.

Saying “odd × odd = odd”. The rule follows signs: two negatives make a positive, so odd × odd is even. Check with x⋅x=x2x \cdot x = x^2.

Forgetting the zeros of g are excluded even when f is also zero there. At x=3x = 3 in Example 2, both ff and gg are 00, and 00\tfrac{0}{0} is undefined. That’s a hole, not a point on the graph.

Flipping the wrong way when dividing by a negative log. log⁡0.8<0\log 0.8 \lt 0, so dividing by it reverses the inequality in Example 3(c).

1. (Warm-up) Let f(x)=x+4f(x) = x + 4 and g(x)=x−1g(x) = x - 1. Find (fg)(x)(fg)(x) and (fg)(x)\left(\dfrac{f}{g}\right)(x), and state the domain of fg\dfrac{f}{g}.

Solution(fg)(x)=(x+4)(x−1)=x2+3x−4(fg)(x) = (x + 4)(x - 1) = x^2 + 3x - 4(fg)(x)=x+4x−1,{x∈R∣x≠1}\left(\frac{f}{g}\right)(x) = \frac{x + 4}{x - 1}, \qquad \{x \in \mathbb{R} \mid x \ne 1\}

2. (Warm-up) If f(3)=−2f(3) = -2 and g(3)=5g(3) = 5, find (fg)(3)(fg)(3), (fg)(3)\left(\dfrac{f}{g}\right)(3) and (gf)(3)\left(\dfrac{g}{f}\right)(3).

Solution

(fg)(3)=(−2)(5)=−10(fg)(3) = (-2)(5) = -10

(fg)(3)=−25=−0.4\left(\dfrac{f}{g}\right)(3) = \dfrac{-2}{5} = -0.4

(gf)(3)=5−2=−2.5\left(\dfrac{g}{f}\right)(3) = \dfrac{5}{-2} = -2.5

3. (Warm-up) Use the table to find (fg)(x)(fg)(x) and (fg)(x)\left(\dfrac{f}{g}\right)(x) at each xx. Where is fg\dfrac{f}{g} undefined?

xx00112233
f(x)f(x)44−3-36600
g(x)g(x)223300−5-5
Solution
xx00112233
(fg)(x)(fg)(x)88−9-90000
(fg)(x)\left(\frac{f}{g}\right)(x)22−1-1undefined00

fg\dfrac{f}{g} is undefined at x=2x = 2, because g(2)=0g(2) = 0. The product is 00 at x=2x = 2 and x=3x = 3, where one of the factors is 00.

4. (Core) Let f(x)=x2−x−6f(x) = x^2 - x - 6 and g(x)=x+2g(x) = x + 2. Simplify (fg)(x)\left(\dfrac{f}{g}\right)(x), state its domain, and give the coordinates of any hole.

Solution

g(x)=0g(x) = 0 at x=−2x = -2, so that’s excluded. Factor and simplify:

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

Domain: {x∈R∣x≠−2}\{x \in \mathbb{R} \mid x \ne -2\}. The graph is the line y=x−3y = x - 3 with a hole at x=−2x = -2, where y=−2−3=−5y = -2 - 3 = -5: the hole is at (−2,−5)(-2, -5).

5. (Core) Let f(x)=x+1f(x) = \sqrt{x + 1} and g(x)=x2−4g(x) = x^2 - 4. State the domain of fg\dfrac{f}{g}.

Solution

ff needs x≥−1x \ge -1. gg is defined everywhere, but g(x)=0g(x) = 0 at x=±2x = \pm 2. The value x=−2x = -2 is already outside x≥−1x \ge -1, so only x=2x = 2 needs to be removed:

{x∈R∣x≥−1, x≠2}\{x \in \mathbb{R} \mid x \ge -1,\ x \ne 2\}

6. (Core) Let h(x)=(x−1)⋅2xh(x) = (x - 1) \cdot 2^x. Without graphing technology, find the zeros and the yy-intercept of hh, and state where h(x)h(x) is positive and where it is negative.

Solution

2x2^x is always positive, so it has no zeros. The only zero comes from x−1=0x - 1 = 0: x=1x = 1.

yy-intercept: h(0)=(0−1)(1)=−1h(0) = (0 - 1)(1) = -1.

Sign: since 2x>02^x \gt 0, h(x)h(x) has the same sign as x−1x - 1. So h(x)<0h(x) \lt 0 for x<1x \lt 1 and h(x)>0h(x) \gt 0 for x>1x \gt 1.

7. (Core) A café sells 200200 muffins a day at $3.00 each. For every $0.10 decrease in price, it sells 2020 more muffins. After xx price decreases, the price is p(x)=3−0.1xp(x) = 3 - 0.1x dollars and the number sold is q(x)=200+20xq(x) = 200 + 20x.

  • (a) Find the revenue function R(x)=(pq)(x)R(x) = (pq)(x).
  • (b) What price gives the maximum revenue, and what is that revenue?
Solution

(a)

R(x)=(3−0.1x)(200+20x)=600+60x−20x−2x2=−2x2+40x+600\begin{aligned} R(x) &= (3 - 0.1x)(200 + 20x) \\ &= 600 + 60x - 20x - 2x^2 \\ &= -2x^2 + 40x + 600 \end{aligned}

(b) The vertex is at x=−402(−2)=10x = -\dfrac{40}{2(-2)} = 10 price decreases:

R(10)=−200+400+600=800R(10) = -200 + 400 + 600 = 800

The price is 3−0.1(10)=2.003 - 0.1(10) = 2.00, or $2.00, the café sells 200+200=400200 + 200 = 400 muffins, and the revenue is $800. Check: 2.00×400=8002.00 \times 400 = 800. ✓

8. (Challenge) Decide whether each function is even, odd, or neither, and prove the general rule behind (c).

  • (a) f(x)=xcos⁡xf(x) = x\cos x
  • (b) g(x)=sin⁡2xg(x) = \sin^2 x
  • (c) h(x)=tan⁡xh(x) = \tan x
Solution

(a) Odd × even: f(−x)=(−x)cos⁡(−x)=−xcos⁡x=−f(x)f(-x) = (-x)\cos(-x) = -x\cos x = -f(x). Odd.

(b) sin⁡2x=(sin⁡x)(sin⁡x)\sin^2 x = (\sin x)(\sin x) is odd × odd: g(−x)=(sin⁡(−x))2=(−sin⁡x)2=sin⁡2x=g(x)g(-x) = \big(\sin(-x)\big)^2 = (-\sin x)^2 = \sin^2 x = g(x). Even.

(c) tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} is odd ÷ even. Odd.

General rule: suppose ff is odd and gg is even. Then, wherever g(x)≠0g(x) \ne 0,

(fg)(−x)=f(−x)g(−x)=−f(x)g(x)=−(fg)(x)\left(\frac{f}{g}\right)(-x) = \frac{f(-x)}{g(-x)} = \frac{-f(x)}{g(x)} = -\left(\frac{f}{g}\right)(x)

so fg\dfrac{f}{g} is odd.

9. (Challenge) Water drains from a storm sewer into a lake. After tt seconds, the concentration of a pollutant in the water is c(t)=2t2c(t) = 2t^2 kilograms per cubic metre, and the water flows out at w(t)=3t4+16w(t) = \dfrac{3}{t^4 + 16} cubic metres per second.

  • (a) Show that the rate at which the pollutant enters the lake, in kilograms per second, is r(t)=6t2t4+16r(t) = \dfrac{6t^2}{t^4 + 16}.
  • (b) Make a table of r(t)r(t) for t=1,1.5,2,2.5,3t = 1, 1.5, 2, 2.5, 3 (to 2 decimal places).
  • (c) Show that r(t)≤0.75r(t) \le 0.75 for every t>0t \gt 0, so the maximum rate is 0.750.75 kg/s at t=2t = 2 s. (Hint: (t2−4)2≥0(t^2 - 4)^2 \ge 0.)
Solution

(a) (kg per m³) × (m³ per s) = kg per s, so the rate is the product:

r(t)=c(t) w(t)=2t2⋅3t4+16=6t2t4+16r(t) = c(t)\,w(t) = 2t^2 \cdot \frac{3}{t^4 + 16} = \frac{6t^2}{t^4 + 16}

(b)

tt (s)111.51.5222.52.533
r(t)r(t) (kg/s)0.350.350.640.640.750.750.680.680.560.56

The table suggests a maximum near t=2t = 2.

(c) Expand the square:

(t2−4)2≥0t4−8t2+16≥0t4+16≥8t2\begin{aligned} (t^2 - 4)^2 &\ge 0 \\ t^4 - 8t^2 + 16 &\ge 0 \\ t^4 + 16 &\ge 8t^2 \end{aligned}

Since t4+16≥8t2>0t^4 + 16 \ge 8t^2 \gt 0, a bigger denominator gives a smaller fraction:

r(t)=6t2t4+16≤6t28t2=0.75r(t) = \frac{6t^2}{t^4 + 16} \le \frac{6t^2}{8t^2} = 0.75

Equality happens only when t2−4=0t^2 - 4 = 0, so at t=2t = 2. The maximum rate is 0.750.75 kg/s, at t=2t = 2 s. (Graphing technology shows the same peak.)