### Learning Objectives

- 1.2.1. Calculate the slope of a linear function and interpret its meaning.
- 1.2.2. Recognize the degree of a polynomial.
- 1.2.3. Find the roots of a quadratic polynomial.
- 1.2.4. Describe the graphs of basic odd and even polynomial functions.
- 1.2.5. Identify a rational function.
- 1.2.6. Describe the graphs of power and root functions.
- 1.2.7. Explain the difference between algebraic and transcendental functions.
- 1.2.8. Graph a piecewise-defined function.
- 1.2.9. Sketch the graph of a function that has been shifted, stretched, or reflected from its initial graph position.

We have studied the general characteristics of functions, so now let’s examine some specific classes of functions. We begin by reviewing the basic properties of linear and quadratic functions, and then generalize to include higher-degree polynomials. By combining root functions with polynomials, we can define general algebraic functions and distinguish them from the transcendental functions we examine later in this chapter. We finish the section with examples of piecewise-defined functions and take a look at how to sketch the graph of a function that has been shifted, stretched, or reflected from its initial form.

### Linear Functions and Slope

The easiest type of function to consider is a linear function. Linear functions have the form $f(x)=ax+b,$ where $a$ and $b$ are constants. In Figure 1.15, we see examples of linear functions when $a$ is positive, negative, and zero. Note that if $a>0,$ the graph of the line rises as $x$ increases. In other words, $f(x)=ax+b$ is increasing on $\text{(\u2212\u221e, \u221e)}.$ If $a<0,$ the graph of the line falls as $x$ increases. In this case, $f(x)=ax+b$ is decreasing on $\text{(\u2212\u221e, \u221e)}.$ If $a=0,$ the line is horizontal.

As suggested by Figure 1.15, the graph of any linear function is a line. One of the distinguishing features of a line is its slope. The slope is the change in $y$ for each unit change in $x.$ The slope measures both the steepness and the direction of a line. If the slope is positive, the line points upward when moving from left to right. If the slope is negative, the line points downward when moving from left to right. If the slope is zero, the line is horizontal. To calculate the slope of a line, we need to determine the ratio of the change in $y$ versus the change in $x.$ To do so, we choose any two points $({x}_{1},{y}_{1})$ and $({x}_{2},{y}_{2})$ on the line and calculate $\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}.$ In Figure 1.16, we see this ratio is independent of the points chosen.

### Definition

Consider line $L$ passing through points $({x}_{1},{y}_{1})$ and $({x}_{2},{y}_{2}).$ Let $\text{\Delta}y={y}_{2}-{y}_{1}$ and $\text{\Delta}x={x}_{2}-{x}_{1}$ denote the changes in $y$ and $x,$ respectively. The **slope** of the line is

We now examine the relationship between slope and the formula for a linear function. Consider the linear function given by the formula $f\left(x\right)=ax+b.$ As discussed earlier, we know the graph of a linear function is given by a line. We can use our definition of slope to calculate the slope of this line. As shown, we can determine the slope by calculating $({y}_{2}-{y}_{1})\text{/}({x}_{2}-{x}_{1})$ for any points $({x}_{1},{y}_{1})$ and $({x}_{2},{y}_{2})$ on the line. Evaluating the function $f$ at $x=0,$ we see that $(0,b)$ is a point on this line. Evaluating this function at $x=1,$ we see that $(1,a+b)$ is also a point on this line. Therefore, the slope of this line is

We have shown that the coefficient $a$ is the slope of the line. We can conclude that the formula $f(x)=ax+b$ describes a line with slope $a.$ Furthermore, because this line intersects the $y$-axis at the point $(0,b),$ we see that the $y$-intercept for this linear function is $(0,b).$ We conclude that the formula $f(x)=ax+b$ tells us the slope, $a,$ and the $y$-intercept, $(0,b),$ for this line. Since we often use the symbol $m$ to denote the slope of a line, we can write

to denote the slope-intercept form of a linear function.

Sometimes it is convenient to express a linear function in different ways. For example, suppose the graph of a linear function passes through the point $({x}_{1},{y}_{1})$ and the slope of the line is $m.$ Since any other point $(x,f(x))$ on the graph of $f$ must satisfy the equation

this linear function can be expressed by writing

We call this equation the point-slope equation for that linear function.

Since every nonvertical line is the graph of a linear function, the points on a nonvertical line can be described using the slope-intercept or point-slope equations. However, a vertical line does not represent the graph of a function and cannot be expressed in either of these forms. Instead, a vertical line is described by the equation $x=k$ for some constant $k.$ Since neither the slope-intercept form nor the point-slope form allows for vertical lines, we use the notation

where $a,b$ are both not zero, to denote the standard form of a line.

### Definition

Consider a line passing through the point $({x}_{1},{y}_{1})$ with slope $m.$ The equation

is the **point-slope equation** for that line.

Consider a line with slope $m$ and $y$-intercept $(0,b).$ The equation

is an equation for that line in **slope-intercept form**.

The **standard form of a line** is given by the equation

where $a$ and $b$ are both not zero. This form is more general because it allows for a vertical line, $x=k.$

### Example 1.12

#### Finding the Slope and Equations of Lines

Consider the line passing through the points $(11,\mathrm{-4})$ and $(\mathrm{-4},5),$ as shown in Figure 1.17.

- Find the slope of the line.
- Find an equation for this linear function in point-slope form.
- Find an equation for this linear function in slope-intercept form.

#### Solution

- The slope of the line is

$$m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}=\frac{5-(\mathrm{-4})}{\mathrm{-4}-11}=-\frac{9}{15}=-\frac{3}{5}.$$ - To find an equation for the linear function in point-slope form, use the slope $m=\mathrm{-3}\text{/}5$ and choose any point on the line. If we choose the point $(11,\mathrm{-4}),$ we get the equation

$$f(x)+4=-\frac{3}{5}(x-11).$$ - To find an equation for the linear function in slope-intercept form, solve the equation in part b. for $f(x).$ When we do this, we get the equation

$$f(x)=-\frac{3}{5}x+\frac{13}{5}.$$

Consider the line passing through points $(\mathrm{-3},2)$ and $(1,4).$ Find the slope of the line.

Find an equation of that line in point-slope form. Find an equation of that line in slope-intercept form.

### Example 1.13

#### A Linear Distance Function

Jessica leaves her house at 5:50 a.m. and goes for a 9-mile run. She returns to her house at 7:08 a.m. Answer the following questions, assuming Jessica runs at a constant pace.

- Describe the distance $D$ (in miles) Jessica runs as a linear function of her run time $t$ (in minutes).
- Sketch a graph of $D.$
- Interpret the meaning of the slope.

#### Solution

- At time $t=0,$ Jessica is at her house, so $D\left(0\right)=0.$ At time $t=78$ minutes, Jessica has finished running $9$ mi, so $D\left(78\right)=9.$ The slope of the linear function is

$$m=\frac{9-0}{78-0}=\frac{3}{26}.$$

The $y$-intercept is $\left(0,0\right),$ so the equation for this linear function is

$$D\left(t\right)=\frac{3}{26}t.$$ - To graph $D,$ use the fact that the graph passes through the origin and has slope $m=3\text{/}26.$

- The slope $m=3\text{/}26\approx 0.115$ describes the distance (in miles) Jessica runs per minute, or her average velocity.

### Polynomials

A linear function is a special type of a more general class of functions: polynomials. A polynomial function is any function that can be written in the form

for some integer $n\ge 0$ and constants ${a}_{n},{a}_{n-1}\text{,\u2026,}{a}_{0},$ where ${a}_{n}\ne 0.$ In the case when $n=0,$ we allow for ${a}_{0}=0;$ if ${a}_{0}=0,$ the function $f(x)=0$ is called the *zero function*. The value $n$ is called the degree of the polynomial; the constant ${a}_{n}$ is called the *leading coefficient*. A linear function of the form $f\left(x\right)=mx+b$ is a polynomial of degree 1 if $m\ne 0$ and degree 0 if $m=0.$ A polynomial of degree 0 is also called a *constant function*. A polynomial function of degree 2 is called a quadratic function. In particular, a quadratic function has the form $f\left(x\right)=a{x}^{2}+bx+c,$ where $a\ne 0.$ A polynomial function of degree $3$ is called a cubic function.

#### Power Functions

Some polynomial functions are power functions. A power function is any function of the form $f(x)=a{x}^{b},$ where $a$ and $b$ are any real numbers. The exponent in a power function can be any real number, but here we consider the case when the exponent is a positive integer. (We consider other cases later.) If the exponent is a positive integer, then $f(x)=a{x}^{n}$ is a polynomial. If $n$ is even, then $f(x)=a{x}^{n}$ is an even function because $f(\text{\u2212}\mathit{\text{x}})=a{(\text{\u2212}\mathit{\text{x}})}^{n}=a{x}^{n}$ if $n$ is even. If $n$ is odd, then $f(x)=a{x}^{n}$ is an odd function because $f(\text{\u2212}\mathit{\text{x}})=a{(\text{\u2212}\mathit{\text{x}})}^{n}=\text{\u2212}a{x}^{n}$ if $n$ is odd (Figure 1.18).

#### Behavior at Infinity

To determine the behavior of a function $f$ as the inputs approach infinity, we look at the values $f(x)$ as the inputs, $x,$ become larger. For some functions, the values of $f(x)$ approach a finite number. For example, for the function $f\left(x\right)=2+1\text{/}x,$ the values $1\text{/}x$ become closer and closer to zero for all values of $x$ as they get larger and larger. For this function, we say $\text{\u201c}f(x)$ approaches two as $x$ goes to infinity,” and we write $f\left(x\right)\to 2$ as $x\to \infty .$ The line $y=2$ is a horizontal asymptote for the function $f\left(x\right)=2+1\text{/}x$ because the graph of the function gets closer to the line as $x$ gets larger.

For other functions, the values $f(x)$ may not approach a finite number but instead may become larger for all values of $x$ as they get larger. In that case, we say $\text{\u201c}f(x)$ approaches infinity as $x$ approaches infinity,” and we write $f\left(x\right)\to \infty $ as $x\to \infty .$ For example, for the function $f\left(x\right)=3{x}^{2},$ the outputs $f(x)$ become larger as the inputs $x$ get larger. We can conclude that the function $f(x)=3{x}^{2}$ approaches infinity as $x$ approaches infinity, and we write $3{x}^{2}\to \infty $ as $x\to \infty .$ The behavior as $x\to \text{\u2212}\infty $ and the meaning of $f\left(x\right)\to \text{\u2212}\infty $ as $x\to \infty $ or $x\to \text{\u2212}\infty $ can be defined similarly. We can describe what happens to the values of $f(x)$ as $x\to \infty $ and as $x\to \text{\u2212}\infty $ as the *end behavior* of the function.

To understand the end behavior for polynomial functions, we can focus on quadratic and cubic functions. The behavior for higher-degree polynomials can be analyzed similarly. Consider a quadratic function $f\left(x\right)=a{x}^{2}+bx+c.$ If $a>0,$ the values $f\left(x\right)\to \infty $ as $x\to \text{\xb1}\infty .$ If $a<0,$ the values $f\left(x\right)\to \text{\u2212\u221e}$ as $x\to \text{\xb1}\infty .$ Since the graph of a quadratic function is a parabola, the parabola opens upward if $a>0;$ the parabola opens downward if $a<0.$ (See Figure 1.19(a).)

Now consider a cubic function $f\left(x\right)=a{x}^{3}+b{x}^{2}+cx+d.$ If $a>0,$ then $f\left(x\right)\to \infty $ as $x\to \infty $ and $f\left(x\right)\to \text{\u2212\u221e}$ as $x\to \text{\u2212\u221e}.$ If $a<0,$ then $f\left(x\right)\to \text{\u2212\u221e}$ as $x\to \infty $ and $f\left(x\right)\to \infty $ as $x\to \text{\u2212\u221e}.$ As we can see from both of these graphs, the leading term of the polynomial determines the end behavior. (See Figure 1.19(b).)

#### Zeros of Polynomial Functions

Another characteristic of the graph of a polynomial function is where it intersects the $x$-axis. To determine where a function $f$ intersects the $x$-axis, we need to solve the equation $f(x)=0$ for .n the case of the linear function $f(x)=mx+b,$ the $x$-intercept is given by solving the equation $mx+b=0.$ In this case, we see that the $x$-intercept is given by $(\text{\u2212}\mathit{\text{b}}\text{/}m,0).$ In the case of a quadratic function, finding the $x$-intercept(s) requires finding the zeros of a quadratic equation: $a{x}^{2}+bx+c=0.$ In some cases, it is easy to factor the polynomial $a{x}^{2}+bx+c$ to find the zeros. If not, we make use of the quadratic formula.

### Rule: The Quadratic Formula

Consider the quadratic equation

where $a\ne 0.$ The solutions of this equation are given by the quadratic formula

If the discriminant ${b}^{2}-4ac>0,$ this formula tells us there are two real numbers that satisfy the quadratic equation. If ${b}^{2}-4ac=0,$ this formula tells us there is only one solution, and it is a real number. If ${b}^{2}-4ac<0,$ no real numbers satisfy the quadratic equation.

In the case of higher-degree polynomials, it may be more complicated to determine where the graph intersects the $x$-axis. In some instances, it is possible to find the $x$-intercepts by factoring the polynomial to find its zeros. In other cases, it is impossible to calculate the exact values of the $x$-intercepts. However, as we see later in the text, in cases such as this, we can use analytical tools to approximate (to a very high degree) where the $x$-intercepts are located. Here we focus on the graphs of polynomials for which we can calculate their zeros explicitly.

### Example 1.14

#### Graphing Polynomial Functions

For the following functions a. and b., i. describe the behavior of $f\left(x\right)$ as $x\to \text{\xb1}\infty ,$ ii. find all zeros of $f,$ and iii. sketch a graph of $f.$

- $f\left(x\right)=\mathrm{-2}{x}^{2}+4x-1$
- $f\left(x\right)={x}^{3}-3{x}^{2}-4x$

#### Solution

- The function $f\left(x\right)=\mathrm{-2}{x}^{2}+4x-1$ is a quadratic function.
- Because $a=\mathrm{-2}<0,\text{as}\phantom{\rule{0.2em}{0ex}}x\to \text{\xb1}\infty ,f\left(x\right)\to \text{\u2212\u221e.}$
- To find the zeros of $f,$ use the quadratic formula. The zeros are

$$x=\frac{\mathrm{-4}\pm \sqrt{{4}^{2}-4\left(\mathrm{-2}\right)\left(\mathrm{-1}\right)}}{2\left(\mathrm{-2}\right)}=\frac{\mathrm{-4}\pm \sqrt{8}}{\mathrm{-4}}=\frac{\mathrm{-4}\pm 2\sqrt{2}}{\mathrm{-4}}=\frac{2\pm \sqrt{2}}{2}.$$ - To sketch the graph of $f,$ use the information from your previous answers and combine it with the fact that the graph is a parabola opening downward.

- The function $f\left(x\right)={x}^{3}-3{x}^{2}-4x$ is a cubic function.
- Because $a=1>0,\text{as}\phantom{\rule{0.2em}{0ex}}x\to \infty ,f\left(x\right)\to \infty .$ As $x\to \text{\u2212\u221e},f\left(x\right)\to \text{\u2212\u221e}.$
- To find the zeros of $f,$ we need to factor the polynomial. First, when we factor $x$ out of all the terms, we find

$$f(x)=x({x}^{2}-3x-4).$$

Then, when we factor the quadratic function ${x}^{2}-3x-4,$ we find

$$f\left(x\right)=x(x-4)(x+1).$$

Therefore, the zeros of $f$ are $x=0,4,\mathrm{-1}.$ - Combining the results from parts i. and ii., draw a rough sketch of $f.$

### Checkpoint 1.10

Consider the quadratic function $f\left(x\right)=3{x}^{2}-6x+2.$ Find the zeros of $f.$ Does the parabola open upward or downward?

#### Mathematical Models

A large variety of real-world situations can be described using mathematical models. A mathematical model is a method of simulating real-life situations with mathematical equations. Physicists, engineers, economists, and other researchers develop models by combining observation with quantitative data to develop equations, functions, graphs, and other mathematical tools to describe the behavior of various systems accurately. Models are useful because they help predict future outcomes. Examples of mathematical models include the study of population dynamics, investigations of weather patterns, and predictions of product sales.

As an example, let’s consider a mathematical model that a company could use to describe its revenue for the sale of a particular item. The amount of revenue $R$ a company receives for the sale of $n$ items sold at a price of $p$ dollars per item is described by the equation $R=p\xb7n.$ The company is interested in how the sales change as the price of the item changes. Suppose the data in Table 1.6 show the number of units a company sells as a function of the price per item.

$\mathit{\text{p}}$ | $6$ | $8$ | $10$ | $12$ | $14$ |

$\mathit{\text{n}}$ | $19.4$ | $18.5$ | $16.2$ | $13.8$ | $12.2$ |

In Figure 1.20, we see the graph the number of units sold (in thousands) as a function of price (in dollars). We note from the shape of the graph that the number of units sold is likely a linear function of price per item, and the data can be closely approximated by the linear function $n=\mathrm{-1.04}p+26$ for $0\le p\le 25,$ where $n$ predicts the number of units sold in thousands. Using this linear function, the revenue (in thousands of dollars) can be estimated by the quadratic function

for $0\le p\le 25.$ In Example 1.15, we use this quadratic function to predict the amount of revenue the company receives depending on the price the company charges per item. Note that we cannot conclude definitively the actual number of units sold for values of $p,$ for which no data are collected. However, given the other data values and the graph shown, it seems reasonable that the number of units sold (in thousands) if the price charged is $p$ dollars may be close to the values predicted by the linear function $n=\mathrm{-1.04}p+26.$

### Example 1.15

#### Maximizing Revenue

A company is interested in predicting the amount of revenue it will receive depending on the price it charges for a particular item. Using the data from Table 1.6, the company arrives at the following quadratic function to model revenue $R$ as a function of price per item $p\text{:}$

for $0\le p\le 25.$

- Predict the revenue if the company sells the item at a price of $p=\text{\$}5$ and $p=\text{\$}17.$
- Find the zeros of this function and interpret the meaning of the zeros.
- Sketch a graph of $R.$
- Use the graph to determine the value of $p$ that maximizes revenue. Find the maximum revenue.

#### Solution

- Evaluating the revenue function at $p=5$ and $p=17,$ we can conclude that

$$\begin{array}{}\\ R(5)=\mathrm{-1.04}{(5)}^{2}+26(5)=104,\phantom{\rule{0.2em}{0ex}}\text{so revenue}\phantom{\rule{0.2em}{0ex}}=\phantom{\rule{0.2em}{0ex}}\text{\$104,000;}\hfill \\ R(17)=\mathrm{-1.04}{(17)}^{2}+26(17)=141.44,\phantom{\rule{0.2em}{0ex}}\text{so revenue}\phantom{\rule{0.2em}{0ex}}=\phantom{\rule{0.2em}{0ex}}\text{\$144,440.}\hfill \end{array}$$ - The zeros of this function can be found by solving the equation $\mathrm{-1.04}{p}^{2}+26p=0.$ When we factor the quadratic expression, we get $p\left(\mathrm{-1.04}p+26\right)=0.$ The solutions to this equation are given by $p=0,25.$ For these values of $p,$ the revenue is zero. When $p=\text{\$}0,$ the revenue is zero because the company is giving away its merchandise for free. When $p=\text{\$}25,$ the revenue is zero because the price is too high, and no one will buy any items.
- Knowing the fact that the function is quadratic, we also know the graph is a parabola. Since the leading coefficient is negative, the parabola opens downward. One property of parabolas is that they are symmetric about the axis, so since the zeros are at $p=0$ and $p=25,$ the parabola must be symmetric about the line halfway between them, or $p=12.5.$

- The function is a parabola with zeros at $p=0$ and $p=25,$ and it is symmetric about the line $p=12.5,$ so the maximum revenue occurs at a price of $p=\text{\$}12.50$ per item. At that price, the revenue is $R\left(p\right)=\mathrm{-1.04}{\left(12.5\right)}^{2}+26\left(12.5\right)=\text{\$}162,500.$

### Algebraic Functions

By allowing for quotients and fractional powers in polynomial functions, we create a larger class of functions. An algebraic function is one that involves addition, subtraction, multiplication, division, rational powers, and roots. Two types of algebraic functions are rational functions and root functions.

Just as rational numbers are quotients of integers, rational functions are quotients of polynomials. In particular, a rational function is any function of the form $f\left(x\right)=p(x)\text{/}q\left(x\right),$ where $p(x)$ and $q(x)$ are polynomials. For example,

are rational functions. A root function is a power function of the form $f\left(x\right)={x}^{1\text{/}n},$ where $n$ is a positive integer greater than one. For example, $f(x)={x}^{1\text{/}2}=\sqrt{x}$ is the square-root function and $g\left(x\right)={x}^{1\text{/}3}=\sqrt[3]{x}$ is the cube-root function. By allowing for compositions of root functions and rational functions, we can create other algebraic functions. For example, $f\left(x\right)=\sqrt{4-{x}^{2}}$ is an algebraic function.

### Example 1.16

#### Finding Domain and Range for Algebraic Functions

For each of the following functions, find the domain and range.

- $f\left(x\right)=\frac{3x-1}{5x+2}$
- To find the domain of $f$, we need $4\u2013{x}^{2}\ge 0$. Or, $4\ge {x}^{2}$ Or ${x}^{2}\le 4$, the solution to which is $\u20132\le x\le 2$. Therefore, the domain is $\left\{x\right|\u20132\le x\le 2\}$. If $\u20132\le x\le 2$, then $0\le 4\u2013{x}^{2}\le 4$. Therefore, $0\le \sqrt{4\u2013{x}^{2}}\le 2$ and the range of $f$ is $\left\{y\right|0\le x\le 2\}$.

#### Solution

- It is not possible to divide by zero, so the domain is the set of real numbers $x$ such that $x\ne \text{\u2212}2\text{/}5.$ To find the range, we need to find the values $y$ for which there exists a real number $x$ such that

$$y=\frac{3x-1}{5x+2}.$$

When we multiply both sides of this equation by $5x+2,$ we see that $x$ must satisfy the equation

$$5xy+2y=3x-1.$$

From this equation, we can see that $x$ must satisfy

$$2y+1=x(3-5y).$$

If $y=3\text{/}5,$ this equation has no solution. On the other hand, as long as $y\ne 3\text{/}5,$

$$x=\frac{2y+1}{3-5y}$$

satisfies this equation. We can conclude that the range of $f$ is $\left\{y\right|y\ne 3\text{/}5\}.$ - To find the domain of $f,$ we need $4-{x}^{2}\ge 0.$ When we factor, we write $4-{x}^{2}=\left(2-x\right)\left(2+x\right)\ge 0.$ This inequality holds if and only if both terms are positive or both terms are negative. For both terms to be positive, we need to find $x$ such that

$$2-x\ge 0\phantom{\rule{2em}{0ex}}\text{and}\phantom{\rule{2em}{0ex}}2+x\ge 0.$$

These two inequalities reduce to $2\ge x$ and $x\ge \mathrm{-2}.$ Therefore, the set $\left\{x\right|-2\le x\le 2\}$ must be part of the domain. For both terms to be negative, we need

$$2-x\le 0\phantom{\rule{2em}{0ex}}\text{and}\phantom{\rule{2em}{0ex}}2+x\ge 0.$$

These two inequalities also reduce to $2\le x$ and $x\ge \mathrm{-2}.$ There are no values of $x$ that satisfy both of these inequalities. Thus, we can conclude the domain of this function is $\left\{x\right|-2\le x\le 2\}\text{.}$

If $\mathrm{-2}\le x\le 2,$ then $0\le 4-{x}^{2}\le 4.$ Therefore, $0\le \sqrt{4-{x}^{2}}\le 2,$ and the range of $f$ is $\left\{y\right|0\le y\le 2\}.$

Find the domain and range for the function $f\left(x\right)=(5x+2)\text{/}(2x-1).$

The root functions $f\left(x\right)={x}^{1\text{/}n}$ have defining characteristics depending on whether $n$ is odd or even. For all even integers $n\ge 2,$ the domain of $f\left(x\right)={x}^{1\text{/}n}$ is the interval $[0,\infty ).$ For all odd integers $n\ge 1,$ the domain of $f\left(x\right)={x}^{1\text{/}n}$ is the set of all real numbers. Since ${x}^{1\text{/}n}={\left(\text{\u2212}\mathit{\text{x}}\right)}^{1\text{/}n}$ for odd integers $n,f\left(x\right)={x}^{1\text{/}n}$ is an odd function if $n$ is odd. See the graphs of root functions for different values of $n$ in Figure 1.21.

### Example 1.17

#### Finding Domains for Algebraic Functions

For each of the following functions, determine the domain of the function.

- $f\left(x\right)=\frac{3}{{x}^{2}-1}$
- $f\left(x\right)=\frac{2x+5}{3{x}^{2}+4}$
- $f\left(x\right)=\sqrt{4-3x}$
- $f\left(x\right)=\sqrt[3]{2x-1}$

#### Solution

- You cannot divide by zero, so the domain is the set of values $x$ such that ${x}^{2}-1\ne 0.$ Therefore, the domain is $\left\{x\right|x\ne \text{\xb1}1\}.$
- You need to determine the values of $x$ for which the denominator is zero. Since $3{x}^{2}+4\ge 4$ for all real numbers $x,$ the denominator is never zero. Therefore, the domain is $(\text{\u2212\u221e},\infty ).$
- Since the square root of a negative number is not a real number, the domain is the set of values $x$ for which $4-3x\ge 0.$ Therefore, the domain is $\left\{x\right|x\le 4\text{/}3\}.$
- The cube root is defined for all real numbers, so the domain is the interval $\text{(\u2212\u221e, \u221e).}$

Find the domain for each of the following functions: $f\left(x\right)=(5-2x)\text{/}({x}^{2}+2)$ and $g\left(x\right)=\sqrt{5x-1}.$

### Transcendental Functions

Thus far, we have discussed algebraic functions. Some functions, however, cannot be described by basic algebraic operations. These functions are known as transcendental functions because they are said to “transcend,” or go beyond, algebra. The most common transcendental functions are trigonometric, exponential, and logarithmic functions. A *trigonometric function* relates the ratios of two sides of a right triangle. They are $\mathrm{sin}x,\mathrm{cos}x,\mathrm{tan}x,\mathrm{cot}x,\mathrm{sec}x,\text{and}\phantom{\rule{0.2em}{0ex}}\mathrm{csc}x.$ (We discuss trigonometric functions later in the chapter.) An exponential function is a function of the form $f\left(x\right)={b}^{x},$ where the base $b>0,b\ne 1.$ A logarithmic function is a function of the form $f\left(x\right)={\mathrm{log}}_{b}(x)$ for some constant $b>0,b\ne 1,$ where ${\mathrm{log}}_{b}\left(x\right)=y$ if and only if ${b}^{y}=x.$ (We also discuss exponential and logarithmic functions later in the chapter.)

### Example 1.18

#### Classifying Algebraic and Transcendental Functions

Classify each of the following functions, a. through c., as algebraic or transcendental.

- $f\left(x\right)=\frac{\sqrt{{x}^{3}+1}}{4x+2}$
- $f\left(x\right)={2}^{{x}^{2}}$
- $f\left(x\right)=\text{sin}(2x)$

#### Solution

- Since this function involves basic algebraic operations only, it is an algebraic function.
- This function cannot be written as a formula that involves only basic algebraic operations, so it is transcendental. (Note that algebraic functions can only have powers that are rational numbers.)
- As in part b., this function cannot be written using a formula involving basic algebraic operations only; therefore, this function is transcendental.

Is $f\left(x\right)=x\text{/}2$ an algebraic or a transcendental function?

### Piecewise-Defined Functions

Sometimes a function is defined by different formulas on different parts of its domain. A function with this property is known as a piecewise-defined function. The absolute value function is an example of a piecewise-defined function because the formula changes with the sign of $x\text{:}$

Other piecewise-defined functions may be represented by completely different formulas, depending on the part of the domain in which a point falls. To graph a piecewise-defined function, we graph each part of the function in its respective domain, on the same coordinate system. If the formula for a function is different for $x<a$ and $x>a,$ we need to pay special attention to what happens at $x=a$ when we graph the function. Sometimes the graph needs to include an open or closed circle to indicate the value of the function at $x=a.$ We examine this in the next example.

### Example 1.19

#### Graphing a Piecewise-Defined Function

Sketch a graph of the following piecewise-defined function:

#### Solution

Graph the linear function $y=x+3$ on the interval $(\text{\u2212\u221e},1)$ and graph the quadratic function $y={\left(x-2\right)}^{2}$ on the interval $\left[1,\infty \right).$ Since the value of the function at $x=1$ is given by the formula $f(x)={(x-2)}^{2},$ we see that $f(1)=1.$ To indicate this on the graph, we draw a closed circle at the point $(1,1).$ The value of the function is given by $f(x)=x+2$ for all $x<1,$ but not at $x=1.$ To indicate this on the graph, we draw an open circle at $(1,4).$

Sketch a graph of the function

### Example 1.20

#### Parking Fees Described by a Piecewise-Defined Function

In a big city, drivers are charged variable rates for parking in a parking garage. They are charged $10 for the first hour or any part of the first hour and an additional $2 for each hour or part thereof up to a maximum of $30 for the day. The parking garage is open from 6 a.m. to 12 midnight.

- Write a piecewise-defined function that describes the cost $C$ to park in the parking garage as a function of hours parked $x.$
- Sketch a graph of this function $C(x).$

#### Solution

- Since the parking garage is open 18 hours each day, the domain for this function is $\text{{}x|0<x\le 18\}.$ The cost to park a car at this parking garage can be described piecewise by the function

$$C\left(x\right)=\{\begin{array}{c}10,0<x\le 1\\ 12,1<x\le 2\\ 14,2<x\le 3\\ 16,3<x\le 4\\ \vdots \\ 30,10<x\le 18\end{array}.$$ - The graph of the function consists of several horizontal line segments.

The cost of mailing a letter is a function of the weight of the letter. Suppose the cost of mailing a letter is $49\text{\xa2}$ for the first ounce and $21\text{\xa2}$ for each additional ounce. Write a piecewise-defined function describing the cost $C$ as a function of the weight $x$ for $0<x\le 3,$ where $C$ is measured in cents and $x$ is measured in ounces.

### Transformations of Functions

We have seen several cases in which we have added, subtracted, or multiplied constants to form variations of simple functions. In the previous example, for instance, we subtracted 2 from the argument of the function $y={x}^{2}$ to get the function $f\left(x\right)={\left(x-2\right)}^{2}.$ This subtraction represents a shift of the function $y={x}^{2}$ two units to the right. A shift, horizontally or vertically, is a type of transformation of a function. Other transformations include horizontal and vertical scalings, and reflections about the axes.

A vertical shift of a function occurs if we add or subtract the same constant to each output $y.$ For $c>0,$ the graph of $f\left(x\right)+c$ is a shift of the graph of $f(x)$ up $c$ units, whereas the graph of $f\left(x\right)-c$ is a shift of the graph of $f\left(x\right)$ down $c$ units. For example, the graph of the function $f(x)={x}^{3}+4$ is the graph of $y={x}^{3}$ shifted up $4$ units; the graph of the function $f(x)={x}^{3}-4$ is the graph of $y={x}^{3}$ shifted down $4$ units (Figure 1.23).

A horizontal shift of a function occurs if we add or subtract the same constant to each input $x.$ For $c>0,$ the graph of $f(x+c)$ is a shift of the graph of $f(x)$ to the left $c$ units; the graph of $f(x-c)$ is a shift of the graph of $f(x)$ to the right $c$ units. Why does the graph shift left when adding a constant and shift right when subtracting a constant? To answer this question, let’s look at an example.

Consider the function $f\left(x\right)=|x+3|$ and evaluate this function at $x-3.$ Since $f\left(x-3\right)=\left|x\right|$ and $x-3<x,$ the graph of $f\left(x\right)=|x+3|$ is the graph of $y=\left|x\right|$ shifted left 3 units. Similarly, the graph of $f\left(x\right)=|x-3|$ is the graph of $y=\left|x\right|$ shifted right $3$ units (Figure 1.24).

A vertical scaling of a graph occurs if we multiply all outputs $y$ of a function by the same positive constant. For $c>0,$ the graph of the function $cf(x)$ is the graph of $f(x)$ scaled vertically by a factor of $c.$ If $c>1,$ the values of the outputs for the function $cf(x)$ are larger than the values of the outputs for the function $f(x);$ therefore, the graph has been stretched vertically. If $0<c<1,$ then the outputs of the function $cf(x)$ are smaller, so the graph has been compressed. For example, the graph of the function $f\left(x\right)=3{x}^{2}$ is the graph of $y={x}^{2}$ stretched vertically by a factor of 3, whereas the graph of $f\left(x\right)={x}^{2}\text{/}3$ is the graph of $y={x}^{2}$ compressed vertically by a factor of $3$ (Figure 1.25).

The horizontal scaling of a function occurs if we multiply the inputs $x$ by the same positive constant. For $c>0,$ the graph of the function $f(cx)$ is the graph of $f(x)$ scaled horizontally by a factor of $c.$ If $c>1,$ the graph of $f(cx)$ is the graph of $f(x)$ compressed horizontally. If $0<c<1,$ the graph of $f\left(cx\right)$ is the graph of $f\left(x\right)$ stretched horizontally. For example, consider the function $f\left(x\right)=\sqrt{2x}$ and evaluate $f$ at $x\text{/}2.$ Since $f(x\text{/}2)=\sqrt{x},$ the graph of $f\left(x\right)=\sqrt{2x}$ is the graph of $y=\sqrt{x}$ compressed horizontally. The graph of $y=\sqrt{x\text{/}2}$ is a horizontal stretch of the graph of $y=\sqrt{x}$ (Figure 1.26).

We have explored what happens to the graph of a function $f$ when we multiply $f$ by a constant $c>0$ to get a new function $cf(x).$ We have also discussed what happens to the graph of a function $f$ when we multiply the independent variable $x$ by $c>0$ to get a new function $f(cx).$ However, we have not addressed what happens to the graph of the function if the constant $c$ is negative. If we have a constant $c<0,$ we can write *c* as a positive number multiplied by $\mathrm{-1};$ but, what kind of transformation do we get when we multiply the function or its argument by $\mathrm{-1}?$ When we multiply all the outputs by $\mathrm{-1},$ we get a reflection about the $x$-axis. When we multiply all inputs by $\mathrm{-1},$ we get a reflection about the $y$-axis. For example, the graph of $f\left(x\right)=\text{\u2212}({x}^{3}+1)$ is the graph of $y=({x}^{3}+1)$ reflected about the $x$-axis. The graph of $f\left(x\right)={\left(\text{\u2212}x\right)}^{3}+1$ is the graph of $y={x}^{3}+1$ reflected about the $y$-axis (Figure 1.27).

If the graph of a function consists of more than one transformation of another graph, it is important to transform the graph in the correct order. Given a function $f(x),$ the graph of the related function $y=cf\left(a\left(x+b\right)\right)+d$ can be obtained from the graph of $y=f(x)$ by performing the transformations in the following order.

- Horizontal shift of the graph of $y=f(x).$ If $b>0,$ shift left. If $b<0,$ shift right.
- Horizontal scaling of the graph of $y=f(x+b)$ by a factor of $\left|a\right|.$ If $a<0,$ reflect the graph about the $y$-axis.
- Vertical scaling of the graph of $y=f(a\left(x+b\right))$ by a factor of $\left|c\right|.$ If $c<0,$ reflect the graph about the $x$-axis.
- Vertical shift of the graph of $y=cf(a\left(x+b\right)).$ If $d>0,$ shift up. If $d<0,$ shift down.

We can summarize the different transformations and their related effects on the graph of a function in the following table.

Transformation of $f\left(c>0\right)$ |
Effect on the graph of $f$ |
---|---|

$f\left(x\right)+c$ | Vertical shift up $c$ units |

$f\left(x\right)-c$ | Vertical shift down $c$ units |

$f(x+c)$ | Shift left by $c$ units |

$f(x-c)$ | Shift right by $c$ units |

$cf(x)$ | Vertical stretch if $c>1;$ vertical compression if $0<c<1$ |

$f(cx)$ | Horizontal stretch if $0<c<1;$ horizontal compression if $c>1$ |

$\text{\u2212}f(x)$ | Reflection about the $x$-axis |

$f(\text{\u2212}x)$ | Reflection about the $y$-axis |

### Example 1.21

#### Transforming a Function

For each of the following functions, a. and b., sketch a graph by using a sequence of transformations of a well-known function.

- $f\left(x\right)=\text{\u2212}\left|x+2\right|-3$
- $f\left(x\right)=3\sqrt{\text{\u2212}\mathit{\text{x}}}+1$

#### Solution

- Starting with the graph of $y=\left|x\right|,$ shift $2$ units to the left, reflect about the $x$-axis, and then shift down 3 units.

- Starting with the graph of $y=\sqrt{x},$ reflect about the $y$-axis, stretch the graph vertically by a factor of 3, and move up 1 unit.

Describe how the function $f\left(x\right)=\text{\u2212}{\left(x+1\right)}^{2}-4$ can be graphed using the graph of $y={x}^{2}$ and a sequence of transformations.

### Section 1.2 Exercises

For the following exercises, for each pair of points, a. find the slope of the line passing through the points and b. indicate whether the line is increasing, decreasing, horizontal, or vertical.

$(\mathrm{-1},4)$ and $(3,\mathrm{-1})$

$(6,4)$ and $(4,\mathrm{-3})$

$(1,9)$ and $(\mathrm{-8},5)$

$(1,4)$ and $(1,0)$

For the following exercises, write the equation of the line satisfying the given conditions in slope-intercept form.

Slope $=3,$ passes through $\left(\mathrm{-3},2\right)$

Slope $=\frac{2}{5},\phantom{\rule{0.2em}{0ex}}x$-intercept $=8$

Passing through $\left(\mathrm{-3},7\right)$ and $\left(1,2\right)$

$x$-intercept $=\mathrm{-6}$ and $y$-intercept $=9$

For the following exercises, for each linear equation, a. give the slope $m$ and $y$-intercept *b*, if any, and b. graph the line.

$y=-\frac{1}{7}x+1$

$f\left(x\right)=\mathrm{-5}x+4$

$8x-4=0$

$6x-5y+15=0$

For the following exercises, for each polynomial, a. find the degree; b. find the zeros, if any; c. find the $y$-intercept(s), if any; d. use the leading coefficient to determine the graph’s end behavior; and e. determine algebraically whether the polynomial is even, odd, or neither.

$f\left(x\right)=\mathrm{-3}{x}^{2}+6x$

$f\left(x\right)={x}^{3}+3{x}^{2}-x-3$

For the following exercises, use the graph of $f\left(x\right)={x}^{2}$ to graph each transformed function $g.$

$g\left(x\right)={x}^{2}-1$

For the following exercises, use the graph of $f\left(x\right)=\sqrt{x}$ to graph each transformed function $g.$

$g\left(x\right)=\sqrt{x+2}$

For the following exercises, use the graph of $y=f(x)$ to graph each transformed function $g.$

$g\left(x\right)=f\left(x\right)+1$

For the following exercises, for each of the piecewise-defined functions, a. evaluate at the given values of the independent variable and b. sketch the graph.

$f\left(x\right)=\{\begin{array}{c}4x+3,x\le 0\\ \text{\u2212}x+1,x>0\end{array};\phantom{\rule{0.2em}{0ex}}f\left(\mathrm{-3}\right);f\left(0\right);f(2)$

$f\left(x\right)=\{\begin{array}{c}{x}^{2}-3,x<0\\ 4x-3,x\ge 0\end{array};\phantom{\rule{0.2em}{0ex}}f\left(\mathrm{-4}\right);f\left(0\right);f(2)$

$h\left(x\right)=\{\begin{array}{c}x+1,x\le 5\\ 4,x>5\end{array};\phantom{\rule{0.2em}{0ex}}h\left(0\right);h\left(\pi \right);h(5)$

For the following exercises, determine whether the statement is *true or false*. Explain why.

$f\left(x\right)=(4x+1)\text{/}(7x-2)$ is a transcendental function.

A logarithmic function is an algebraic function.

A function of the form $f\left(x\right)={x}^{b},$ where $b$ is a real valued constant, is an exponential function.

The domain of an even root function is all real numbers.

**[T]** A company purchases some computer equipment for $20,500. At the end of a 3-year period, the value of the equipment has decreased linearly to $12,300.

- Find a function $y=V(t)$ that determines the value
*V*of the equipment at the end of*t*years. - Find and interpret the meaning of the $x$- and $y$-intercepts for this situation.
- What is the value of the equipment at the end of 5 years?
- When will the value of the equipment be $3000?

**[T]** Total online shopping during the Christmas holidays has increased dramatically during the past 5 years. In 2012 $\text{(}t=0\text{),}$ total online holiday sales were $42.3 billion, whereas in 2013 they were $48.1 billion.

- Find a linear function
*S*that estimates the total online holiday sales in the year*t*. - Interpret the slope of the graph of
*S*. - Use part a. to predict the year when online shopping during Christmas will reach $60 billion.

**[T]** A family bakery makes cupcakes and sells them at local outdoor festivals. For a music festival, there is a fixed cost of $125 to set up a cupcake stand. The owner estimates that it costs $0.75 to make each cupcake. The owner is interested in determining the total cost $C$ as a function of number of cupcakes made.

- Find a linear function that relates cost
*C*to*x*, the number of cupcakes made. - Find the cost to bake 160 cupcakes.
- If the owner sells the cupcakes for $1.50 apiece, how many cupcakes does she need to sell to start making profit? (
*Hint*: Use the INTERSECTION function on a calculator to find this number.)

**[T]** A house purchased for $250,000 is expected to be worth twice its purchase price in 18 years.

- Find a linear function that models the price
*P*of the house versus the number of years*t*since the original purchase. - Interpret the slope of the graph of
*P*. - Find the price of the house 15 years from when it was originally purchased.

**[T]** A car was purchased for $26,000. The value of the car depreciates by $1500 per year.

- Find a linear function that models the value
*V*of the car after*t*years. - Find and interpret $V(4).$

**[T]** A condominium in an upscale part of the city was purchased for $432,000. In 35 years it is worth $60,500. Find the rate of depreciation.

**[T]** The total cost *C* (in thousands of dollars) to produce a certain item is modeled by the function $C(x)=10.50x+\mathrm{28,500},$ where *x* is the number of items produced. Determine the cost to produce 175 items.

**[T]** A professor asks her class to report the amount of time *t* they spent writing two assignments. Most students report that it takes them about 45 minutes to type a four-page assignment and about 1.5 hours to type a nine-page assignment.

- Find the linear function $y=N(t)$ that models this situation, where $N$ is the number of pages typed and
*t*is the time in minutes. - Use part a. to determine how many pages can be typed in 2 hours.
- Use part a. to determine how long it takes to type a 20-page assignment.

**[T]** The output (as a percent of total capacity) of nuclear power plants in the United States can be modeled by the function $P\left(t\right)=1.8576t+68.052,$ where *t* is time in years and $t=0$ corresponds to the beginning of 2000. Use the model to predict the percentage output in 2015.

**[T]** The admissions office at a public university estimates that 65% of the students offered admission to the class of 2019 will actually enroll.

- Find the linear function $y=N(x),$ where $N$ is the number of students that actually enroll and $x$ is the number of all students offered admission to the class of 2019.
- If the university wants the 2019 freshman class size to be 1350, determine how many students should be admitted.