Source codeVideos

Command Palette

Search for a command to run...

Function Composition and Inverse Function

Multiplication and Division of Functions

Multiplication of Two Functions

Multiplying two functions, ff and gg, is as easy as multiplying two numbers. We just multiply the result of f(x)f(x) by g(x)g(x) for the same value of xx. The result is a new function (fg)(f \cdot g).

Function Multiplication Visualization
Observe how the lines f(x)=xf(x)=x and g(x)=2g(x)=2 are multiplied to become (fg)(x)=2x(f \cdot g)(x)=2x.
(fg)(x)=f(x)g(x)(f \cdot g)(x) = f(x) \cdot g(x)

Just like addition and subtraction, this multiplication machine (fg)(f \cdot g) can only process raw materials (values of xx) that can be processed by both original machines, ff and gg. So, its domain is the intersection of the domain of ff and the domain of gg.

Dfg=DfDgD_{f \cdot g} = D_f \cap D_g

Example of Multiplication

Let's use slightly different functions this time:

  1. f(x)=x2f(x) = x^2, with domain Df={xxR}D_f = \{x | x \in \mathbb{R}\} (all real numbers).
  2. g(x)=x1g(x) = x - 1, with domain Dg={xxR}D_g = \{x | x \in \mathbb{R}\} (all real numbers).

Step 1: Determine the resulting function from multiplication

(fg)(x)=f(x)g(x)(f \cdot g)(x) = f(x) \cdot g(x)
=(x2)(x1)= (x^2) \cdot (x - 1)
=x3x2= x^3 - x^2

Step 2: Determine the domain of the resulting function

We find the intersection of DfD_f and DgD_g:

Dfg=DfDgD_{f \cdot g} = D_f \cap D_g
={xxR}{xxR}= \{x | x \in \mathbb{R}\} \cap \{x | x \in \mathbb{R}\}
={xxR}= \{x | x \in \mathbb{R}\}

So, the resulting function from multiplication is (fg)(x)=x3x2(f \cdot g)(x) = x^3 - x^2 with the domain of all real numbers.

Division of Two Functions

Dividing function ff by function gg is also similar: we divide the result of f(x)f(x) by g(x)g(x). The result is a new function (fg)(\frac{f}{g}).

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

Now, there's a very important additional rule! We know that division by zero is not allowed. So, besides the value of xx needing to be in the domain of both ff and gg, the value of g(x)g(x) (the divisor function) cannot be equal to zero.

Therefore, the domain of the division function (fg)(\frac{f}{g}) is the intersection of domains DfD_f and DgD_g, but we must exclude all values of xx that cause g(x)=0g(x) = 0.

Dfg=DfDg{xg(x)=0}D_{\frac{f}{g}} = D_f \cap D_g - \{x | g(x) = 0\}

The - sign here means "minus" or "excluded".

Example of Division

We use the same functions as in the multiplication example:

  1. f(x)=x2f(x) = x^2, Df={xxR}D_f = \{x | x \in \mathbb{R}\}
  2. g(x)=x1g(x) = x - 1, Dg={xxR}D_g = \{x | x \in \mathbb{R}\}

Step 1: Determine the resulting function from division

(fg)(x)=f(x)g(x)=x2x1\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)} = \frac{x^2}{x-1}

Step 2: Determine the domain of the resulting function

First, find the intersection of DfD_f and DgD_g:

DfDg={xxR}D_f \cap D_g = \{x | x \in \mathbb{R}\}

Second, find the value of xx that makes g(x)=0g(x) = 0:

g(x)=0g(x) = 0
x1=0x - 1 = 0
x=1x = 1

Third, exclude the value x=1x=1 from the intersection of the domains:

Dfg={xxR}{1}D_{\frac{f}{g}} = \{x | x \in \mathbb{R}\} - \{1\}

Or it can also be written as:

Dfg={xxR,x1}D_{\frac{f}{g}} = \{x | x \in \mathbb{R}, x \neq 1\}

So, the resulting function from division is (fg)(x)=x2x1(\frac{f}{g})(x) = \frac{x^2}{x-1} with the domain of all real numbers except x=1x=1.

Practice Problems

Given the function f(x)=x+4f(x) = \sqrt{x+4} with Df={xx4,xR}D_f = \{x | x \ge -4, x \in \mathbb{R}\} and function g(x)=x29g(x) = x^2 - 9 with Dg={xxR}D_g = \{x | x \in \mathbb{R}\}.

  1. Determine (fg)(x)(f \cdot g)(x) and its domain DfgD_{f \cdot g}.
  2. Determine (fg)(x)(\frac{f}{g})(x) and its domain DfgD_{\frac{f}{g}}.
  3. Calculate the value of (fg)(5)(f \cdot g)(5).
  4. Is (fg)(3)(\frac{f}{g})(3) defined? Explain.

Answer Key

  1. Finding (fg)(x)(f \cdot g)(x):

    (fg)(x)=f(x)g(x)(f \cdot g)(x) = f(x) \cdot g(x)
    =(x+4)(x29)= (\sqrt{x+4}) \cdot (x^2 - 9)
    =(x29)x+4= (x^2 - 9)\sqrt{x+4}

    Finding Domain DfgD_{f \cdot g}:

    Dfg=DfDgD_{f \cdot g} = D_f \cap D_g
    ={xx4,xR}{xxR}= \{x | x \ge -4, x \in \mathbb{R}\} \cap \{x | x \in \mathbb{R}\}
    ={xx4,xR}= \{x | x \ge -4, x \in \mathbb{R}\}

    So, (fg)(x)=(x29)x+4(f \cdot g)(x) = (x^2 - 9)\sqrt{x+4} with domain {xx4,xR}\{x | x \ge -4, x \in \mathbb{R}\}.

  2. Finding (fg)(x)(\frac{f}{g})(x):

    (fg)(x)=f(x)g(x)=x+4x29\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)} = \frac{\sqrt{x+4}}{x^2 - 9}

    Finding Domain DfgD_{\frac{f}{g}}:

    Domain intersection: DfDg={xx4,xR}D_f \cap D_g = \{x | x \ge -4, x \in \mathbb{R}\}.

    Find xx that makes g(x)=0g(x)=0:

    g(x)=0g(x) = 0
    x29=0x^2 - 9 = 0
    (x3)(x+3)=0(x-3)(x+3) = 0
    x=3 or x=3x = 3 \text{ or } x = -3

    Exclude x=3x=3 and x=3x=-3 from the domain intersection:

    Dfg={xx4,xR}{3,3}D_{\frac{f}{g}} = \{x | x \ge -4, x \in \mathbb{R}\} - \{-3, 3\}

    Or it can be written as:

    Dfg={xx4,xR,x3,x3}D_{\frac{f}{g}} = \{x | x \ge -4, x \in \mathbb{R}, x \neq -3, x \neq 3\}

    So, (fg)(x)=x+4x29(\frac{f}{g})(x) = \frac{\sqrt{x+4}}{x^2 - 9} with domain {xx4,x3,x3}\{x | x \ge -4, x \neq -3, x \neq 3\}.

  3. Calculating (fg)(5)(f \cdot g)(5):

    We use the result from number 1: (fg)(x)=(x29)x+4(f \cdot g)(x) = (x^2 - 9)\sqrt{x+4}.

    Since 545 \ge -4, x=5x=5 is in the domain DfgD_{f \cdot g}.

    (fg)(5)=(529)5+4(f \cdot g)(5) = (5^2 - 9)\sqrt{5+4}
    =(259)9= (25 - 9)\sqrt{9}
    =(16)(3)= (16)(3)
    =48= 48
  4. Is (fg)(3)(\frac{f}{g})(3) defined?

    Undefined. We look at the domain of (fg)(x)(\frac{f}{g})(x) from number 2, which is {xx4,x3,x3}\{x | x \ge -4, x \neq -3, x \neq 3\}. The value x=3x=3 is explicitly excluded from the domain because it would cause the denominator g(x)=x29g(x) = x^2 - 9 to become zero (329=03^2 - 9 = 0). Division by zero is not allowed in mathematics.