3.4 – Algebra of Functions

Learning Objectives

  • (3.4.1) – Combining Functions:
    • Adding
    • Subtracting
    • Multiplying
    • Dividing

 

(3.4.1) – Combining functions

We can carry out the usual algebraic operations on functions, such as addition, subtraction, multiplication and division. We do this by performing the operations with the function outputs, defining the result as the output of our new function.

Suppose we need to add two columns of numbers that represent a husband and wife’s separate annual incomes over a period of years, with the result being their total household income. We want to do this for every year, adding only that year’s incomes and then collecting all the data in a new column. If [latex]w\left(y\right)[/latex] is the wife’s income and [latex]h\left(y\right)[/latex] is the husband’s income in year [latex]y[/latex], and we want [latex]T[/latex] to represent the total income, then we can define a new function.

[latex]T\left(y\right)=h\left(y\right)+w\left(y\right)[/latex]

If this holds true for every year, then we can focus on the relation between the functions without reference to a year and write

[latex]T=h+w[/latex]

Just as for this sum of two functions, we can define difference, product, and ratio functions for any pair of functions that have the same kinds of inputs (not necessarily numbers) and also the same kinds of outputs (which do have to be numbers so that the usual operations of algebra can apply to them, and which also must have the same units or no units when we add and subtract). In this way, we can think of adding, subtracting, multiplying, and dividing functions.

For two functions [latex]f\left(x\right)[/latex] and [latex]g\left(x\right)[/latex] with real number outputs, we define new functions [latex]f+g,f-g,fg[/latex], and [latex]\displaystyle \frac{f}{g}[/latex] by the relations

[latex]\Large \begin{array}{cc}\text{Addition:} &\ \left(f+g\right)\left(x\right)=f\left(x\right)+g\left(x\right)\hfill \\\text{Subtraction:} &\ \left(f-g\right)\left(x\right)=f\left(x\right)-g\left(x\right)\hfill \\ \text{Multiplication:} &\ \text{ }\left(fg\right)\left(x\right)=f\left(x\right)g\left(x\right)\hfill \\ \text{Division:} &\ \text{ }\left(\frac{f}{g}\right)\left(x\right)=\frac{f\left(x\right)}{g\left(x\right)}\hfill \end{array}[/latex]

Example: Performing Algebraic Operations on Functions

Find the functions [latex]\displaystyle \left(f+g\right)\left(x\right)[/latex] and [latex]\displaystyle \left(f-g\right)\left(3\right)[/latex], given [latex]f\left(x\right)=3x + 2[/latex] and [latex]g\left(x\right)=3{x}^{2}-x[/latex].

Example: Performing Algebraic Operations on Functions

Find and simplify the functions [latex]\displaystyle \left(g-f\right)\left(x\right)[/latex] and [latex]\displaystyle \left(\frac{g}{f}\right)\left(x\right)[/latex], given [latex]f\left(x\right)=x - 1[/latex] and [latex]g\left(x\right)={x}^{2}-1[/latex]. Give the domain of your result. Are they the same function?

Example: Performing Algebraic Operations on Functions

Find and simplify the functions [latex]\left(fg\right)\left(x\right)[/latex] and [latex]\left(f-g\right)\left(x\right)[/latex].

[latex]f\left(x\right)=x - 1\text{ and }g\left(x\right)={x}^{2}-1[/latex]

Are they the same function?

Try It