Learning Objectives
- Calculate the slope of a linear function and interpret its meaning.
- Recognize the degree of a polynomial.
- Find the roots of a quadratic polynomial.
- Describe the graphs of basic odd and even polynomial functions.
- Identify a rational function.
- Describe the graphs of power and root functions.
- Explain the difference between algebraic and transcendental functions.
- Graph a piecewise-defined function.
- 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 [latex]f(x)=ax+b[/latex], where [latex]a[/latex] and [latex]b[/latex] are constants. In (Figure), we see examples of linear functions when [latex]a[/latex] is positive, negative, and zero. Note that if [latex]a>0[/latex], the graph of the line rises as [latex]x[/latex] increases. In other words, [latex]f(x)=ax+b[/latex] is increasing on [latex](−\infty, \infty)[/latex]. If [latex]a<0[/latex], the graph of the line falls as [latex]x[/latex] increases. In this case, [latex]f(x)=ax+b[/latex] is decreasing on [latex](−\infty, \infty)[/latex]. If [latex]a=0[/latex], the line is horizontal.
As suggested by (Figure), 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 [latex]y[/latex] for each unit change in [latex]x[/latex]. 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 [latex]y[/latex] versus the change in [latex]x[/latex]. To do so, we choose any two points [latex](x_1,y_1)[/latex] and [latex](x_2,y_2)[/latex] on the line and calculate [latex]\frac{y_2-y_1}{x_2-x_1}[/latex]. In (Figure), we see this ratio is independent of the points chosen.
Definition
Consider line [latex]L[/latex] passing through points [latex](x_1,y_1)[/latex] and [latex](x_2,y_2)[/latex]. Let [latex]\Delta y=y_2-y_1[/latex] and [latex]\Delta x=x_2-x_1[/latex] denote the changes in [latex]y[/latex] and [latex]x[/latex], 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 [latex]f(x)=ax+b[/latex]. 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 [latex](y_2-y_1)/(x_2-x_1)[/latex] for any points [latex](x_1,y_1)[/latex] and [latex](x_2,y_2)[/latex] on the line. Evaluating the function [latex]f[/latex] at [latex]x=0[/latex], we see that [latex](0,b)[/latex] is a point on this line. Evaluating this function at [latex]x=1[/latex], we see that [latex](1,a+b)[/latex] is also a point on this line. Therefore, the slope of this line is
We have shown that the coefficient [latex]a[/latex] is the slope of the line. We can conclude that the formula [latex]f(x)=ax+b[/latex] describes a line with slope [latex]a[/latex]. Furthermore, because this line intersects the [latex]y[/latex]-axis at the point [latex](0,b)[/latex], we see that the [latex]y[/latex]-intercept for this linear function is [latex](0,b)[/latex]. We conclude that the formula [latex]f(x)=ax+b[/latex] tells us the slope, [latex]a[/latex], and the [latex]y[/latex]-intercept, [latex](0,b)[/latex], for this line. Since we often use the symbol [latex]m[/latex] 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 [latex](x_1,y_1)[/latex] and the slope of the line is [latex]m[/latex]. Since any other point [latex](x,f(x))[/latex] on the graph of [latex]f[/latex] 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 [latex]x=k[/latex] for some constant [latex]k[/latex]. Since neither the slope-intercept form nor the point-slope form allows for vertical lines, we use the notation
where [latex]a,b[/latex] are both not zero, to denote the standard form of a line.
Definition
Consider a line passing through the point [latex](x_1,y_1)[/latex] with slope [latex]m[/latex]. The equation
is the point-slope equation for that line.
Consider a line with slope [latex]m[/latex] and [latex]y[/latex]-intercept [latex](0,b)[/latex]. The equation
is an equation for that line in slope-intercept form.
The standard form of a line is given by the equation
where [latex]a[/latex] and [latex]b[/latex] are both not zero. This form is more general because it allows for a vertical line, [latex]x=k[/latex].
Finding the Slope and Equations of Lines
Consider the line passing through the points [latex](11,-4)[/latex] and [latex](-4,5)[/latex], as shown in (Figure).
- 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.
Consider the line passing through points [latex](-3,2)[/latex] and [latex](1,4)[/latex]. 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.
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 [latex]D[/latex] (in miles) Jessica runs as a linear function of her run time [latex]t[/latex] (in minutes).
- Sketch a graph of [latex]D[/latex].
- Interpret the meaning of the slope.
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 [latex]n\ge 0[/latex] and constants [latex]a_n, \, a_{n-1}, \cdots, a_0[/latex], where [latex]a_n\ne 0[/latex]. In the case when [latex]n=0[/latex], we allow for [latex]a_0=0[/latex]; if [latex]a_0=0[/latex], the function [latex]f(x)=0[/latex] is called the zero function. The value [latex]n[/latex] is called the degree of the polynomial; the constant [latex]a_n[/latex] is called the leading coefficient. A linear function of the form [latex]f(x)=mx+b[/latex] is a polynomial of degree 1 if [latex]m\ne 0[/latex] and degree 0 if [latex]m=0[/latex]. 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 [latex]f(x)=ax^2+bx+c[/latex], where [latex]a\ne 0[/latex]. 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 [latex]f(x)=ax^b[/latex], where [latex]a[/latex] and [latex]b[/latex] 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 [latex]f(x)=ax^n[/latex] is a polynomial. If [latex]n[/latex] is even, then [latex]f(x)=ax^n[/latex] is an even function because [latex]f(−x)=a(−x)^n=ax^n[/latex] if [latex]n[/latex] is even. If [latex]n[/latex] is odd, then [latex]f(x)=ax^n[/latex] is an odd function because [latex]f(−x)=a(−x)^n=−ax^n[/latex] if [latex]n[/latex] is odd ((Figure)).
Behavior at Infinity
To determine the behavior of a function [latex]f[/latex] as the inputs approach infinity, we look at the values [latex]f(x)[/latex] as the inputs, [latex]x[/latex], become larger. For some functions, the values of [latex]f(x)[/latex] approach a finite number. For example, for the function [latex]f(x)=2+1/x[/latex], the values [latex]1/x[/latex] become closer and closer to zero for all values of [latex]x[/latex] as they get larger and larger. For this function, we say “[latex]f(x)[/latex] approaches two as [latex]x[/latex] goes to infinity,” and we write [latex]f(x)\to 2[/latex] as [latex]x\to \infty[/latex]. The line [latex]y=2[/latex] is a horizontal asymptote for the function [latex]f(x)=2+1/x[/latex] because the graph of the function gets closer to the line as [latex]x[/latex] gets larger.
For other functions, the values [latex]f(x)[/latex] may not approach a finite number but instead may become larger for all values of [latex]x[/latex] as they get larger. In that case, we say “[latex]f(x)[/latex] approaches infinity as [latex]x[/latex] approaches infinity,” and we write [latex]f(x)\to \infty[/latex] as [latex]x\to \infty[/latex]. For example, for the function [latex]f(x)=3x^2[/latex], the outputs [latex]f(x)[/latex] become larger as the inputs [latex]x[/latex] get larger. We can conclude that the function [latex]f(x)=3x^2[/latex] approaches infinity as [latex]x[/latex] approaches infinity, and we write [latex]3x^2\to \infty[/latex] as [latex]x\to \infty[/latex]. The behavior as [latex]x \to −\infty[/latex] and the meaning of [latex]f(x) \to −\infty[/latex] as [latex]x \to \infty[/latex] or [latex]x \to −\infty[/latex] can be defined similarly. We can describe what happens to the values of [latex]f(x)[/latex] as [latex]x \to \infty[/latex] and as [latex]x \to −\infty[/latex] 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 [latex]f(x)=ax^2+bx+c[/latex]. If [latex]a>0[/latex], the values [latex]f(x) \to \infty[/latex] as [latex]x \to \pm \infty[/latex]. If [latex]a<0[/latex], the values [latex]f(x) \to −\infty[/latex] as [latex]x \to \pm \infty[/latex]. Since the graph of a quadratic function is a parabola, the parabola opens upward if [latex]a>0[/latex]; the parabola opens downward if [latex]a<0[/latex]. (See (Figure)(a).)
Now consider a cubic function [latex]f(x)=ax^3+bx^2+cx+d[/latex]. If [latex]a>0[/latex], then [latex]f(x) \to \infty[/latex] as [latex]x \to \infty[/latex] and [latex]f(x) \to -\infty[/latex] as [latex]x \to −\infty[/latex]. If [latex]a<0[/latex], then [latex]f(x) \to −\infty[/latex] as [latex]x \to \infty[/latex] and [latex]f(x) \to \infty[/latex] as [latex]x \to −\infty[/latex]. As we can see from both of these graphs, the leading term of the polynomial determines the end behavior. (See (Figure)(b).)
Zeros of Polynomial Functions
Another characteristic of the graph of a polynomial function is where it intersects the [latex]x[/latex]-axis. To determine where a function [latex]f[/latex] intersects the [latex]x[/latex]-axis, we need to solve the equation [latex]f(x)=0[/latex] for [latex]x[/latex]. In the case of the linear function [latex]f(x)=mx+b[/latex], the [latex]x[/latex]-intercept is given by solving the equation [latex]mx+b=0[/latex]. In this case, we see that the [latex]x[/latex]-intercept is given by [latex](−b/m,0)[/latex]. In the case of a quadratic function, finding the [latex]x[/latex]-intercept(s) requires finding the zeros of a quadratic equation: [latex]ax^2+bx+c=0[/latex]. In some cases, it is easy to factor the polynomial [latex]ax^2+bx+c[/latex] to find the zeros. If not, we make use of the quadratic formula.
Rule: The Quadratic Formula
Consider the quadratic equation
where [latex]a\ne 0[/latex]. The solutions of this equation are given by the quadratic formula
If the discriminant [latex]b^2-4ac>0[/latex], this formula tells us there are two real numbers that satisfy the quadratic equation. If [latex]b^2-4ac=0[/latex], this formula tells us there is only one solution, and it is a real number. If [latex]b^2-4ac<0[/latex], 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 [latex]x[/latex]-axis. In some instances, it is possible to find the [latex]x[/latex]-intercepts by factoring the polynomial to find its zeros. In other cases, it is impossible to calculate the exact values of the [latex]x[/latex]-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 [latex]x[/latex]-intercepts are located. Here we focus on the graphs of polynomials for which we can calculate their zeros explicitly.
Graphing Polynomial Functions
For the following functions a. and b., i. describe the behavior of [latex]f(x)[/latex] as [latex]x \to \pm \infty[/latex], ii. find all zeros of [latex]f[/latex], and iii. sketch a graph of [latex]f[/latex].
- [latex]f(x)=-2x^2+4x-1[/latex]
- [latex]f(x)=x^3-3x^2-4x[/latex]
Consider the quadratic function [latex]f(x)=3x^2-6x+2[/latex]. Find the zeros of [latex]f[/latex]. Does the parabola open upward or downward?
Hint
Use the quadratic formula.
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 [latex]R[/latex] a company receives for the sale of [latex]n[/latex] items sold at a price of [latex]p[/latex] dollars per item is described by the equation [latex]R=p·n[/latex]. The company is interested in how the sales change as the price of the item changes. Suppose the data in (Figure) show the number of units a company sells as a function of the price per item.
[latex]\mathbf{p}[/latex] | 6 | 8 | 10 | 12 | 14 |
[latex]\mathbf{n}[/latex] | 19.4 | 18.5 | 16.2 | 13.8 | 12.2 |
In (Figure), 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 [latex]n=-1.04p+26[/latex] for [latex]0\le p\le 25[/latex], where [latex]n[/latex] 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 [latex]0\le p\le 25[/latex]. In Example, 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 [latex]p[/latex], 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 [latex]p[/latex] dollars may be close to the values predicted by the linear function [latex]n=-1.04p+26[/latex].
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 (Figure), the company arrives at the following quadratic function to model revenue [latex]R[/latex] as a function of price per item [latex]p[/latex]:
for [latex]0\le p\le 25[/latex].
- Predict the revenue if the company sells the item at a price of [latex]p=\$5[/latex] and [latex]p=\$17[/latex].
- Find the zeros of this function and interpret the meaning of the zeros.
- Sketch a graph of [latex]R[/latex].
- Use the graph to determine the value of [latex]p[/latex] that maximizes revenue. Find the maximum revenue.
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 [latex]f(x)=p(x)/q(x)[/latex], where [latex]p(x)[/latex] and [latex]q(x)[/latex] are polynomials. For example,
are rational functions. A root function is a power function of the form [latex]f(x)=x^{1/n}[/latex], where [latex]n[/latex] is a positive integer greater than one. For example, [latex]f(x)=x^{1/2}=\sqrt{x}[/latex] is the square-root function and [latex]g(x)=x^{1/3}=\sqrt[3]{x}[/latex] is the cube-root function. By allowing for compositions of root functions and rational functions, we can create other algebraic functions. For example, [latex]f(x)=\sqrt{4-x^2}[/latex] is an algebraic function.
Finding Domain and Range for Algebraic Functions
For each of the following functions, find the domain and range.
- [latex]f(x)=\frac{3x-1}{5x+2}[/latex]
- [latex]f(x)=\sqrt{4-x^2}[/latex]
Find the domain and range for the function [latex]f(x)=(5x+2)/(2x-1)[/latex].
Hint
The denominator cannot be zero. Solve the equation [latex]y=(5x+2)/(2x-1)[/latex] for [latex]x[/latex] to find the range.
The root functions [latex]f(x)=x^{1/n}[/latex] have defining characteristics depending on whether [latex]n[/latex] is odd or even. For all even integers [latex]n \ge 2[/latex], the domain of [latex]f(x)=x^{1/n}[/latex] is the interval [latex][0,\infty)[/latex]. For all odd integers [latex]n \ge 1[/latex], the domain of [latex]f(x)=x^{1/n}[/latex] is the set of all real numbers. Since [latex]x^{1/n}=(−x)^{1/n}[/latex] for odd integers [latex]n, \, f(x)=x^{1/n}[/latex] is an odd function if [latex]n[/latex] is odd. See the graphs of root functions for different values of [latex]n[/latex] in (Figure).
Finding Domains for Algebraic Functions
For each of the following functions, determine the domain of the function.
- [latex]f(x)=\frac{3}{x^2-1}[/latex]
- [latex]f(x)=\frac{2x+5}{3x^2+4}[/latex]
- [latex]f(x)=\sqrt{4-3x}[/latex]
- [latex]f(x)=\sqrt[3]{2x-1}[/latex]
Find the domain for each of the following functions: [latex]f(x)=(5-2x)/(x^2+2)[/latex] and [latex]g(x)=\sqrt{5x-1}[/latex].
Hint
Determine the values of [latex]x[/latex] when the expression in the denominator of [latex]f[/latex] is nonzero, and find the values of [latex]x[/latex] when the expression inside the radical of [latex]g[/latex] is nonnegative.
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 [latex]\sin x,\, \cos x, \, \tan x, \, \cot x,\, \sec x[/latex], and [latex]\csc x[/latex]. (We discuss trigonometric functions later in the chapter.) An exponential function is a function of the form [latex]f(x)=b^x[/latex], where the base [latex]b>0, \, b \ne 1[/latex]. A logarithmic function is a function of the form [latex]f(x)=\log_b(x)[/latex] for some constant [latex]b>0, \, b \ne 1[/latex], where [latex]\log_b(x)=y[/latex] if and only if [latex]b^y=x[/latex]. (We also discuss exponential and logarithmic functions later in the chapter.)
Classifying Algebraic and Transcendental Functions
Classify each of the following functions, a. through c., as algebraic or transcendental.
- [latex]f(x)= \large \frac{\sqrt{x^3+1}}{4x+2}[/latex]
- [latex]f(x)=2^{x^2}[/latex]
- [latex]f(x)=\sin (2x)[/latex]
Is [latex]f(x)=x/2[/latex] 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 [latex]x[/latex]:
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 [latex]xa[/latex], we need to pay special attention to what happens at [latex]x=a[/latex] when we graph the function. Sometimes the graph needs to include an open or closed circle to indicate the value of the function at [latex]x=a[/latex]. We examine this in the next example.
Graphing a Piecewise-Defined Function
Sketch a graph of the following piecewise-defined function:
Sketch a graph of the function
Hint
Graph one linear function for [latex]x \le 2[/latex] and then graph a different linear function for [latex]x>2[/latex].
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 [latex]C[/latex] to park in the parking garage as a function of hours parked [latex]x[/latex].
- Sketch a graph of this function [latex]C(x)[/latex].
The cost of mailing a letter is a function of the weight of the letter. Suppose the cost of mailing a letter is [latex]49\text{¢}[/latex] for the first ounce and [latex]21\text{¢}[/latex] for each additional ounce. Write a piecewise-defined function describing the cost [latex]C[/latex] as a function of the weight [latex]x[/latex] for [latex]0 < x \le 3[/latex], where [latex]C[/latex] is measured in cents and [latex]x[/latex] is measured in ounces.
Hint
The piecewise-defined function is constant on the intervals [latex](0,1], \, (1,2], \, \cdots[/latex]
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 [latex]y=x^2[/latex] to get the function [latex]f(x)=(x-2)^2[/latex]. This subtraction represents a shift of the function [latex]y=x^2[/latex] 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 [latex]y[/latex]. For [latex]c>0[/latex], the graph of [latex]f(x)+c[/latex] is a shift of the graph of [latex]f(x)[/latex] up [latex]c[/latex] units, whereas the graph of [latex]f(x)-c[/latex] is a shift of the graph of [latex]f(x)[/latex] down [latex]c[/latex] units. For example, the graph of the function [latex]f(x)=x^3+4[/latex] is the graph of [latex]y=x^3[/latex] shifted up 4 units; the graph of the function [latex]f(x)=x^3-4[/latex] is the graph of [latex]y=x^3[/latex] shifted down 4 units ((Figure)).
A horizontal shift of a function occurs if we add or subtract the same constant to each input [latex]x[/latex]. For [latex]c>0[/latex], the graph of [latex]f(x+c)[/latex] is a shift of the graph of [latex]f(x)[/latex] to the left [latex]c[/latex] units; the graph of [latex]f(x-c)[/latex] is a shift of the graph of [latex]f(x)[/latex] to the right [latex]c[/latex] 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 [latex]f(x)=|x+3|[/latex] and evaluate this function at [latex]x-3.[/latex] Since [latex]f(x-3)=|x|[/latex] and [latex]x-3
A vertical scaling of a graph occurs if we multiply all outputs [latex]y[/latex] of a function by the same positive constant. For [latex]c>0[/latex], the graph of the function [latex]cf(x)[/latex] is the graph of [latex]f(x)[/latex] scaled vertically by a factor of [latex]c[/latex]. If [latex]c>1[/latex], the values of the outputs for the function [latex]cf(x)[/latex] are larger than the values of the outputs for the function [latex]f(x)[/latex]; therefore, the graph has been stretched vertically. If [latex]0
The horizontal scaling of a function occurs if we multiply the inputs [latex]x[/latex] by the same positive constant. For [latex]c>0[/latex], the graph of the function [latex]f(cx)[/latex] is the graph of [latex]f(x)[/latex] scaled horizontally by a factor of [latex]c[/latex]. If [latex]c>1[/latex], the graph of [latex]f(cx)[/latex] is the graph of [latex]f(x)[/latex] compressed horizontally. If [latex]0
We have explored what happens to the graph of a function [latex]f[/latex] when we multiply [latex]f[/latex] by a constant [latex]c>0[/latex] to get a new function [latex]cf(x)[/latex]. We have also discussed what happens to the graph of a function [latex]f[/latex] when we multiply the independent variable [latex]x[/latex] by [latex]c>0[/latex] to get a new function [latex]f(cx)[/latex]. However, we have not addressed what happens to the graph of the function if the constant [latex]c[/latex] is negative. If we have a constant [latex]c<0[/latex], we can write [latex]c[/latex] as a positive number multiplied by -1; but, what kind of transformation do we get when we multiply the function or its argument by -1? When we multiply all the outputs by -1, we get a reflection about the [latex]x[/latex]-axis. When we multiply all inputs by -1, we get a reflection about the [latex]y[/latex]-axis. For example, the graph of [latex]f(x)=−(x^3+1)[/latex] is the graph of [latex]y=(x^3+1)[/latex] reflected about the [latex]x[/latex]-axis. The graph of [latex]f(x)=(−x)^3+1[/latex] is the graph of [latex]y=x^3+1[/latex] reflected about the [latex]y[/latex]-axis ((Figure)).
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 [latex]f(x)[/latex], the graph of the related function [latex]y=cf(a(x+b))+d[/latex] can be obtained from the graph of [latex]y=f(x)[/latex] by performing the transformations in the following order.
- Horizontal shift of the graph of [latex]y=f(x)[/latex]. If [latex]b>0[/latex], shift left. If [latex]b<0[/latex], shift right.
- Horizontal scaling of the graph of [latex]y=f(x+b)[/latex] by a factor of [latex]|a|[/latex]. If [latex]a<0[/latex], reflect the graph about the [latex]y[/latex]-axis.
- Vertical scaling of the graph of [latex]y=f(a(x+b))[/latex] by a factor of [latex]|c|[/latex]. If [latex]c<0[/latex], reflect the graph about the [latex]x[/latex]-axis.
- Vertical shift of the graph of [latex]y=cf(a(x+b))[/latex]. If [latex]d>0[/latex], shift up. If [latex]d<0[/latex], shift down.
We can summarize the different transformations and their related effects on the graph of a function in the following table.
Transformation of [latex]f(c>0)[/latex] | Effect on the graph of[latex]f[/latex] |
---|---|
[latex]f(x)+c[/latex] | Vertical shift up [latex]c[/latex] units |
[latex]f(x)-c[/latex] | Vertical shift down [latex]c[/latex] units |
[latex]f(x+c)[/latex] | Shift left by [latex]c[/latex] units |
[latex]f(x-c)[/latex] | Shift right by [latex]c[/latex] units |
[latex]cf(x)[/latex] | Vertical stretch if [latex]c>1[/latex]; vertical compression if [latex]0 |
[latex]f(cx)[/latex] | Horizontal stretch if [latex]0 |
[latex]−f(x)[/latex] | Reflection about the [latex]x[/latex]-axis |
[latex]f(−x)[/latex] | Reflection about the [latex]y[/latex]-axis |
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.
- [latex]f(x)=−|x+2|-3[/latex]
- [latex]f(x)=3\sqrt{−x}+1[/latex]
Describe how the function [latex]f(x)=−(x+1)^2-4[/latex] can be graphed using the graph of [latex]y=x^2[/latex] and a sequence of transformations.
Hint
Use (Table).
Key Concepts
- The power function [latex]f(x)=x^n[/latex] is an even function if [latex]n[/latex] is even and [latex]n \ne 0[/latex], and it is an odd function if [latex]n[/latex] is odd.
- The root function [latex]f(x)=x^{1/n}[/latex] has the domain [latex][0,\infty )[/latex] if [latex]n[/latex] is even and the domain [latex](-\infty,\infty )[/latex] if [latex]n[/latex] is odd. If [latex]n[/latex] is odd, then [latex]f(x)=x^{1/n}[/latex] is an odd function.
- The domain of the rational function [latex]f(x)=p(x)/q(x)[/latex], where [latex]p(x)[/latex] and [latex]q(x)[/latex] are polynomial functions, is the set of [latex]x[/latex] such that [latex]q(x) \ne 0[/latex].
- Functions that involve the basic operations of addition, subtraction, multiplication, division, and powers are algebraic functions. All other functions are transcendental. Trigonometric, exponential, and logarithmic functions are examples of transcendental functions.
- A polynomial function [latex]f[/latex] with degree [latex]n \ge 1[/latex] satisfies [latex]f(x) \to \pm \infty[/latex] as [latex]x \to \pm \infty[/latex]. The sign of the output as [latex]x \to \infty[/latex] depends on the sign of the leading coefficient only and on whether [latex]n[/latex] is even or odd.
- Vertical and horizontal shifts, vertical and horizontal scalings, and reflections about the [latex]x[/latex]– and [latex]y[/latex]-axes are examples of transformations of functions.
Key Equations
- Point-slope equation of a line
[latex]y-y_1=m(x-x_1)[/latex] - Slope-intercept form of a line
[latex]y=mx+b[/latex] - Standard form of a line
[latex]ax+by=c[/latex] - Polynomial function
[latex]f(x)=a_nx^n+a_{n-1}x^{n-1}+ \cdots +a_1x+a_0[/latex]
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.
1. [latex](-2,4)[/latex] and [latex](1,1)[/latex]
2. [latex](-1,4)[/latex] and [latex](3,-1)[/latex]
3. [latex](3,5)[/latex] and [latex](-1,2)[/latex]
4. [latex](6,4)[/latex] and [latex](4,-3)[/latex]
5. [latex](2,3)[/latex] and [latex](5,7)[/latex]
6. [latex](1,9)[/latex] and [latex](-8,5)[/latex]
7. [latex](2,4)[/latex] and [latex](1,4)[/latex]
8. [latex](1,4)[/latex] and [latex](1,0)[/latex]
For the following exercises, write the equation of the line satisfying the given conditions in slope-intercept form.
9. Slope [latex]=-6[/latex], passes through [latex](1,3)[/latex]
10. Slope [latex]=3[/latex], passes through [latex](-3,2)[/latex]
11. Slope [latex]=\frac{1}{3}[/latex], passes through [latex](0,4)[/latex]
12. Slope [latex]=\frac{2}{5}[/latex], [latex]x[/latex]-intercept [latex]=8[/latex]
13. Passing through [latex](2,1)[/latex] and [latex](-2,-1)[/latex]
14. Passing through [latex](-3,7)[/latex] and [latex](1,2)[/latex]
15. [latex]x[/latex]-intercept [latex]=5[/latex] and [latex]y[/latex]-intercept [latex]=-3[/latex]
16. [latex]x[/latex]-Intercept [latex]=-6[/latex] and [latex]y[/latex]-intercept [latex]=9[/latex]
For the following exercises, for each linear equation, a. give the slope [latex]m[/latex] and [latex]y[/latex]-intercept [latex]b[/latex], if any, and b. graph the line.
17. [latex]y=2x-3[/latex]
18. [latex]y=-\frac{1}{7}x+1[/latex]
19. [latex]f(x)=-6x[/latex]
20. [latex]f(x)=-5x+4[/latex]
21. [latex]4y+24=0[/latex]
22. [latex]8x-4=0[/latex]
23. [latex]2x+3y=6[/latex]
24. [latex]6x-5y+15=0[/latex]
For the following exercises, for each polynomial, a. find the degree; b. find the zeros, if any; c. find the [latex]y[/latex]-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.
25. [latex]f(x)=2x^2-3x-5[/latex]
26. [latex]f(x)=-3x^2+6x[/latex]
27. [latex]f(x)=\frac{1}{2}x^2-1[/latex]
28. [latex]f(x)=x^3+3x^2-x-3[/latex]
29. [latex]f(x)=3x-x^3[/latex]
For the following exercises, use the graph of [latex]f(x)=x^2[/latex] to graph each transformed function [latex]g[/latex].
30. [latex]g(x)=x^2-1[/latex]
31. [latex]g(x)=(x+3)^2+1[/latex]
For the following exercises, use the graph of [latex]f(x)=\sqrt{x}[/latex] to graph each transformed function [latex]g[/latex].
32. [latex]g(x)=\sqrt{x+2}[/latex]
33. [latex]g(x)=−\sqrt{x}-1[/latex]
For the following exercises, use the graph of [latex]y=f(x)[/latex] to graph each transformed function [latex]g[/latex]
34. [latex]g(x)=f(x)+1[/latex]
35. [latex]g(x)=f(x-1)+2[/latex]
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.
36. [latex]f(x)=\begin{cases} 4x+3, & x \le 0 \\ -x+1, & x > 0 \end{cases}[/latex]; [latex]f(-3); \, f(0); \, f(2)[/latex]
37. [latex]f(x)=\begin{cases}x^2-3, & x < 0 \\ 4x-3, & x \ge 0 \end{cases}[/latex]; [latex]f(-4); \, f(0); \, f(2)[/latex]
38. [latex]h(x)=\begin{cases} x+1, & x \le 5 \\ 4, & x > 5 \end{cases}[/latex]; [latex]h(0); \, h(\pi ); \, h(5)[/latex]
39. [latex]g(x)=\begin{cases} \large{\frac{3}{x-2}}, & x \ne 2 \\ 4, & x = 2 \end{cases}[/latex]; [latex]g(0); \, g(-4); \, g(2)[/latex]
For the following exercises, determine whether the statement is true or false. Explain why.
40. [latex]f(x)=(4x+1)/(7x-2)[/latex] is a transcendental function.
41. [latex]g(x)=\sqrt[3]{x}[/latex] is an odd root function
42. A logarithmic function is an algebraic function.
43. A function of the form [latex]f(x)=x^b[/latex], where [latex]b[/latex] is a real valued constant, is an exponential function.
44. The domain of an even root function is all real numbers.
45. [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 [latex]y=V(t)[/latex] that determines the value [latex]V[/latex] of the equipment at the end of [latex]t[/latex] years.
- Find and interpret the meaning of the [latex]x[/latex]– and [latex]y[/latex]-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?
46. [T] Total online shopping during the Christmas holidays has increased dramatically during the past 5 years. In 2012 [latex](t=0)[/latex], total online holiday sales were $42.3 billion, whereas in 2013 they were $48.1 billion.
- Find a linear function [latex]S[/latex] that estimates the total online holiday sales in the year [latex]t[/latex].
- Interpret the slope of the graph of [latex]S[/latex].
- Use part a. to predict the year when online shopping during Christmas will reach $60 billion.
47. [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 [latex]C[/latex] as a function of number of cupcakes made.
- Find a linear function that relates cost [latex]C[/latex] to [latex]x[/latex], 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.)
48. [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 [latex]P[/latex] of the house versus the number of years [latex]t[/latex] since the original purchase.
- Interpret the slope of the graph of [latex]P[/latex].
- Find the price of the house 15 years from when it was originally purchased.
49. [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 [latex]V[/latex] of the car after [latex]t[/latex] years.
- Find and interpret [latex]V(4)[/latex].
50. [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.
51. [T] The total cost [latex]C[/latex] (in thousands of dollars) to produce a certain item is modeled by the function [latex]C(x)=10.50x+28,500[/latex], where [latex]x[/latex] is the number of items produced. Determine the cost to produce 175 items.
52. [T] A professor asks her class to report the amount of time [latex]t[/latex] 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 [latex]y=N(t)[/latex] that models this situation, where [latex]N[/latex] is the number of pages typed and [latex]t[/latex] 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.
53. [T] The output (as a percent of total capacity) of nuclear power plants in the United States can be modeled by the function [latex]P(t)=1.8576t+68.052[/latex], where [latex]t[/latex] is time in years and [latex]t=0[/latex] corresponds to the beginning of 2000. Use the model to predict the percentage output in 2015.
54. [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 [latex]y=N(x)[/latex], where [latex]N[/latex] is the number of students that actually enroll and [latex]x[/latex] 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.
Glossary
- algebraic function
- a function involving any combination of only the basic operations of addition, subtraction, multiplication, division, powers, and roots applied to an input variable [latex]x[/latex]
- cubic function
- a polynomial of degree 3; that is, a function of the form [latex]f(x)=ax^3+bx^2+cx+d[/latex], where [latex]a \ne 0[/latex]
- degree
- for a polynomial function, the value of the largest exponent of any term
- linear function
- a function that can be written in the form [latex]f(x)=mx+b[/latex]
- logarithmic function
- a function of the form [latex]f(x)=\log_b(x)[/latex] for some base [latex]b>0, \, b \ne 1[/latex] such that [latex]y=\log_b(x)[/latex] if and only if [latex]b^y=x[/latex]
- mathematical model
- A method of simulating real-life situations with mathematical equations
- piecewise-defined function
- a function that is defined differently on different parts of its domain
- point-slope equation
- equation of a linear function indicating its slope and a point on the graph of the function
- polynomial function
- a function of the form [latex]f(x)=a_nx^n+a_{n-1}x^{n-1}+ \cdots +a_1x+a_0[/latex]
- power function
- a function of the form [latex]f(x)=x^n[/latex] for any positive integer [latex]n \ge 1[/latex]
- quadratic function
- a polynomial of degree 2; that is, a function of the form [latex]f(x)=ax^2+bx+c[/latex] where [latex]a \ne 0[/latex]
- rational function
- a function of the form [latex]f(x)=p(x)/q(x)[/latex], where [latex]p(x)[/latex] and [latex]q(x)[/latex] are polynomials
- root function
- a function of the form [latex]f(x)=x^{1/n}[/latex] for any integer [latex]n \ge 2[/latex]
- slope
- the change in [latex]y[/latex] for each unit change in [latex]x[/latex]
- slope-intercept form
- equation of a linear function indicating its slope and [latex]y[/latex]-intercept
- transcendental function
- a function that cannot be expressed by a combination of basic arithmetic operations
- transformation of a function
- a shift, scaling, or reflection of a function
Candela Citations
- Calculus I. Provided by: OpenStax. Located at: http://cnx.org/contents/8b89d172-2927-466f-8661-01abc7ccdba4@2.89. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Download for free at http://cnx.org/contents/8b89d172-2927-466f-8661-01abc7ccdba4@2.89
Hint
The slope [latex]m=\Delta y / \Delta x[/latex].