The Difference of Functions

Secondary 5

Operations on functions are performed the same way operations on numbers are performed. Therefore, the difference of functions can be found.

Given two real functions f and g, the difference between them can be defined as follows. (fg)(x)=f(x)g(x)

  • The domain of the difference function corresponds to the intersection of the domains of the functions in question. If there is a denominator, the restrictions on it must be excluded.

The Algebraic Representation of the Difference of Functions

Example 1

Function c is defined by c(x)=x21 and function d is defined by d(x)=2x+3. The difference in the functions will result in the following. (cd)(x)=c(x)d(x)=(x21)(2x+3)=x212x3=x22x4

The domain of function c corresponds to R. The domain of function d also corresponds to R. The domain of the function given by cd will correspond to the intersection of the two initial domains. Therefore, this function’s domain will be R.

Example 2

Function p is defined by p(x)=4sinπ10(x) and function q is defined by q(x)=x5. The difference in the functions will result in the following. (pq)(x)=p(x)q(x)=4sinπ10(x)x5

The domain of function p corresponds to R and the domain of function q corresponds to R. The domain of the function given by pq will correspond to the intersection of the two initial domains. Therefore, this function’s domain will be R.

Example 3

Function f is defined by f(x)=x3x4 and function g is defined by g(x)=x+2x216. The difference in the functions will result in the following. (fg)(x)=f(x)g(x)=x3x4x+2x216=x3x4x+2(x4)(x+4)=x3x4×x+4x+4x+2(x4)(x+4)=(x3)(x+4)(x4)(x+4)x+2(x4)(x+4)=x2+x12(x4)(x+4)x+2(x4)(x+4)=x2+x12(x+2)(x4)(x+4)=x2+x12x2(x4)(x+4)=x214x216

The domain of function f is R{4} and the domain of function g is R{4,4}. Therefore, the domain of the resulting function is R{4}R{4,4}=R{4,4}.

The Graphical Representation of the Difference of Functions

To find the difference between two functions in a graph, subtract the range of the first function by the range of the second function.

To produce the graph, make a table of values or use the peculiarities of the resulting function.

Back to Example 1

  • In the first example, the table of values of the functions c(x)=x21, d(x)=2x+3 and cd, would result in the following.

x

c(x)

d(x)

(cd)(x)

0

1

3

4

1

0

5

5

2

3

7

4

3

8

9

1

4

15

11

4

  • Since the resultant function is a quadratic function, the associated formulas can be used to find the vertex and the zeros.

Vertex:

(cd)(x)=x22x4

h=b2a=(2)2×1=1

k=(cd)(h)=(cd)(1)=(1)22(1)4=5

So (h,k)=(1,5).

Zeros:

x{1,2}=b±b24ac2a=(2)±(2)24(1)(4)2(1)

We find (1.24,0) and (3.24,0).

The following graph is obtained.

Graph