<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />

# 7.10: Function Operations

Difficulty Level: At Grade Created by: CK-12
Estimated9 minsto complete
%
Progress
Practice Operations on Functions
Progress
Estimated9 minsto complete
%

The area of a rectangle is 2x2\begin{align*}2x^2\end{align*}. The length of the rectangle is x+3\begin{align*}\sqrt{x + 3}\end{align*}. What is the width of the rectangle? What restrictions, if any, are on this value?

### Guidance

As you saw in the Review Queue, we have already dealt with adding, subtracting, and multiplying functions. To add and subtract, you combine like terms (see the Adding and Subtracting Polynomials concept). When multiplying, you either FOIL or use the “box” method (see the Multiplying Polynomials concept). When you add, subtract, or multiply functions, it is exactly the same as what you would do with polynomials, except for the notation. Notice, in the Review Queue, we didn’t write out the entire function, just f(x)g(x)\begin{align*}f(x)-g(x)\end{align*}, for example. Let’s continue:

f(x)g(x)=(x+5)(x24x+8)=x+5x2+4x8=x2+5x3

Distribute the negative sign to the second function and combine like terms. Be careful! f(x)g(x)g(x)f(x)\begin{align*}f(x)-g(x) \ne g(x)-f(x)\end{align*}. Also, this new function, f(x)g(x)\begin{align*}f(x)-g(x)\end{align*} has a different domain and range that either f(x)\begin{align*}f(x)\end{align*} or g(x)\begin{align*}g(x)\end{align*}.

#### Example A

If f(x)=x8\begin{align*}f(x)= \sqrt{x-8}\end{align*} and g(x)=12x2\begin{align*}g(x)= \frac{1}{2} x^2\end{align*}, find fg\begin{align*}fg\end{align*} and fg\begin{align*}\frac{f}{g}\end{align*}. Determine any restrictions for fg\begin{align*}\frac{f}{g}\end{align*}.

Solution: First, even though the x\begin{align*}x\end{align*} is not written along with the f(x)\begin{align*}f(x)\end{align*} and g(x)\begin{align*}g(x)\end{align*}, it can be implied that f\begin{align*}f\end{align*} and g\begin{align*}g\end{align*} represent f(x)\begin{align*}f(x)\end{align*} and g(x)\begin{align*}g(x)\end{align*}.

fg=x812x2=12x2x8\begin{align*}fg= \sqrt{x-8} \cdot \frac{1}{2} x^2= \frac{1}{2} x^2 \sqrt{x-8}\end{align*}

To divide the two functions, we will place f\begin{align*}f\end{align*} over g\begin{align*}g\end{align*} in a fraction.

fg=x812x2=2x8x2\begin{align*}\frac{f}{g}= \frac{\sqrt{x-8}}{\frac{1}{2} x^2}= \frac{2 \sqrt{x-8}}{x^2}\end{align*}

To find the restriction(s) on this function, we need to determine what value(s) of x\begin{align*}x\end{align*} make the denominator zero because we cannot divide by zero. In this case x0\begin{align*}x \ne 0\end{align*}. Also, the domain of f(x)\begin{align*}f(x)\end{align*} is only x8\begin{align*}x \ge 8\end{align*}, because we cannot take the square root of a negative number. The portion of the domain where f(x)\begin{align*}f(x)\end{align*} is not defined is also considered part of the restriction. Whenever there is a restriction on a function, list it next to the function, separated by a semi-colon. We will not write x0\begin{align*}x \ne 0\end{align*} separately because it is included in x<8\begin{align*}x \cancel{<} 8\end{align*}.

fg=2x8x2;x<8\begin{align*}\frac{f}{g}=\frac{2 \sqrt{x-8}}{x^2}; x \cancel{<} 8\end{align*}

Now we will introduce a new way to manipulate functions; composing them. When you compose two functions, we put one function into the other, where ever there is an x\begin{align*}x\end{align*}. The notation can look like f(g(x))\begin{align*}f(g(x))\end{align*} or fg\begin{align*}f \circ g\end{align*}, and is read “f\begin{align*}f\end{align*} of g\begin{align*}g\end{align*} of x\begin{align*}x\end{align*}”. Let’s do an example.

#### Example B

Using f(x)\begin{align*}f(x)\end{align*} and g(x)\begin{align*}g(x)\end{align*} from Example A find f(g(x))\begin{align*}f(g(x))\end{align*} and g(f(x))\begin{align*}g(f(x))\end{align*} and any restrictions on the domains.

Solution: For f(g(x))\begin{align*}f(g(x))\end{align*}, we are going to put g(x)\begin{align*}g(x)\end{align*} into f(x)\begin{align*}f(x)\end{align*} everywhere there is an x\begin{align*}x\end{align*}-value.

f(g(x))=g(x)8\begin{align*}f(g(x))= \sqrt{g \left(x \right)-8}\end{align*}

Now, substitute in the actual function for g(x)\begin{align*}g(x)\end{align*}.

f(g(x))=g(x)8=12x28

To find the domain of f(g(x))\begin{align*}f(g(x))\end{align*}, let’s determine where x\begin{align*}x\end{align*} is defined. The radicand is equal to zero when x=4\begin{align*}x=4\end{align*} or x=4\begin{align*}x=-4\end{align*}. Between 4 and -4, the function is not defined because the square root would be negative. Therefore, the domain is all real numbers; 4< x<4\begin{align*}-4 \cancel{<} \ x \cancel{<} 4\end{align*}.

Now, to find g(f(x))\begin{align*}g(f(x))\end{align*}, we would put f(x)\begin{align*}f(x)\end{align*} into g(x)\begin{align*}g(x)\end{align*} everywhere there is an x\begin{align*}x\end{align*}-value.

g(f(x))=12[f(x)]2=12[x8]2=12(x8)=12x4

Notice that f(g(x))g(f(x))\begin{align*}f(g(x)) \ne g(f(x))\end{align*}. It is possible that fg=gf\begin{align*}f \circ g=g \circ f\end{align*} and is a special case, addressed in the next concept. To find the domain of g(f(x))\begin{align*}g(f(x))\end{align*}, we will determine where x\begin{align*}x\end{align*} is defined. g(f(x))\begin{align*}g(f(x))\end{align*} is a line, so we would think that the domain is all real numbers. However, while simplifying the composition, the square and square root canceled out. Therefore, any restriction on f(x)\begin{align*}f(x)\end{align*} or g(x)\begin{align*}g(x)\end{align*} would still exist. The domain would be all real numbers such that x8\begin{align*}x \ge 8\end{align*} from the domain of f(x)\begin{align*}f(x)\end{align*}. Whenever operations cancel, the original restrictions from the inner function still exist. As with the case of f(g(x))\begin{align*}f(g(x))\end{align*}, no simplifying occurred, so the domain was unique to that function.

#### Example C

If f(x)=x41\begin{align*}f(x)=x^4-1\end{align*} and g(x)=2x+14\begin{align*}g(x)=2 \sqrt[4]{x+1}\end{align*}, find gf\begin{align*}g \circ f\end{align*} and the restrictions on the domain.

Solution: Recall that gf\begin{align*}g \circ f\end{align*} is another way of writing g(f(x))\begin{align*}g(f(x))\end{align*}. Let’s plug f\begin{align*}f\end{align*} into g\begin{align*}g\end{align*}.

gf=2f(x)+14=2(x41)+14=2x44=2|x|

The final function, gf2x\begin{align*}g \circ f \ne 2x\end{align*} because x\begin{align*}x\end{align*} is being raised to the 4th\begin{align*}4^{th}\end{align*} power, which will always yield a positive answer. Therefore, even when x\begin{align*}x\end{align*} is negative, the answer will be positive. For example, if x=2\begin{align*}x=-2\end{align*}, then gf=2(2)44=22=4.\begin{align*}g \circ f=2 \sqrt[4]{\left(-2 \right)^4}=2 \cdot 2=4.\end{align*}. An absolute value function has no restrictions on the domain. This will always happen when even roots and powers cancel. The range of this function is going to be all positive real numbers because the absolute value is never negative.

Recall, the previous example, however. The restrictions, if there are any, from the inner function, \begin{align*}f(x)\end{align*}, still exist. Because there are no restrictions on \begin{align*}f(x)\end{align*}, the domain of \begin{align*}g \circ f\end{align*} remains all real numbers.

Intro Problem Revisit If we set g equal to \begin{align*}2x^2\end{align*} and f equal to \begin{align*}\sqrt{x + 3}\end{align*}, to find the width, we need to find \begin{align*}\frac{g}{f}\end{align*}.

Therefore the width of the rectangle is \begin{align*}\frac{2x^2\sqrt{x + 3}}{x + 3}\end{align*}, and \begin{align*}x = -3\end{align*} is a restriction on the answer.

### Guided Practice

\begin{align*}f(x)=5x^{-1}\end{align*} and \begin{align*}g(x)=4x+7\end{align*}. Find:

1. \begin{align*}fg\end{align*}

2. \begin{align*}g-f\end{align*}

3. \begin{align*}\frac{f}{g}\end{align*}

4. \begin{align*}g(f(x))\end{align*} and the domain

5. \begin{align*}f \circ f\end{align*}

1. \begin{align*}fg\end{align*} is the product of \begin{align*}f(x)\end{align*} and \begin{align*}g(x)\end{align*}.

Both representations are correct. Discuss with your teacher how s/he would like you to leave your answer.

2. Subtract \begin{align*}f(x)\end{align*} from \begin{align*}g(x)\end{align*} and simplify, if possible.

3. Divide \begin{align*}f(x)\end{align*} by \begin{align*}g(x)\end{align*}. Don’t forget to include the restriction(s).

Recall the properties of exponents. Anytime there is a negative exponent, it should be moved into the denominator. We set each factor in the denominator equal to zero to find the restrictions.

4. \begin{align*}g(f(x))\end{align*} is a composition function. Let’s plug \begin{align*}f(x)\end{align*} into \begin{align*}g(x)\end{align*} everywhere there is an \begin{align*}x\end{align*}.

The domain of \begin{align*}f(x)\end{align*} is all real numbers except \begin{align*}x \ne 0\end{align*}, because we cannot divide by zero. Therefore, the domain of \begin{align*}g(f(x))\end{align*} is all real numbers except \begin{align*}x \ne 0\end{align*}.

5. \begin{align*}f \circ f\end{align*} is a composite function on itself. We will plug \begin{align*}f(x)\end{align*} into \begin{align*}f(x)\end{align*} everywhere there is an \begin{align*}x\end{align*}.

### Explore More

For problems 1-8, use the following functions to form the indicated compositions and clearly indicate any restrictions to the domain of the composite function.

1. \begin{align*}f+h\end{align*}
2. \begin{align*}h-g\end{align*}
3. \begin{align*}\frac{f}{g}\end{align*}
4. \begin{align*}fh\end{align*}
5. \begin{align*}f \circ g\end{align*}
6. \begin{align*}h(f(x))\end{align*}
7. \begin{align*}g \circ f\end{align*}
8. \begin{align*}f \circ g \circ h\end{align*}

For problems 9-16, use the following functions to form the indicated compositions and clearly indicate any restrictions to the domain of the composite function.

1. \begin{align*}ps\end{align*}
2. \begin{align*}\frac{q}{r}\end{align*}
3. \begin{align*}q+r\end{align*}
4. \begin{align*}p(q(x))\end{align*}
5. \begin{align*}s(q(x))\end{align*}
6. \begin{align*}q \circ s\end{align*}
7. \begin{align*}q \circ p \circ s\end{align*}
8. \begin{align*}p \circ r\end{align*}

### Answers for Explore More Problems

To view the Explore More answers, open this PDF file and look for section 7.10.

### Vocabulary Language: English

composite function

composite function

A composite function is a function $h(x)$ formed by using the output of one function $g(x)$ as the input of another function $f(x)$. Composite functions are written in the form $h(x)=f(g(x))$ or $h=f \circ g$.
Difference

Difference

The result of a subtraction operation is called a difference.
Function

Function

A function is a relation where there is only one output for every input. In other words, for every value of $x$, there is only one value for $y$.
Horizontal Asymptote

Horizontal Asymptote

A horizontal asymptote is a horizontal line that indicates where a function flattens out as the independent variable gets very large or very small. A function may touch or pass through a horizontal asymptote.
Restriction

Restriction

A restriction is a value of the domain where $x$ cannot be defined.
Sum

Sum

The sum is the result after two or more amounts have been added together.
Vertical Asymptote

Vertical Asymptote

A vertical asymptote is a vertical line marking a specific value toward which the graph of a function may approach, but will never reach.

## Date Created:

Mar 12, 2013

Jun 04, 2015
Save or share your relevant files like activites, homework and worksheet.
To add resources, you must be the owner of the Modality. Click Customize to make your own copy.