2.1: Derivatives of Polynomial Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
|
|
Finding derivatives of functions by using the definition of the derivative can be a lengthy and, for certain functions, a rather challenging process. For example, previously we found thatddx(√x)=12√xby using a process that involved multiplying an expression by a conjugate before evaluating a limit.
The process that we could use to evaluate ddx(3√x) using the definition, while similar, is more complicated.
In this section, we develop rules for finding derivatives that allow us to bypass this process. We begin with the basics.
The Basic Rules
The functions f(x)=c and g(x)=xn where n is a positive integer are the building blocks from which all polynomials and rational functions are constructed. To find derivatives of polynomials and rational functions efficiently without resorting to the limit definition of the derivative, we must first develop formulas for differentiating these basic functions.
The Constant Rule
We first apply the limit definition of the derivative to find the derivative of the constant function, f(x)=c. For this function, both f(x)=c and f(x+h)=c, so we obtain the following result:f′(x)=limh→0f(x+h)−f(x)h=limh→0c−ch=limh→00h=limh→00(Before evaluating the limit, perform any simple arithmetic. Zero over something nonzero is zero.)=0.The rule for differentiating constant functions is called the Constant Rule. It states that the derivative of a constant function is zero; that is, since a constant function is a horizontal line, the slope, or the rate of change, of a constant function is 0. We restate this rule in the following theorem.
Let c be a constant. If f(x)=c, then f′(x)=0.
Alternatively, we may express this rule asddx(c)=0.
Find the derivative of f(x)=8.
- Solution
-
This is just a one-step application of the rule: f′(x)=0.
Find the derivative of g(x)=−3.
- Answer
-
0
The Power Rule
During our exploration of the limit definition of the derivative, we showed thatddx(x2)=2x and ddx(x1/2)=12x−1/2.At this point, you might see a pattern beginning to develop for derivatives of the form ddx(xn). We continue our examination of derivative formulas by differentiating power functions of the form f(x)=xn where n is a positive integer. We develop formulas for derivatives of this type of function in stages, beginning with positive integer powers. Before stating and proving the general rule for derivatives of functions of this form, we take a look at a specific case, ddx(x3), as the technique used in this case is essentially the same as the technique used to prove the general case.
Find ddx(x3).
- Solution
-
ddx(x3)=limh→0(x+h)3−x3h=limh→0x3+3x2h+3xh2+h3−x3h(distributing)=limh→03x2h+3xh2+h3h(combining like terms)=limh→0h(3x2+3xh+h2)h(factoring)=limh→0h(3x2+3xh+h2)h1(canceling like factors)=limh→0(3x2+3xh+h2)D.S.=3x2
Find ddx(x4).
- Answer
-
ddx(x4)=4x3
As we shall see, the procedure for finding the derivative of the general form f(x)=xn is very similar. Although it is often unwise to draw general conclusions from specific examples, we note that when we differentiate f(x)=x3, the derivative becomes the product of the original power and x to a power one less than it was before. A lot of students think of it as follows:
When you take the derivative of xn, you move the power to the front and subtract 1 from the exponent.
The following theorem states that the Power Rule holds for all positive integer powers of x.
Let n be a positive integer. If f(x)=xn, thenf′(x)=nxn−1.Alternatively, we may express this rule asddx(xn)=nxn−1.
- Proof
-
For f(x)=xn where n is a positive integer, we havef′(x)=limh→0(x+h)n−xnh.Since(x+h)n=xn+nxn−1h+(n2)xn−2h2+(n3)xn−3h3+…+nxhn−1+hn,we see that(x+h)n−xn=nxn−1h+(n2)xn−2h2+(n3)xn−3h3+…+nxhn−1+hn.Next, divide both sides by h:(x+h)n−xnh=nxn−1h+(n2)xn−2h2+(n3)xn−3h3+…+nxhn−1+hnh.Thus,(x+h)n−xnh=nxn−1+(n2)xn−2h+(n3)xn−3h2+…+nxhn−2+hn−1.Finally,f′(x)=limh→0(nxn−1+(n2)xn−2h+(n3)xn−3h2+…+nxhn−2+hn−1)=nxn−1.
Q.E.D.
Find the derivative of the function f(x)=x10 by applying the Power Rule.
- Solution
-
Using the Power Rule with n=10, we obtainf′(x)=10x10−1=10x9.
Find the derivative of f(x)=x7.
- Answer
-
f′(x)=7x6
This theorem holds for all powers (not just positive integers). Despite being unable to prove it at this point in the course, we allow ourselves the luxury of using it.
Let n∈R. If f(x)=xn,thenddx(xn)=nxn−1.
As a reminder, we have yet to prove the previous theorem. We are allowing ourselves the ability to use it for now. Still, I promise this fact will be proved rigorously when we have better mathematical "technology."
Find ddx(x−4).
- Solution
-
By applying the extended Power Rule with k=−4, we obtainddx(x−4)=−4x−4−1=−4x−5.
Use the extended Power Rule and the Constant Multiple Rule to find f(x)=6x2.
- Solution
-
It may seem tempting to use the Quotient Rule to find this derivative, and it would undoubtedly be correct. However, it is far easier to differentiate this function by first rewriting it as f(x)=6x−2.f′(x)=ddx(6x2)=ddx(6x−2)(Laws of Exponents)=6ddx(x−2)(Constant Multiple Rule)=6(−2x−3)(Power Rule)=−12x−3(simplifying)
Find the derivative of g(x)=1x7 using the extended Power Rule.
- Answer
-
g′(x)=−7x−8.
Differentiate each of the following functions.
- f(x)=1x18
- g(x)=5√x3
- Solutions
-
- Following the Mathematical Mantra, we handle any Algebra before performing Calculus. This function can be rewritten as f(x)=x−18. Applying the General Power Rule, we getddx[f(x)]=−18x−18−1=−18x−19
- Again, following the Mathematical Mantra, we simplify this function first.ddx(5√x3)=ddx(x3/5)=35x3/5−1=35x−2/5
Before stepping into the next subsection, a critical warning needs to be issued.
The Power Rule only applies to algebraic functions of the form y=xn. It does not apply to functions that raise a constant to a variable power, such as f(x)=3x. That is,ddx(3x)≠x3x−1.
The Sum, Difference, and Constant Multiple Rules
We find our next differentiation rules by looking at derivatives of sums, differences, and constant multiples of functions. Just as when we work with functions, there are rules that make it easier to find derivatives of functions that we add, subtract, or multiply by a constant. These rules are summarized in the following theorem.
Let f(x) and g(x) be differentiable functions and k be a constant. Then, each of the following equations holds.
Sum Rule. The derivative of the sum of a function f and a function g is the same as the sum of the derivative of f and the derivative of g.ddx(f(x)+g(x))=ddx(f(x))+ddx(g(x));that is,for s(x)=f(x)+g(x),s′(x)=f′(x)+g′(x).
Difference Rule. The derivative of the difference of a function f and a function g is the same as the difference of the derivative of f and the derivative of g :ddx(f(x)−g(x))=ddx(f(x))−ddx(g(x));that is,for d(x)=f(x)−g(x),d′(x)=f′(x)−g′(x).
Constant Multiple Rule. The derivative of a constant k multiplied by a function f is the same as the constant multiplied by the derivative:ddx(kf(x))=kddx(f(x));that is,for m(x)=kf(x),m′(x)=kf′(x).
- Proof
-
We provide only the proof of the Sum Rule here. The rest follow similarly.
For differentiable functions f(x) and g(x), we set s(x)=f(x)+g(x). Using the limit definition of the derivative we haves′(x)=limh→0s(x+h)−s(x)h.By substituting s(x+h)=f(x+h)+g(x+h) and s(x)=f(x)+g(x), we obtains′(x)=limh→0(f(x+h)+g(x+h))−(f(x)+g(x))h.Rearranging and regrouping the terms, we haves′(x)=limh→0(f(x+h)−f(x)h+g(x+h)−g(x)h).We now apply the Sum Law for limits and the definition of the derivative to obtains′(x)=limh→0f(x+h)−f(x)h+limh→0g(x+h)−g(x)h=f′(x)+g′(x).
Q.E.D.
Find the derivative of g(x)=3x2 and compare it to the derivative of f(x)=x2.
- Solution
-
We use the Power Rule directly:g′(x)=ddx(3x2)=3ddx(x2)=3(2x)=6x.Since f(x)=x2 has derivative f′(x)=2x, we see that the derivative of g(x) is 3 times the derivative of f(x). This relationship is illustrated in Figure 2.1.1.
Figure 2.1.1: The derivative of g(x) is 3 times the derivative of f(x).
Find the derivative of f(x)=2x5+7.
- Solution
-
We begin by applying the rule for differentiating the sum of two functions, followed by the rules for differentiating constant multiples of functions and the rule for differentiating powers. To better understand the sequence in which the differentiation rules are applied, we use Leibniz notation throughout the solution:f′(x)=ddx(2x5+7)=ddx(2x5)+ddx(7)(Sum Rule)=2ddx(x5)+ddx(7)(Constant Multiple Rule)=2(5x4)+0(Power and Constant Rules)=10x4(simplifying)
Find the derivative of f(x)=2x3−6x2+3.
- Answer
-
f′(x)=6x2−12x.
The following example illustrates that we can use several rules within a single problem. It also emphasizes the need to pay attention to the Mathematical Mantra.
Compute the derivative of g(x)=x2+3x3−4x+√xx+x(x2−1)2.
- Solution
-
ddx(x2+3x3−4x+√xx+x(x2−1)2)=ddx(x2+3x2−4+1√x+x(x4−2x2+1))=ddx(x2+3x2−4+1√x+x5−2x3+x)=ddx(x5−2x3+4x2+x+x−1/2−4)=5x4−6x2+8x+1−12x−3/2
Synthesis Topic: Tangent Lines and Their Equations
Find the equation of the line tangent to the graph of f(x)=x2−4x+6 at x=1.
- Solution
-
To find the equation of the tangent line, we need a point and a slope. To find the point, computef(1)=12−4(1)+6=3.This gives us the point (1,3). Since the slope of the tangent line at 1 is f′(1), we must first find f′(x). Using the definition of a derivative, we havef′(x)=2x−4so the slope of the tangent line is f′(1)=−2. Using the point-slope formula, we see that the equation of the tangent line isy−3=−2(x−1).Putting the equation of the line in slope-intercept form, we obtainy=−2x+5.
Find the equation of the line tangent to the graph of f(x)=3x2−11 at x=2. Use the point-slope form.
- Answer
-
y=12x−23
Find the x-value(s) where the graph of f(x)=2x3+6x2−90x+21 has horizontal tangents.
- Solution
-
To find the values of x for which f(x) has a horizontal tangent line, we must solve f′(x)=0.f′(x)=6x2+12x−90=6(x2+2x−15)=6(x−3)(x+5)Hence, f has horizontal tangent lines at x=3 and x=−5.
Find the values of x for which the line tangent to the graph of f(x)=4x2−3x+2 has a tangent line parallel to the line y=2x+3.
- Answer
-
58
For what values a and b is the line 4x+y=b tangent to the curve y=ax2 when x=−4?
- Solution
-
Careful reading is important in Calculus. We know that, for some special values of a and b, the line 4x+y=b will be tangent to y=ax2 at x=−4. This fact implies two important pieces of information:
- the slope of the line and the slope of the tangent line to the quadratic function will match at x=−4, and
- the line and the parabola will share a common point at x=−4.
Matching Slopes
To find the slope of the line, we place it in slope-intercept form.y=−4x+bThus, the slope of the line is −4.To find the slope of the tangent line to y=ax2, we first compute the derivative.y′=2axEvaluating this at x=−4, we gety′(−4)=−8a.Since the slope of the tangent line to the quadratic and the slope of the line are supposed to match at x=−4,−4=−8a⟹a=12.
Common Point
Since the line and the quadratic meet at x=−4, their y-values will be the same. That is, at x=−4, −4x+b=ax2. Therefore,−4(−4)+b=a(−4)2⟹16+b=12(16)⟹16+b=8⟹b=−8Thus, for the line and quadratic to meet and be tangent at x=−4, we require a=12 and b=−8.
Applications of Differentiation: Physics
As we have mentioned previously, if s(t) is the position of a particle at time t, then its velocity isv(t)=dsdtand its acceleration isa(t)=dvdt=ds2dt2.
A rocket is fired vertically upward. Its height in meters above the ground t seconds after launch is given byh(t)=−4.9t2+154t+388.
- How high was the rocket when it was launched?
- How high is the rocket after 6 seconds?
- What is the velocity of the rocket after 6 seconds?
- What is the acceleration of the rocket after 6 seconds?
- Solutions
-
- The initial height is given by h(0)=388. Therefore, the initial height of the rocket is 388 meters.
- h(6)=1,135.6. Therefore, the height of the rocket 6 seconds after launch is 1,135.6 meters.
- To compute the velocity, we need to find the derivative of h(t).v(t)=h′(t)=−9.8t+154Evaluating h′ at 6, we getv(6)=h′(6)=−9.8(6)+154=95.2.This means that the velocity of the rocket exactly 6 seconds after launch is 95.2 meters per second. Since this velocity is positive, the rocket is still climbing upward.
- To compute the acceleration, we need to find the derivative of the velocity.a(t)=v′(t)=−9.8Hence, the acceleration is always −9.8 meters per second squared. That is, the rocket is deceleratingat 9.8 meters per second squared the entire time. While this idea of "slowing down" makes sense on the rise, how can we make sense of it as the rocket begins to fall? Well, the negative acceleration implies the rocket's velocity is decreasing as the rocket rises. At some point, the velocity would have to hit 0. At that moment, the rocket begins its descent back to Earth. The velocity becomes negative as the distance between the rocket and the Earth decreases, and the rate of this descent increases (in the negative direction) until the rocket crashes into the ground. The negative acceleration acted to slow the ascent and speed the descent.
Applications of Differentiation: Business
Most individuals taking this course are moving into a STEM field - not business; however, it is always nice to know what the news channels imply when they mention revenue, cost, profit, marginal cost, etc. To simplify the conversation, I have decided to forgo any lengthy discussion and jump right to the point.
- Revenue is the product of the price of the item and the number of items sold. Mathematically, R(n)=p(n)⋅n, where p(n) is the price-demand function (the price the company charges when the market demands n items) and n is the number of items sold.
- Profit is the difference between the revenue from sales and the cost of producing an item. Mathematically, P(n)=R(n)−C(n), where R(n) is the revenue function and C(n) is the cost function.
- Marginal cost is the change in the total cost that arises when the quantity produced is incremented. That is, it is the change in cost with respect to the number of items produced. Mathematically, MC(n)=dCdn, where C(n) is the cost function (i.e., the cost of producing n items).
- Marginal profit is the change in the total profit that arises when the quantity produced is incremented. That is, it is the change in profit with respect to the number of items produced. Mathematically, MP(n)=dPdn, where P(n) is the profit function.
- Marginal revenue is the change in the total revenue that arises when the quantity produced is incremented. That is, it is the change in revenue with respect to the number of items produced. Mathematically, MR(n)=dRdn, where R(n) is the revenue function.
Thus, when you hear "marginal [insert business phrasing here]," it means that you need to take the derivative of that "business phrasing." The result will represent the cost, profit, revenue, etcetera associated with one additional item being produced.
Suppose a product's revenue function is given by R(q)=−2q2+800q , where R(q) is in dollars and q is units sold. Also, its cost function is given by C(q)=153q+40,000, where C is in dollars and q is units produced. Find an expression for the item's marginal profit function (MP(q)) and use it to determine and interpret MP(220).
- Solution
-
Marginal profit is the derivative of the profit function, which they did not explicitly hand us; however, we know that profit is revenue minus cost. Thus,P(q)=R(q)−C(q)=−2q2+800q−(153q+40,000)=−2q2+647q−40,000.Therefore, the marginal profit function isMP(q)=P′(q)=−4q+647.Hence,MP(220)=−233.This means that if the company produces and sells 220 units, its profit will drop by $233 if it sells another unit. This is usually tough for students to understand at first, so let's take a moment to dive a little deeper. The derivative, dPdq, is the rate of change of profit with respect to the number of units produced (and sold). Since dPdq(220)=−233=−2331, we can interpret this as losing $233 in profit per 1 unit produced and sold when we have produced and sold exactly 220 units.
It's important to note that marginal profit is not the profit. In fact, the profit if the company produces and sells 220 units is P(220)=5540. That is, the company is still making a profit of $5,540 at that moment, but producing more units will eat into those profits.
Your Turn
Formula One car races can be exhilarating to watch and attract a lot of spectators. Formula One track designers must ensure sufficient grandstand space around the track to accommodate these viewers. However, car racing can be dangerous, and safety considerations are paramount. The grandstands must be placed where spectators will not be in danger should a driver lose control of a car (Figure 2.1.2).
Figure 2.1.2: The grandstand next to a straightaway of the Circuit de Barcelona-Catalunya race track, where the spectators are not in danger.
Safety is especially a concern on turns. If a driver does not slow down enough before entering the turn, the car may slide off the racetrack. Normally, this results in a wider turn, which slows the driver down. But if the driver loses control completely, the car may fly off the track entirely, on a path tangent to the curve of the racetrack.
Suppose you are designing a new Formula One track. One section of the track can be modeled by the function f(x)=x3+3x2+x (Figure 2.1.3). The current plan calls for grandstands to be built along the first straightaway and around a portion of the first curve. The plans call for the front corner of the grandstand to be located at the point (−1.9,2.8). We want to determine whether this location puts the spectators in danger if a driver loses control of the car.
Figure 2.1.3a: One section of the racetrack can be modeled by the function f(x)=x3+3x2+x.
Figure 2.1.3b: The front corner of the grandstand is located at (−1.9,2.8).
- Physicists have determined that drivers are most likely to lose control of their cars as they are coming into a turn at the point where the slope of the tangent line is 1. Find the (x,y) coordinates of this point near the turn.
- Find the equation of the tangent line to the curve at this point.
- To determine whether the spectators are in danger in this scenario, find the x-coordinate of the point where the tangent line crosses the line y=2.8. Is this point safely to the right of the grandstand? Or are the spectators in danger?
- What if a driver loses control earlier than the physicists project? Suppose a driver loses control at the point (−2.5,0.625). What is the slope of the tangent line at this point?
- If a driver loses control as described in part d, are the spectators safe?
- Should you proceed with the current design for the grandstand, or should the grandstands be moved?