Topic 3 Applications of Derivatives
3.1 Maxima and Minima
Let ff be a function defined in the domain DD and cc a number in DD.
- We say f(c)f(c) is the absolute maximum value of ff on DD if f(c)≥f(x)f(c)≥f(x) for all xx in DD.
- We say f(c)f(c) is the absolute minimum value of ff on DD if f(c)≤f(x)f(c)≤f(x) for all xx in DD.
- We say f(c)f(c) is a local maximum value of ff if f(c)≥f(x)f(c)≥f(x) for all xx near cc.
- We say f(c)f(c) is a local minimum value of ff if f(c)≤f(x)f(c)≤f(x) for all xx near cc.
Theorem 3.1 (The Extreme Value Theorem) If ff is continuous on a closed interval [a,b][a,b], then ff attains an absolute maximum value f(c)f(c) and an absolute minimum value f(d)f(d) at some numbers cc and dd in [a,b][a,b].
Theorem 3.2 (Fermat’s Theorem) If ff has a local maximum or minimum at cc, and if f′(c)f′(c) exists, then f′(c)=0f′(c)=0.
A critical value of a function ff is a number cc in its domain such that either f′(c)=0f′(c)=0 or f′(c)f′(c) does not exist.
How to find the absolute maximum and minimum?
Let ff be function defined over [a,b][a,b]. To find the absolute maximum and minimum values over [a,b][a,b], you may do the following:
- Find the values of ff at the critical values in [a,b][a,b].
- Find the values of f(a)f(a) and f(b)f(b).
- The largest of the values from Steps 1 and 2 is the absolute maximum value; the smallest of these values is the absolute minimum value.
Exercise 3.1 Sketch the graph of f(x)=√x+1f(x)=√x+1 and use your sketch to find the absolute and local maximum and minimum values of ff over its domain if they exist.
Solution.
The graph of the function shows that the function ff only has a global minimum f(0)=1f(0)=1.

The graph of the function sqrt(x)+1
Exercise 3.2 Sketch the graph of f(x)={12x3+12−32<x≤1−x+21<x<2(x−3)2−12≤x≤5f(x)=⎧⎪ ⎪⎨⎪ ⎪⎩12x3+12−32<x≤1−x+21<x<2(x−3)2−12≤x≤5 and use your sketch to find the absolute and local maximum and minimum values of ff over its domain if they exist.
Solution.
The graph of the function shows that the function ff has
- a global minimum f(−32)=−1916f(−32)=−1916.
- a global maximum f(5)=3f(5)=3.
- a local minimum f(3)=−1f(3)=−1.
- a local maximum f(1)=1f(1)=1.

The graph of the function sqrt(x)+1
Exercise 3.3 Find the critical values of the function f(x)=2x3−3x2−12xf(x)=2x3−3x2−12x.
Solution.
Find the derivative function first. f′(x)=6x2−6x−12.f′(x)=6x2−6x−12. Because f′(x)f′(x) is a polynomial function, it is defined over the whole number line. So the only critical values are the solutions of the equation 6x2−6x−12=06x2−6x−12=0. Solve the equation by factoring, we found that x=−1x=−1 or x=2x=2.
The critical values of the ff are x=−1x=−1 and x=2x=2.
Exercise 3.4 Find the critical values of the function f(x)=sinx−cosxf(x)=sinx−cosx.
Solution.
Find the derivative function first. f′(x)=cosx+sinx.f′(x)=cosx+sinx. Because f′(x)f′(x) is a polynomial function, it is defined over the whole number line. So the only critical values are the solutions of the equation cosx+sinx=0cosx+sinx=0.
To find the solutions, you may rewrite the equation into tanx=−1tanx=−1 by dividing cosxcosx and subtracting 1 from both hand sides. Then x=−π4+kπx=−π4+kπ.
The critical values of the ff are x=−π4+kπx=−π4+kπ.
Exercise 3.5 Find the critical values of the function f(x)=|x2−2x−3|f(x)=|x2−2x−3|.
Solution.
Because an absolute function is not differentiable everywhere. We cannot take the derivative directly. Instead, we should treat the function as a piecewise function by removing the absolute value sign. For that purpose, we have to find intervals where the inside function y=x2−2x−3y=x2−2x−3 is positive or negative.
Solve the equation x2−2x−3=0x2−2x−3=0, we found x=−1x=−1 or x=3x=3 which are the xx-coordinates of the xx-intercepts of the parabola. As the parabola opens upward, x2−2x−3<0x2−2x−3<0 only if −1<x<3−1<x<3. So f(x)=|x2−2x−3|={−(x2−2x−3)−1<x<3x2−2x−3otherwisef(x)=|x2−2x−3|={−(x2−2x−3)−1<x<3x2−2x−3otherwise and the derivative function is f′(x)={−2x+21≤x≤32x−2otherwisef′(x)={−2x+21≤x≤32x−2otherwise
Solving f′(x)=0f′(x)=0, we get one critical value x=1x=1. Besides, comparing the left derivatives and right derivatives, we find that f′(x)f′(x) is not define at x=−1x=−1 or x=3x=3.
So the function ff has three critical values: x=−1x=−1, x=1x=1 and x=3x=3.
Exercise 3.6 Find the absolute maximum and absolute minimum values of f(x)=x3−3x2−9x+1f(x)=x3−3x2−9x+1 over the interval [−4,4][−4,4].
Solution.
To find the absolute maximum and minimum values, we evaluate the function at critical values and endpoints of the interval.
First find the derivative function f′(x)=3x2−6x−9.f′(x)=3x2−6x−9.
Because f′f′ is continuous. The only critical values are the solutions of the equation. 3x2−6x−9=0.3x2−6x−9=0.
Solve by factoring, we get the critical values x=−1x=−1 and x=3x=3.
Comparing the function values f(−4)=−75f(−4)=−75, f(−1)=6f(−1)=6, f(3)=−26f(3)=−26 and f(4)=−19f(4)=−19, we know that the absolute maximum value of f(x)=x3−3x2−9x+1f(x)=x3−3x2−9x+1 on [−4,4][−4,4] is f(−1)=6f(−1)=6 and the absolute minimum value of ff on [−4,4][−4,4] is f(−4)=−75f(−4)=−75.
Exercise 3.7 Find the absolute maximum and absolute minimum values of f(x)=x+4xf(x)=x+4x over the interval [1,4][1,4].
Solution.
To find the absolute maximum and minimum values, we evaluate the function at critical values and endpoints of the interval.
First find the derivative function f′(x)=1−4x2.f′(x)=1−4x2.
Because f′f′ is continuous on (1, 4). The only critical values are the solutions of the equation. 1−4x2=0.1−4x2=0.
Clearing denominator and solving the resulting, we get the critical values x=−2x=−2 and x=2x=2. Only x=2x=2 is in the interval [1.4][1.4]. We only need to compare three values f(1)=−3f(1)=−3, f(2)=0f(2)=0 and f(4)=3f(4)=3.
Therefore, the absolute maximum value of f(x)=x+4xf(x)=x+4x on [1,4][1,4] is f(4)=3f(4)=3 and the absolute minimum value of f(x)=x+4xf(x)=x+4x on [1,4][1,4] is f(1)=−3f(1)=−3.
Exercise 3.8 Find the absolute maximum and absolute minimum values of f(x)=cos(2x)+2sinxf(x)=cos(2x)+2sinx over the interval [π2,π][π2,π].
Solution.
First find the derivative function f′(x)=−2sin(2x)+2cosx.f′(x)=−2sin(2x)+2cosx.
Because f′f′ is continuous. The only critical values are the solutions of the equation. −2sin(2x)+2cosx.−2sin(2x)+2cosx.
To solve the equation, we use the double angle formula sin(2x)=2sinxcosxsin(2x)=2sinxcosx. The equations is then equivalent to −4sinxcosx+2cosx=0.−4sinxcosx+2cosx=0. Equivalently, cosx=0cosx=0 or sinx=12sinx=12. Within the interval [π2,π][π2,π], we have solutions x=π2x=π2 and x=5π6x=5π6 which are the critical values.
Because f(π2)=f(π)=1f(π2)=f(π)=1 and f(5π6)=32f(5π6)=32. The absolute maximum value of f(x)=cos(2x)+2sinxf(x)=cos(2x)+2sinx on [π2,π][π2,π] is f(5π6)=32f(5π6)=32 and the absolute minimum value of f(x)=cos(2x)+2sinxf(x)=cos(2x)+2sinx on [π2,π][π2,π] is f(π2)=f(π)=1f(π2)=f(π)=1.
Exercise 3.9 Find the absolute maximum and absolute minimum values of f(x)=x√4x−x2f(x)=x√4x−x2.
Solution.
The domain of the function is determined by 4x−x2≥04x−x2≥0. Equivalently, 0≤x≤40≤x≤4. We will find absolute extremum values on [0,4][0,4].
First find the derivative function. Apply the product rule and chain rule, we get f′(x)=√4x−x2+x(2−x)√4x−x2.f′(x)=√4x−x2+x(2−x)√4x−x2.
The function is well-defined on (0,4)(0,4). So the only critical values are the solutions, in the interval (0,4)(0,4), of the equation √4x−x2+x(2−x)√4x−x2=0√4x−x2+x(2−x)√4x−x2=0
Clear denominator and solve, we get a critical value x=3x=3.
Because f(0)=f(4)=0f(0)=f(4)=0 and f(3)=3√3f(3)=3√3. The absolute maximum value of f(x)=x√4x−x2f(x)=x√4x−x2 is f(3)=3√3f(3)=3√3 and the absolute minimum value of f(x)=x√4x−x2f(x)=x√4x−x2 is f(0)=f(4)=0f(0)=f(4)=0.
Exercise 3.10 Find the absolute maximum and absolute minimum values of f(x)=|2x2−x−3|f(x)=|2x2−x−3| over the interval [−1,4][−1,4].
Solution.
The absolute value function is now everywhere differentiable. So we first remove the absolute value sign and rewrite the function as a piecewise defined function.
For that purpose, we need to find the interval where g(x)=2x2−x−3g(x)=2x2−x−3 is negative. Solve the inequality 2x2−x−3<02x2−x−3<0, we get −1<x<32−1<x<32. Therefore, f(x)=|2x2−x−3|={−(2x2−x−3)−1<x<322x2−x−332≤x≤4f(x)=|2x2−x−3|=⎧⎨⎩−(2x2−x−3)−1<x<322x2−x−332≤x≤4
The derivative function is f′(x)={−4x+1−1<x<324x−132≤x≤4f′(x)=⎧⎨⎩−4x+1−1<x<324x−132≤x≤4
So the function ff has two critical points in (−1,4)(−1,4): x=14x=14, solved from f′(x)=0f′(x)=0, and x=32x=32, where f′f′ is undefined.
Comparing the values f(−1)=0f(−1)=0, f(14)=258f(14)=258, f(32)=0f(32)=0 and f(4)=25f(4)=25, we know that the absolute maximum value of f(x)=|2x2−x−3|f(x)=|2x2−x−3| on [−1,4][−1,4] is f(4)=25f(4)=25 and the absolute minimum value of f(x)=|2x2−x−3|f(x)=|2x2−x−3| on [−1,4][−1,4] is f(−1)=f(32)=0f(−1)=f(32)=0.
3.2 The Mean Value Theorem
The average rate of change is very useful in science and other fields. When a function is differentiable, we even have a better result, the mean value theorem, which is a generalization of the following theorem.
Theorem 3.3 (Role's Theorem) Let ff be a function that satisfies the following three hypotheses:
1. ff is continuous on the closed interval [a,b][a,b].
2. ff is differentiable on the open interval (a,b)(a,b).
3. f(a)=f(b)f(a)=f(b).
Then there is a number cc in the open interval (a,b)(a,b) such that f′(c)=0f′(c)=0.
Theorem 3.4 (The Mean Value Theorem) Let ff be a function that satisfies the following three hypotheses:
1. ff is continuous on the closed interval [a,b][a,b].
2. ff is differentiable on the open interval (a,b)(a,b).
Then there exists a number c∈(a,b)c∈(a,b) such that
f′(c)=f(b)−f(a)b−a,f′(c)=f(b)−f(a)b−a,
equivalently,
f(b)−f(a)=f′(c)(b−a).f(b)−f(a)=f′(c)(b−a).
The Mean Value Theorem can be used to show some basic facts in calculus.
Theorem 3.5 If f′(x)=0f′(x)=0 for all xx in an interval (a,b)(a,b), then ff is constant on (a,b)(a,b).
Corollary 3.1 If f′(x)=g′(x)f′(x)=g′(x) for all xx in an interval (a,b)(a,b), then f=g+cf=g+c on (a,b)(a,b), where cc is a constant number.
Exercise 3.11 Verify that the function f(x)=x2−2x−8f(x)=x2−2x−8 satisfies the three hypotheses of Rolle’s Theorem over the interval [−2,4][−2,4] and find all numbers cc in (−2,4)(−2,4) that satisfy the conclusion of Rolle’s Theorem.
Solution.
As a polynomial function ff is continuous on [−2,4][−2,4] and differentiable on (−2,4)(−2,4). The function has the following values f(−2)=0f(−2)=0 and f(4)=0f(4)=0. So Rolle’s theorem can be applied over [−2,4][−2,4]. To find cc in (−2,4)(−2,4) satisfying Rolle’s theorem, we solve for xx from the equation f′(x)=0f′(x)=0 in the interval (−2,4)(−2,4). As f′(x)=2x−2f′(x)=2x−2, the equation 2x−2=02x−2=0 has one solution x=1x=1 which is in (−2,4)(−2,4). Therefore, c=1c=1 satisfy the conclusion of Rolle’s theorem.
Exercise 3.12 Let f(x)=1−|x|f(x)=1−|x|. Show that f(−1)=f(1)=0f(−1)=f(1)=0 but there is no number cc in (−1,1)(−1,1) such that f′(c)=0f′(c)=0. Does this contradict Rolle’s Theorem? Why or Why not?
Solution.
The function ff over (−1,1)(−1,1) can be rewritten as f(x)=1−|x|={1+x−1<x≤01−x0<x<1f(x)=1−|x|={1+x−1<x≤01−x0<x<1 and the derivative function is f′(x)={1−1<x≤0−10≤x<1.f′(x)={1−1<x≤0−10≤x<1. Clearly, there is no cc in (−1,1)(−1,1) such that f′(c)=0f′(c)=0.
This does not contradict Rolle’s theorem. Because ff does not satisfy the differentiability condition in Rolle’s theorem. Indeed, ff is not differential at x=0x=0.
Exercise 3.13 Show that the equation sinx=2x−1sinx=2x−1 has exactly one real root in (0,π)(0,π).
Solution.
Let f(x)=sinx−x+1f(x)=sinx−x+1 which is continuous because it is the sum of continuous functions. Since f(0)=1>0f(0)=1>0 and f(π)=−2π+1<0f(π)=−2π+1<0 by the Intermediate Value Theorem, ff has a root in (0,π)(0,π).
To show that the equation has exactly one real root in (0,π)(0,π), we using the method, prove by contradiction.
Assume contrarily that the equation has two or more roots. Let aa and bb be two roots of f(x)=0f(x)=0. Because ff is continuous and differentiable over the whole number line and f(a)=f(b)=0f(a)=f(b)=0. By the Rolle’s theorem, there is a number cc between aa and bb such that f′(c)=0f′(c)=0. However, f′(x)=cosx−2=0f′(x)=cosx−2=0 has no real solution. That is a contradiction which means the assumption does not hold and the equation can only have one real root.
Exercise 3.14 Show that the equation x3+2x−3=0x3+2x−3=0 has at most one real root.
Solution.
Assume contrarily that the equation has two or more roots. Let aa and bb be two roots of the equation. Define f(x)=x3+2x−3f(x)=x3+2x−3. Then ff is a function continuous and differentiable over the whole number line, and f(a)=f(b)=0f(a)=f(b)=0. By the Rolle’s theorem, there is a real number cc between aa and bb such that f′(c)=0f′(c)=0. However, f′(x)=3x2+2=0f′(x)=3x2+2=0 has no real solution. That is a contradiction which means the assumption does not hold and the equation can only have at most one real root.
Exercise 3.15 Let ff be a function differentiable over the whole number line and f′(x)f′(x) is a constant. Show that f(x)f(x) is linear function using the Mean value theorem.
Solution.
Because ff is differentiable over the whole number line and hence continuous over the whole number line. By the Mean value theorem, for any number xx and a given number aa, we have f(x)−f(a)=f′(b)(x−a)f(x)−f(a)=f′(b)(x−a) for some bb between xx and aa. Because f′(x)f′(x) is a constant, say f′(x)=mf′(x)=m. Then f(x)=m(x−a)+f(a)f(x)=m(x−a)+f(a) for any real number xx. Therefore, ff is a linear function.
Exercise 3.16 Suppose that ff is continuous on [0,3][0,3]. If f(0)=1f(0)=1 and f′(x)<2f′(x)<2 for x in (0,3)(0,3), how large can f(3)f(3) possibly be?
Solution.
The condition f′(x)<2f′(x)<2 implicitly tells us that ff is differentiable on (0,3)(0,3). Because ff is also continuous on [0,3][0,3]. By the Mean Value Theorem, f(3)−f(0)3−0=f′(c)f(3)−f(0)3−0=f′(c) for some real number cc in (0,3)(0,3). Because f′(c)<2f′(c)<2. Then f(3)−13<2f(3)−13<2. Solve for f(3)f(3) from the inequality, we see that f(3)<7f(3)<7.
Exercise 3.17 Suppose that ff is continuous on [0,3][0,3]. If f(3)=−1f(3)=−1 and f′(x)≥−2f′(x)≥−2 for x in (0,3)(0,3), how large can f(0)f(0) possibly be?
Solution.
The condition f′(x)≥−2f′(x)≥−2 implicitly tells us that ff is differentiable on (0,3)(0,3). Because ff is also continuous on [0,3][0,3]. By the Mean Value Theorem, f(3)−f(0)3−0=f′(c)f(3)−f(0)3−0=f′(c) for some real number cc in (0,3)(0,3). Because f′(c)≥−2f′(c)≥−2. Then −1−f(0)3≥−2−1−f(0)3≥−2. Solve for f(0)f(0) from the inequality, we see that f(0)≤5f(0)≤5.
Exercise 3.18 Suppose that ff is differentiable over the whole real line and −1<f′(x)<2−1<f′(x)<2 for all real numbers xx. Show that −3<f(2)−f(−1)<6−3<f(2)−f(−1)<6.
Solution.
Because ff is differentiable over the whole real line. We can apply the Mean Value Theorem which gives the equality f(2)−f(−1)2−(−1)=f′(c)f(2)−f(−1)2−(−1)=f′(c) for some real number cc in (−1,2)(−1,2). Because −1<f′(x)<2−1<f′(x)<2. So is f′(c)f′(c) and then −1<f(2)−f(−1)2−(−1)<2−1<f(2)−f(−1)2−(−1)<2 Solve for f(2)−f(−1)f(2)−f(−1), we get −3<f(2)−f(−1)<6.−3<f(2)−f(−1)<6.
Exercise 3.19 Show that sinx<xsinx<x if 0<x<π/20<x<π/2. (Hint: sinx−sin0x−0=cosc<1sinx−sin0x−0=cosc<1 for 0<c<π/20<c<π/2).
Solution.
Let f(x)=sinxf(x)=sinx. Apply the Mean Value Theorem to ff over (0,x)(0,x), where xx is any real number in (0,π/2)(0,π/2), we get sinx−sin0x−0=coscsinx−sin0x−0=cosc for some real number cc in (0,x)(0,x). Because 0c<π/20c<π/2. Then 0<cosc<10<cosc<1 which implies that sinxx<1.sinxx<1. Therefore, sinx<xsinx<x for xx in (0,π/2)(0,π/2).
Exercise 3.20 Let ff be a function which is differentiable over the whole real line. Suppose that f′(x)=2xf′(x)=2x and f(1)=2f(1)=2. Find an equation that defines ff.
Solution.
Let g(x)=x2g(x)=x2. Then g′(x)=2xg′(x)=2x. As f′(x)−g′(x)=0f′(x)−g′(x)=0, then, by the mean value theorem, f(x)−g(x)=cf(x)−g(x)=c, where cc a constant number. So f(x)=x2+cf(x)=x2+c. From f(1)=2f(1)=2, we get an equation 2=1+c2=1+c which implies that c=1c=1.
Therefore, f(x)=x2+1f(x)=x2+1.
3.3 Derivatives and the Shape of a Graph
Another application of the mean value theorem is to use the sign of the derivative f′(x)f′(x) over an interval (a,b)(a,b) to determine whether ff is increasing of decreasing over (a,b)(a,b).
Proposition 3.1 (Increasing/Decreasing Test) Let ff be a function differentiable on an interval II.
1. If f′(x)>0f′(x)>0 on an interval II, then f is increasing on that interval II.
2. If f′(x)<0f′(x)<0 on an interval II, then f is decreasing on that interval II.
This proposition can be used to determine local extrema.
Proposition 3.2 (First Derivative Test for a Local Extremum) Let ff be a function continuous on (a,b)(a,b) and differentiable on (a,b)∖{c}(a,b)∖{c}.
1. If f′(x)f′(x) chance from positive to negative when xx moves to the right passing cc, then ff has a local maximum at cc.
2. If f′(x)f′(x) chance from negative to positive when xx moves to the right passing cc, then ff has a local minimum at cc.
3. If f′(x)f′(x) has the same sign on both sides of cc, then ff does not have a local extremum at cc.
Another way to determine local extrema is to consider the second derivative. Indeed, the second derivative tells us the concavity of the function.
If the graph of ff lies above all of its tangents on an interval II, then it is called concave upward on II. If the graph of ff lies below all of its tangents on II, it is called concave downward on II.
Proposition 3.3 (Concavity Test) Let ff be a function on (a,b)(a,b).
1. If f″(x)>0f′′(x)>0 on (a,b)(a,b), then ff is concave upward on (a,b)(a,b).
2. If f″(x)<0f′′(x)<0 on (a,b)(a,b), then ff is concave downward on (a,b)(a,b).
A point PP on a curve y=f(x)y=f(x) is called an inflection point if ff is continuous there and the curve changes the direction of concavity at PP.
Candidate inflections points are at where f″(x)=0f′′(x)=0 or f″f′′ is undefined, critical points of f′f′.
Proposition 3.4 (The Second Derivative Test for a Local Extremum) Let ff be a function defined on (a,b)(a,b). Assume that there is a number cc in (a,b)(a,b) such that f′(c)=0f′(c)=0 and f″(c)f′′(c) exists.
1. If f″(c)<0f′′(c)<0, then ff has local maximum value at cc.
2. If f″(c)>0f′′(c)>0, then ff has local minimum value at cc.
Exercise 3.21 Let f(x)=2x3−3x2−12x+3f(x)=2x3−3x2−12x+3.
- Find the intervals where ff is increasing and where it is decreasing.
- Find the local extrema if they exist.
- Find the interval where ff is concave upward and where it is concave downward.
- Find the inflection points if they exist.
Solution.
The function is defined over the whole real number line.
The first and second derivatives of the function are f′(x)=6x2−6x−12f′(x)=6x2−6x−12 and f″(x)=12x−6f′′(x)=12x−6.
Solving the equation f′(x)=6x2−6x−12=0f′(x)=6x2−6x−12=0 gives the critical values x=−1x=−1 and x=2x=2. Using the test point method, which is valid because of the Intermediate Value Theorem, or solving algebraically, we find that f′(x)>0f′(x)>0 for xx in (−∞,−1)∪(2,∞)(−∞,−1)∪(2,∞) and f′(x)<0f′(x)<0 for xx in (−1,2)(−1,2).
Therefore, ff is increasing on (−∞,−1)∪(2,∞)(−∞,−1)∪(2,∞) and decreasing on (−1,2)(−1,2).
By the first derivative test, ff has a local maximum value f(−1)=10f(−1)=10 and a local minimum value f(2)=−17f(2)=−17
Solving the equation f″(x)=12x−6=0f′′(x)=12x−6=0 gives a candidate inflection point at x=12x=12.
Because f″(x)<0f′′(x)<0 for xx in (−∞,12)(−∞,12) and f″(x)>0f′′(x)>0 for xx in (12,∞)(12,∞). The function ff is concave downward on (−∞,12)(−∞,12) and upward on (12,∞)(12,∞).
Therefore, the function ff has an inflection point (12,−72)(12,−72).
Exercise 3.22 Let f(x)=2x√x+1f(x)=2x√x+1.
- Find the intervals where ff is increasing and where it is decreasing.
- Find the local extrema if they exist.
- Find the interval where ff is concave upward and where it is concave downward.
- Find the inflection points if they exist.
Solution.
The domain of the function is (−1,∞)(−1,∞).
The first and second derivatives of the functions are f′(x)=2√x+1+x√x+1=3x+2√x+1f′(x)=2√x+1+x√x+1=3x+2√x+1 and f″(x)=2√x+1−x2(x+1)3/2=3x+42(x+1)3/2.f′′(x)=2√x+1−x2(x+1)3/2=3x+42(x+1)3/2.
Solving the equation f′(x)=3x+2√x+1=0f′(x)=3x+2√x+1=0 gives a critical value: x=−23x=−23. Then f′(x)<0f′(x)<0 for xx in (−1,−23)(−1,−23) and f′(x)>0f′(x)>0 for xx in (−23,∞)(−23,∞).
Therefore, ff is decreasing on (−1,−23)(−1,−23) and increasing on (−23,∞)(−23,∞).
By the first derivative test, ff has a local minimum value f(−23)=−4√39f(−23)=−4√39
Because the equation f″(x)=3x+42(x+1)3/2>0f′′(x)=3x+42(x+1)3/2>0 on the domain (−1,∞)(−1,∞) of the function. The function ff is concave upward and has no inflection point in its domain.
Exercise 3.23 Let f(x)=xx2+1f(x)=xx2+1.
- Find the intervals where ff is increasing and where it is decreasing.
- Find the local extrema if they exist.
- Find the interval where ff is concave upward and where it is concave downward.
- Find the inflection points if they exist.
Solution.
The domain of the function is (−∞,∞)(−∞,∞).
The first and second derivatives of the functions are f′(x)=−x2−1(x2+1)2f′(x)=−x2−1(x2+1)2 and f″(x)=2x(x2−3)(x2+1)3.f′′(x)=2x(x2−3)(x2+1)3.
Solving the equation f′(x)=0f′(x)=0 gives two critical values: x=−1x=−1 or x=1x=1. Then f′(x)<0f′(x)<0 for xx in (−∞,−1)∪(1,∞)(−∞,−1)∪(1,∞) and f′(x)>0f′(x)>0 for xx in (−1,1)(−1,1).
Therefore, ff is decreasing on (−∞,−1)∪(1,∞)(−∞,−1)∪(1,∞) and increasing on (−1,1)(−1,1).
By the first derivative test, ff has a local minimum value f(−1)=−12f(−1)=−12 and a local maximum value f(1)=12f(1)=12
Solving the equation f″(x)=0f′′(x)=0 gives three candidate inflection points at x=−√3x=−√3, x=0x=0 and x=√3x=√3.
Then f″(x)<0f′′(x)<0 for xx in (−∞,−√3)∪(0,√3)(−∞,−√3)∪(0,√3) and f″(x)>0f′′(x)>0 for xx in (−√3,0)∪(√3,∞)(−√3,0)∪(√3,∞).
Therefore, the function ff is concave downward on (−∞,−√3)∪(0,√3)(−∞,−√3)∪(0,√3) and upward on (−√3,0)∪(√3,∞)(−√3,0)∪(√3,∞).
By the definition, ff has three inflection points (−√3,−√34)(−√3,−√34), (0,1)(0,1) and (√3,√34)(√3,√34).
Exercise 3.24 Let f(x)=sinxcosx−1f(x)=sinxcosx−1 with −π2<x<π2−π2<x<π2.
- Find the intervals where ff is increasing and where it is decreasing.
- Find the local extrema if they exist.
- Find the interval where ff is concave upward and where it is concave downward.
- Find the inflection points if they exist.
Solution.
The domain of the function is (−π2,π2)(−π2,π2).
The first and second derivatives of the functions are f′(x)=cos2x−sin2x=cos(2x)f′(x)=cos2x−sin2x=cos(2x) and f″(x)=−4sinxcosx.f′′(x)=−4sinxcosx.
Solving the equation f′(x)=0f′(x)=0 gives two critical values: x=−π4x=−π4 or x=π4x=π4. Then f′(x)<0f′(x)<0 for xx in (−π2,−π4)∪(π4,π2)(−π2,−π4)∪(π4,π2) and f′(x)>0f′(x)>0 for xx in (−π4,π4)(−π4,π4).
Therefore, ff is decreasing on (−π2,−π4)∪(π4,π2)(−π2,−π4)∪(π4,π2) and increasing on (−π4,π4)(−π4,π4).
By the first derivative test, ff has a local minimum value f(−π4)=−32f(−π4)=−32 and a local maximum value f(π4)=12f(π4)=12
Solving the equation f″(x)=0f′′(x)=0 gives a candidate inflection point at x=0x=0 in the domain (−π2,π2)(−π2,π2).
Then f″(x)>0f′′(x)>0 for xx in (−π2,0)(−π2,0) and f″(x)<0f′′(x)<0 for xx in (0,π2)(0,π2).
Therefore, the function ff is concave upward on (−π2,0)(−π2,0) and downward on (0,π2)(0,π2).
By the definition, ff has an inflection point (0,−1)(0,−1).
Exercise 3.25 Let f(x)=sinx−xf(x)=sinx−x with −π<x<π−π<x<π.
- Find the intervals where ff is increasing and where it is decreasing.
- Find the local extrema if they exist.
- Find the interval where ff is concave upward and where it is concave downward.
- Find the inflection points if they exist.
Solution.
The domain of the function is (−π,π)(−π,π).
The first and second derivatives of the functions are f′(x)=cosx−1f′(x)=cosx−1 and f″(x)=−sinx.f′′(x)=−sinx.
Because f′(x)=cosx−1≤0f′(x)=cosx−1≤0 for all xx in (−π,π)(−π,π). So the function is decreasing on its domain and has no local extremum value.
Solving the equation f″(x)=0f′′(x)=0 gives a candidate inflection point at x=0x=0 in the domain (−π,π)(−π,π).
Because f″(x)<0f′′(x)<0 for xx in (−π,0)(−π,0) and f″(x)>0f′′(x)>0 for xx in (0,π)(0,π). The function ff is concave downward on (−π,0)(−π,0) and upward on (0,π)(0,π).
By the definition, ff has an inflection point (0,0)(0,0).
Exercise 3.26 Find the local maximum values and local minimum values of the following function using the first derivative or the second derivative test. f(x)=x23(1−x)f(x)=x23(1−x)
Solution.
The first and second derivatives of the functions are f′(x)=23x−13−53x23=2−5x3x13f′(x)=23x−13−53x23=2−5x3x13 and f″(x)=−29x−43−109x−13=−2+10xx43.f′′(x)=−29x−43−109x−13=−2+10xx43.
The first derivative is not defined at x=0x=0 and the f′(x)=0f′(x)=0 has a solution x=25x=25. Therefore ff has two critical values x=0x=0 and x=25x=25.
Because, f″(25)<0f′′(25)<0. By the second derivative test, ff has a local maximum value f(25)=33√2025f(25)=33√2025.
Because f′(x)<0f′(x)<0 for x<0x<0 and f′(x)>0f′(x)>0 for 0<x<250<x<25. By the first derivative test, ff has a local minimum value f(0)=1f(0)=1
Exercise 3.27 Find the local maximum values and local minimum values of the following function using the first derivative or the second derivative test. f(x)=|x2−16|f(x)=|x2−16|
Solution.
Rewrite the function into a piece-wise function: f(x)={x2−16forx<−4 or x>416−x2for−4≤x≤4f(x)={x2−16forx<−4 or x>416−x2for−4≤x≤4
The first and second derivatives of the functions are f′(x)={2xforx<−4 or x>4−2xfor−4≤x≤4f′(x)={2xforx<−4 or x>4−2xfor−4≤x≤4
The first derivative is not defined at x=−4x=−4 and x=4x=4, and the f′(x)=0f′(x)=0 has a solution x=0x=0. Therefore ff has three critical values x=−4x=−4, x=0x=0, and x=4x=4.
Because f′(x)<0f′(x)<0 for xx on (−∞,−4)∪(0,4)(−∞,−4)∪(0,4) and f′(x)>0f′(x)>0 on (−4,0)∪(4,∞)(−4,0)∪(4,∞). By the first derivative test, ff has two local minimum values f(−4)=0f(−4)=0 and f(4)=0f(4)=0, one local maximum value f(0)=16f(0)=16.
Exercise 3.28 Determine if the function f(x)=x4−2x+1f(x)=x4−2x+1 has an inflection point. Find it if it exists. Otherwise, explain it does not exist.
Solution.
Because the function is a polynomial function. A possible inflection point is located by the solution x=0x=0 of the equation f″(x)=12x2=0f′′(x)=12x2=0.
However, because f″(x)≥0f′′(x)≥0 for all xx, the concavity of ff does not change.
Therefore, x=0x=0 is not an inflection point. The function ff has no inflection points.
Exercise 3.29 Determine if the function f(x)=x13f(x)=x13 has an inflection point. Find it if it exists. Otherwise, explain it does not exist.
Solution.
The second derivative of the function is f″(x)=−29x−53f′′(x)=−29x−53. Note that f″(x)=0f′′(x)=0 has no solution and undefined at x=0x=0. Then x=0x=0 is a possible inflection point. Because f″(x)>0f′′(x)>0 for x<0x<0 and f″(x)<0f′′(x)<0 for x>0x>0. The function changes concavity at x=0x=0. Therefore, x=0x=0 is an inflection point.
Exercise 3.30 Show that x<tanxx<tanx for any 0<x<π20<x<π2.
Solution.
Let f(x)=tanx−xf(x)=tanx−x. Then f′(x)=sec2x−1f′(x)=sec2x−1. Because secx>1secx>1 for 0<x<π20<x<π2. Then sec2x>1sec2x>1 and f′(x)>0f′(x)>0 for 0<x<π20<x<π2. Therefore, ff is increasing on (0,π2)(0,π2). Because f(0)=0f(0)=0. Then f(x)>f(0)=0f(x)>f(0)=0 for 0<x<π20<x<π2. Therefore, tanx>xtanx>x for any xx in (0,π2)(0,π2).
3.4 Limits at Infinity and Asymptotes
A function ff has a limit LL at the positive infinity if it can get arbitrarily close to LL as xx becomes sufficiently large and write as limx→∞f(x)=Llimx→∞f(x)=L
A function ff has a limit LL at the negative infinity if it can get arbitrarily close to LL as −x−x becomes sufficiently large and write as limx→−∞f(x)=Llimx→−∞f(x)=L
If limx→∞f(x)=Llimx→∞f(x)=L or limx→−∞f(x)=Llimx→−∞f(x)=L, we say that y=Ly=L is a horizontal asymptote of ff.
Theorem 3.6 (Limits of Rational Functions at Infinity) Let p(x)=anxn+an−1xn−1+⋯+a1x+a0p(x)=anxn+an−1xn−1+⋯+a1x+a0 and q(x)=bmxm+bm−1xm−1+⋯+b1x+b0q(x)=bmxm+bm−1xm−1+⋯+b1x+b0 are two polynomials. Then limx→±∞p(x)q(x)={0if n<manbmif n=mlimx→±∞p(x)q(x)={0if n<manbmif n=m When n>mn>m, the limit at infinity is an infinite limit.
If limx→af(x)=∞limx→af(x)=∞, we say that x=ax=a is a vertical asymptote.
The line x=ax=a is a vertical asymptote of a function ff if one of the following statements is true:
- limx→a−f(x)=∞limx→a−f(x)=∞
- limx→a−f(x)=−∞limx→a−f(x)=−∞
- limx→a+f(x)=∞limx→a+f(x)=∞
- limx→a+f(x)=−∞limx→a+f(x)=−∞
A line y=mx+by=mx+b is a slant asymptote of a function ff if limx→∞f(x)−(mx+b)=0limx→∞f(x)−(mx+b)=0 or limx→∞f(x)−(mx+b)=0limx→∞f(x)−(mx+b)=0.
If limits of functions at infinity exist, then the limit laws, the squeeze theorem and the composition theorem for limits of functions at a finite number can also be applied to limits of function at infinity.
Exercise 3.31 Evaluate the limit at infinity limx→∞3x2−2x2−x+1limx→∞3x2−2x2−x+1.
Solution.
Note that after dividing x2x2 from the numerator and denominator, the limits of the numerator and the denominator exists. We may apply limit laws. limx→∞3x2−2x2−x+1=limx→∞3−2x21−1x+1x2=limx→∞(3−2x2)limx→∞(1−1x+1x2)=31=3.limx→∞3x2−2x2−x+1=limx→∞3−2x21−1x+1x2=limx→∞(3−2x2)limx→∞(1−1x+1x2)=31=3.
Exercise 3.32 Evaluate the limit limx→∞cos(2xx2+1)limx→∞cos(2xx2+1).
Solution.
Because limx→∞2xx2+1=limx→∞2x1+1x2=limx→∞2xlimx→∞(1+1x2)=0limx→∞2xx2+1=limx→∞2x1+1x2=limx→∞2xlimx→∞(1+1x2)=0 and y=cosxy=cosx is a continuous function. Then limx→∞cos(2xx2+1)=cos(limx→∞2xx2+1)=cos0=1.limx→∞cos(2xx2+1)=cos(limx→∞2xx2+1)=cos0=1.
Exercise 3.33 Evaluate the limit limx→−∞√5+9x27−3xlimx→−∞√5+9x27−3x.
Solution.
Factoring out x2x2 from the radicand in the numerator will help the calculation. But notice that √x2=−x√x2=−x for x<0x<0. Therefore, limx→−∞√5+9x27−3x=limx→−∞√x2√5x2+97−3x=limx→−∞−x√5x2+97−3x=limx→−∞−x7−3xlimx→−∞√5x2+9=13⋅√9=1.limx→−∞√5+9x27−3x=limx→−∞√x2√5x2+97−3x=limx→−∞−x√5x2+97−3x=limx→−∞−x7−3xlimx→−∞√5x2+9=13⋅√9=1.
Exercise 3.34 Evaluate the limit limx→∞(√x2+2x+3−x)limx→∞(√x2+2x+3−x).
Solution.
The expression is in the ∞−∞∞−∞ form. Rationalizing the numerator will help calculate the limit. limx→∞(√x2+2x+3−x)=limx→−∞(x2+2x+3)−x2√x2+2x+3+x=limx→−∞2x+3√x2+2x+3+x=limx→−∞2x+3x(√1+2x+3x2+1)=limx→−∞2x+3x1limx→−∞(√1+2x+3x2+1)=2⋅12=1.limx→∞(√x2+2x+3−x)=limx→−∞(x2+2x+3)−x2√x2+2x+3+x=limx→−∞2x+3√x2+2x+3+x=limx→−∞2x+3x(√1+2x+3x2+1)=limx→−∞2x+3x1limx→−∞(√1+2x+3x2+1)=2⋅12=1.
Exercise 3.35 Evaluate the limit limx→−∞sinxxlimx→−∞sinxx. (Hint: use the squeeze theorem)
Solution.
Because −1sinx≤1−1sinx≤1. Then −1x≥sinxx≥1x−1x≥sinxx≥1x for x<0x<0.
Because limx→−∞1x=limx→−∞1x=. By the Squeeze Theorem, limx→−∞sinxx=0.limx→−∞sinxx=0.
Exercise 3.36 Evaluate the limit limx→−∞1−2x2x+1limx→−∞1−2x2x+1.
Solution.
Factoring out the highest power helps doing the calculation. limx→−∞1−2x2x+1=limx→−∞x⋅1x2−21+1x.limx→−∞1−2x2x+1=limx→−∞x⋅1x2−21+1x. Because limx→−∞x=−∞limx→−∞x=−∞ and limx→−∞1x2−21+1x=−2limx→−∞1x2−21+1x=−2. Then limx→−∞1−2x2x+1=∞.limx→−∞1−2x2x+1=∞.
Exercise 3.37 Evaluate the limit limx→∞√xcos1xlimx→∞√xcos1x.
Solution.
Because limx→∞√x=∞limx→∞√x=∞ and limx→∞cos1x=cos(limx→∞1x)=cos0=1.limx→∞cos1x=cos(limx→∞1x)=cos0=1. Then limx→∞√xcos1x=∞.limx→∞√xcos1x=∞.
Exercise 3.38 Find horizontal and vertical asymptotes of the function f(x)=x−5√4x2+3x+2f(x)=x−5√4x2+3x+2 if they exist.
Solution.
Because 4x2+3x+2>04x2+3x+2>0 (do you know why?). The function ff has no vertical asymptote.
Because limx→∞x−5√4x2+3x+2=0limx→∞x−5√4x2+3x+2=0 and limx→−∞x−5√4x2+3x+2=0limx→−∞x−5√4x2+3x+2=0. The function ff has one horizontal asymptote y=0y=0.
Exercise 3.39 Find horizontal and vertical asymptotes of the function f(x)=√3x2+1x−2f(x)=√3x2+1x−2 if they exist.
Solution.
Because ff is undefined at x=2x=2 and limx→2−√3x2+1x−2=limx→2−√3x2+1limx→2−1x−2=√13⋅(−∞)=−∞.limx→2−√3x2+1x−2=limx→2−√3x2+1limx→2−1x−2=√13⋅(−∞)=−∞. and limx→2+√3x2+1x−2=limx→2+√3x2+1limx→2+1x−2=√13⋅∞=∞.limx→2+√3x2+1x−2=limx→2+√3x2+1limx→2+1x−2=√13⋅∞=∞. The function ff has a vertical asymptote x=2x=2.
Because limx→∞√3x2+1x−2=limx→∞xx−2limx→∞√3+1x2=√3limx→∞√3x2+1x−2=limx→∞xx−2limx→∞√3+1x2=√3 and limx→−∞√3x2+1x−2=limx→−∞−xx−2limx→−∞√3+1x2=−√3.limx→−∞√3x2+1x−2=limx→−∞−xx−2limx→−∞√3+1x2=−√3. The function ff has two horizontal asymptotes y=√3y=√3 and y=−√3y=−√3.
Exercise 3.40 Find slant asymptotes of the function f(x)=3x2+2x−1x+1f(x)=3x2+2x−1x+1 if they exist.
Solution.
If y=mx+by=mx+b is a slant asymptote of ff, then limx→∞(3x2+2x−1x+1−(mx+b))=0.limx→∞(3x2+2x−1x+1−(mx+b))=0. We first find mm by multiplying limx→∞1xlimx→∞1x to both sides of the limit. limx→∞(3x2+2x−1x+1−(mx+b))limx→∞1x=0limx→∞(3x2+2x−1x2+x−(m+bx))=03−m=0m=3limx→∞(3x2+2x−1x+1−(mx+b))limx→∞1x=0limx→∞(3x2+2x−1x2+x−(m+bx))=03−m=0m=3
Now solve for bb limx→∞(3x2+2x−1x+1−(3x+b))=0limx→∞(3x2+2x−1)−(x+1)(3x+b)x+1=0limx→∞(−1−b)x−1−bx+1=0−1−b=0b=−1limx→∞(3x2+2x−1x+1−(3x+b))=0limx→∞(3x2+2x−1)−(x+1)(3x+b)x+1=0limx→∞(−1−b)x−1−bx+1=0−1−b=0b=−1
Therefore, the line y=3x−1y=3x−1 is a slanted asymptote.
Similarly, if limx→−∞(3x2+2x−1x+1−(mx+b))=0,limx→−∞(3x2+2x−1x+1−(mx+b))=0, then m=3m=3 and b=−b=− which gives the same slanted asymptote.
3.5 Curve Sketching
Given a function ff, to sketch the graph of ff, you may consider the following guideline.
Find the domain of ff.
Solve for xx from f(x)=0f(x)=0 to find the xx-intercepts and find the yy-intercept (0,f(0))(0,f(0)).
Determine if the function has any symmetry:
Is ff an even function, i.e. f(−x)=f(x)f(−x)=f(x) for all xx?
Is ff an odd function, i.e. f(−x)=−f(x)f(−x)=−f(x) for all xx?
Is ff a periodic function, i.e. there is a constant pp such that f(x+p)=f(x)f(x+p)=f(x) for all xx?
Evaluate limx→−∞f(x)limx→−∞f(x) and limx→∞f(x)limx→∞f(x) to determine the end behavior of ff. Find horizontal asymptotes if they exist.
Find vertical asymptotes if they exist.
Find slant asymptotes, i.e. y=mx+by=mx+b such that limx→±∞(f(x)−(mx+b))=0limx→±∞(f(x)−(mx+b))=0. Note that m=limx→∞f(x)xm=limx→∞f(x)x and b=limx→∞(f(x)−mx)b=limx→∞(f(x)−mx).
Calculate f′f′ and find all critical values if they exist. Determine the intervals of increasing and decreasing.
Determine local extrema if they exist.
Calculate f″f′′. Determine the intervals of concave up and concave down. Determine inflection points if they exist.
Sketch the curve using the above information.
Exercise 3.41 Using the guideline to sketch the curve y=x3+3x2y=x3+3x2.
Solution.
The domain of the function is (−∞,∞)(−∞,∞).
The function has two xx-intercepts (−3,0)(−3,0) and (0,0)(0,0) which is also the yy-intercept.
Because the function is differentiable on its domain. It has no vertical asymptote.
Because limx→∞(x3+3x2)=limx→∞x2limx→∞(x+3)=∞⋅∞=∞limx→∞(x3+3x2)=limx→∞x2limx→∞(x+3)=∞⋅∞=∞ and limx→−∞(x3+3x2)=limx→−∞x2limx→−∞(x+3)=∞⋅−∞=−∞.limx→−∞(x3+3x2)=limx→−∞x2limx→−∞(x+3)=∞⋅−∞=−∞.
The function has not horizontal or slanted asymptote.
The first derivative is y′=3x2+6xy′=3x2+6x. Solving the equation 3x2+6x=03x2+6x=0, we get two critical values x=0x=0 and x=−2x=−2.
The second derivative is y″=6x+6y′′=6x+6. So a candidate inflection point is at x=−1x=−1.
Because the first and second derivative are both continuous, using test points, we obtain the following table
Interval | Sign of y′y′ | Sign of y″y′′ | Local Shape of the graph |
---|---|---|---|
(−∞,−2)(−∞,−2) | ++ | −− | increasing concave downward |
(−2,−1)(−2,−1) | −− | −− | decreasing concave downward |
(−1,0)(−1,0) | −− | ++ | decreasing concave upward |
(0,∞)(0,∞) | ++ | ++ | increasing concave upward |
So (−2,4)(−2,4) is a local maximum, (−1,2)(−1,2) is an inflection point, and (0,0)(0,0) is a local minimum.
Connecting those points using local graph of the function, the graph of the curve may be sketched as follows.

Graph of a degree 3 polynomial
Exercise 3.42 Using the guideline to sketch the curve y=x2−xx2−3x+2y=x2−xx2−3x+2.
Solution.
The function is undefined when x2−3x+2=0x2−3x+2=0 or equivalently, x=1x=1 or x=2x=2. So the domain of the function is (−∞,1)∪(2,∞)(−∞,1)∪(2,∞).
Note that the function may be simplified y=x(x−1)(x−1)(x−2)=xx−2=1+2x−2.y=x(x−1)(x−1)(x−2)=xx−2=1+2x−2.
Because limx→1=1+(−2)=−1limx→1=1+(−2)=−1. The point (1,−1)(1,−1) is a removable discontinuity.
The function has one xx-intercept (0,0)(0,0) which is also the yy-intercept.
Because limx→2−(1+2x−2)=1+(−∞)=−∞limx→2−(1+2x−2)=1+(−∞)=−∞ and limx→2−(1+2x−2)=1+∞=∞limx→2−(1+2x−2)=1+∞=∞ The function has a vertical asymptote.
Because limx→∞(1+2x−2)=1limx→∞(1+2x−2)=1 and limx→−∞(1+2x−2)=1limx→−∞(1+2x−2)=1 The function has one horizontal asymptote y=1y=1 but no slanted asymptote.
The first derivative is y′=−2(x−2)2y′=−2(x−2)2. So the function has two critical values x=1x=1 and x=2x=2 where the function is undefined.
The second derivative is y″=4(x−2)3y′′=4(x−2)3. The function has no inflection point (Note that the function is undefined at x=2x=2).
Because the first and second derivative are both continuous over their domains, using test points, we obtain the following table
Interval | Sign of y′y′ | Sign of y″y′′ | Local Shape of the graph |
---|---|---|---|
(−∞,1)(−∞,1) | −− | −− | decreasing concave downward |
(1,2)(1,2) | −− | −− | decreasing concave downward |
(2,∞)(2,∞) | −− | ++ | decreasing concave upward |
Sketching the asymptotes, plotting the intercept, drawing a small empty circle of the removable discontinuity, and then sketching the local graphs, you will see the graph of the curve as shown below.

Graph of a rational function with a removable discontinuity
Exercise 3.43 Using the guideline to sketch the curve y=(x−1)√x+2y=(x−1)√x+2.
Solution.
The function is a real valued function only if x+2≥0x+2≥0. So the domain of the function is [−2,∞)[−2,∞).
Solving (x−1)√x+2=0(x−1)√x+2=0 reveals two xx-intercepts (−2,0)(−2,0) and (1,0)(1,0).
When x=0x=0, y=−√2y=−√2, so the yy-intercepts is (0,−√2)(0,−√2).
The derivative maybe calculated directly (try it yourself) or in an easier way through a linear substitution u=x+2u=x+2. After substitution, we get y=(u−3)√u=u32−3u12y=(u−3)√u=u32−3u12 and dydx=dydu⋅dudx=32u12−32u−12=32(x+2)12−32(x+2)−12dydx=dydu⋅dudx=32u12−32u−12=32(x+2)12−32(x+2)−12 Solving dydx=0dydx=0 gives two critical values x=−2x=−2 and x=−1x=−1.
The second derivative is given by ddx(32(x+2)12−32(x+2)−12)=34(x+2)−12+34x−32ddx(32(x+2)12−32(x+2)−12)=34(x+2)−12+34x−32 which is positive over its domain. Therefore, there is no inflection point and the function is concave upward on the interval (−2,∞)(−2,∞).
The function has a vertical asymptote because it’s continuous on the interval [−2,∞)[−2,∞).
Because limx→∞((x−1)√x+2)=∞.limx→∞((x−1)√x+2)=∞. The function has no horizontal asymptote or slanted asymptote.
Because the first and second derivative are both continuous on their domains, using test points, we obtain the following table
Interval | Sign of y′y′ | Sign of y″y′′ | Local Shape of the graph |
---|---|---|---|
(−2,−1)(−2,−1) | −− | −− | decreasing concave upward |
(−1,∞)(−1,∞) | ++ | ++ | increasing concave upward |
So at x=−1x=−1, the function has local minimum (−1,−2)(−1,−2).
Sketching the asymptotes, plotting the intercept, and then sketching the local graphs, you will see the graph of the curve as shown below.

Graph of a function has square root factor
Exercise 3.44 Using the guideline to sketch the curve y=x2x+1y=x2x+1.
Solution.
The function is undefined if x+1=0x+1=0. So the domain of the function is (−∞,−1)∪(1,∞)(−∞,−1)∪(1,∞).
The function is only one intercept (0,0)(0,0).
To find the derivative, again, rewriting the function into a polynomial-like function using substitution will make the calculation easier.
Set u=x+1u=x+1, then x=u−1x=u−1. Then y=(u−1)2u=u−2+u−1=(x+1)−2+(x+1)−1y=(u−1)2u=u−2+u−1=(x+1)−2+(x+1)−1.
Therefore, the first derivative is y′=1−(x+1)−2=1−1(x+1)2.y′=1−(x+1)−2=1−1(x+1)2.
The second derivative is y′=2(x+1)−3=2(x+1)3.y′=2(x+1)−3=2(x+1)3.
So the function has two critical values x=−2x=−2 and x=0x=0 and one candidate inflection point at x=−1x=−1.
Because limx→−1−x2x+1=−∞limx→−1−x2x+1=−∞ and limx→−1+x2x+1=∞limx→−1+x2x+1=∞. The function has a vertical asymptote x=−1x=−1.
Because y=(x+1)−2+(x+1)−1y=(x+1)−2+(x+1)−1, it has a slanted asymptote y=(x+1)−2=x−1y=(x+1)−2=x−1.
Because the first and second derivative are both continuous on their domains, using test points, we obtain the following table
Interval | Sign of y′y′ | Sign of y″y′′ | Local Shape of the graph |
---|---|---|---|
(−∞,−2)(−∞,−2) | ++ | −− | increasing concave downward |
(−2,−1)(−2,−1) | −− | −− | decreasing concave downward |
(−1,0)(−1,0) | −− | ++ | decreasing concave upward |
(0,∞)(0,∞) | ++ | ++ | increasing concave upward |
The function has local maximum (−2,−4)(−2,−4) and a local minimum (0,0)(0,0).
Sketching the asymptotes, plotting the intercept, and then sketching the local graphs, you will see the graph of the curve as shown below.

Graph of a function has square root factor
Exercise 3.45 Using the guideline to sketch the curve y=sinx1+cosxy=sinx1+cosx.
Solution.
Because sinxsinx and cosxcosx are periodic with the same period 2π2π. So the given function will have the same value when shift xx by 2π2π. So we may sketch the graph over one interval of length 2π2π and then using shifting to extend the graph.
Because 1+cosx=01+cosx=0 if x=(2k+1)πx=(2k+1)π. We may first restrict the function to the interval (−π,π)(−π,π) over which the function is well-defined and continuous.
Solve sinx=0sinx=0 over the interval (−π,π)(−π,π), we get x=0x=0. So the function has an xx-intercept (0,0)(0,0), which is also the yy-intercept, in the interval (−π,π)(−π,π).
Because limx→−π+(sinx1+cosx)=limx→−π+(2sinx2cosx22cos2x2)=−∞limx→−π+(sinx1+cosx)=limx→−π+(2sinx2cosx22cos2x2)=−∞ and limx→π−(sinx1+cosx)=limx→π−(2sinx2cosx22cos2x2)=∞limx→π−(sinx1+cosx)=limx→π−(2sinx2cosx22cos2x2)=∞
The function has vertical asymptotes at where it is undefined, i.e. x=(2k+1)πx=(2k+1)π.
The function has one horizontal asymptote because it is periodic.
To find the first derivative and second derivative, you may rewrite the function as y=tanx2y=tanx2 first or apply the quotient rule directly. Here, I will show the quotient rule method.
The first derivative is y′=cosx(1+cosx)−sinx(−sinx)(1+cosx)2=11+cosx.y′=cosx(1+cosx)−sinx(−sinx)(1+cosx)2=11+cosx.
So y′>0y′>0 on the interval (−π,π)(−π,π).
The second derivative is y″=(11+cosx)′=−2sinx(1+cosx)2.y′′=(11+cosx)′=−2sinx(1+cosx)2.
So the function has an candidate inflection point at x=0x=0.
Because the first and second derivative are both continuous over the interval (−π,π)(−π,π), using test points, we obtain the following table
Interval | Sign of y′y′ | Sign of y″y′′ | Local Shape of the graph |
---|---|---|---|
(−π,0)(−π,0) | ++ | −− | increasing concave downward |
(0,π)(0,π) | ++ | ++ | increasing concave upward |
Sketching the asymptotes, plotting the intercept, sketching the local graphs, and then shifting the graph to other periods, you will see the graph of the curve as shown below.

Graph of the function defined as tangent of half angle
3.6 Optimization Problems
The key to solve an optimization problem is to translate the problem into a function (defined by an equation). To be more precise, the following problem strategy may be applied.
- Understand the Problem and represent known and unknown quantities using variables and expressions. In this step, it is useful to draw a diagram and identify variables and expressions on the diagram.
- Write any equations relating the variables.
- Determine which quantity is to be maximized or minimized. Find the range of values of the other variables if possible.
- Express the quantity to be maximized or minimized as an explicitly define function of other variables.
- Locate the maximum or minimum value of the function.
Exercise 3.46 Find the dimension of the rectangle with the largest area among all rectangles that have a perimeter 100 cm.
Solution.
Suppose the length of the rectangle is xx. Then the width of the rectangle is 100−2x2=50−x100−2x2=50−x because the perimeter is 100.
The area of the rectangle is a function of the length A(x)=x(50−x)=50x−x2,0<x<50.A(x)=x(50−x)=50x−x2,0<x<50.
To find the largest possible area, we may use the first derivative test. Because A′(x)=50−2xA′(x)=50−2x. So A(x)A(x) has a local extreme value at x=25x=25. Because A′(x)>0A′(x)>0 for x<25x<25 and A′(x)>0A′(x)>0 for x>25x>25. Then A(25)=252=625 cm2A(25)=252=625 cm2 is the largest area among all rectangles with the perimeter 100 cm.
The dimension of that rectangle is 25 cm by 25 cm.
Exercise 3.47 An open-top rectangular box is to be made from a rectangular shaped cardboard measured 12 inches by 18 inches by removing a square from each corner of the box and folding up the flaps on each side. What size square should be cut out of each corner to get a box with the maximum volume?
Solution.
Suppose the length of a side of a square corner to be removed is xx inches.

Picture of a cardboard with four square conners highlighted
Note that xx, 18−2x18−2x and 12−2x12−2x should be all positive number.
So the volume VV of the box is a function of xx V(x)=x(18−2x)(12−2x)=4(x3−15x2+54x),0<x<6.V(x)=x(18−2x)(12−2x)=4(x3−15x2+54x),0<x<6.
The first derivative is V′(x)=4(3x2−30x+54)=12(x2−10x+18).V′(x)=4(3x2−30x+54)=12(x2−10x+18). It has one critical value x=5−√7x=5−√7 in the interval (0,6)(0,6).
Because V′(x)>0V′(x)>0 when 0<x<5−√70<x<5−√7 and V′(x)>0V′(x)>0 when 5−√7<x<65−√7<x<6. The largest possible volume of the box is V(5−√7)V(5−√7).
The box to be cut out should have a side length 5−√75−√7 inches so that the box has the largest volume.
Exercise 3.48 A cylindrical can is to be made to hold 1 L of tomato sauce. Find the dimensions that will minimize the cost of the metal to manufacture the can.
Solution.
Suppose the radius of the bottom disk is rr. The the height of the can is h=1πr2h=1πr2.
To create such a can, we need two metal disks with radius rr for the top and bottom and the rectangle piece with dimension hh by 2πr2πr for the side of the can.

A picture of cylindrical can
The area can be expressed as a function of rr A(r)=2πr2+2πrh=2πr2+2r,0<r<∞A(r)=2πr2+2πrh=2πr2+2r,0<r<∞ Then A′(r)=4πr−2r2.A′(r)=4πr−2r2.
The function A(r)A(r) has one critical value r=3√4π22πr=3√4π22π in its domain.
To minimize the cost, the base of the can should be 3√4π22π3√4π22π, the height should be 3√4π2π3√4π2π.
Exercise 3.49 A boat leaves a dock at 12:00 pm and travels due south at a speed of 20 m/h. Another boat has been heading due east at 15 m/h and reaches the same dock at 1:00 pm. At what time were the two boats closest together?
Solution.
Let’s call the boat heading south AA and the other one BB. Denote the docker by DD.
After tt hours (0≤t≤10≤t≤1), the boat AA is 20t20t m away from the dock. The boat BB is 15−15t15−15t away from the dock.

A picture shows positions of two boat away from a dock
The distance between the boats is a function of the time tt d(t)=√(15−15t)2+(20t)2=5√25t2−18t+9d(t)=√(15−15t)2+(20t)2=5√25t2−18t+9 with 0≤t≤10≤t≤1.
The derivative function is d′(t)=5(25t−9)√25t2−18t+9.d′(t)=5(25t−9)√25t2−18t+9.
There is a critical value t=925t=925.
Because d′(t)<0 when t<925 and d′(t)>0 when t>925.
The distance reaches its minimum when t=925.
Exercise 3.50 A tennis ball player plays in a stadium that holds 4500 spectators. With ticket prices at $ 15, the average attendance had been 2500. When ticket prices were lowered to $10, the average attendance rose to 3500.
- Find the demand function, assuming that it is linear.
- How should ticket prices be set to maximize revenue?
Solution.
Suppose the price is $ x. Because the demand function D(x) is linear and we know that D(15)=2500 and D(10)=3500. So the demand function has the slope m=−200. The demand function can be written as D(x)=−200(x−10)+3500=−200x+3700,x>0.
The revenue is given by R(x)=xD(x)=x(3700−200x).
The first derivative function is R′(x)=3700−400x.
Because R′(t)>0 when t<374 and R′(t)<0 when x>374.
So when the price is $9.25, the revenue reaches its maximum.
3.7 Antiderivatives
A function F is called an antiderivative of a function f on an interval I if F′(x)=f(x) for all x∈I.
By the mean value theorem, if F is an antiderivative of f on an interval I. then the most general antiderivative of f on I is F(x)+C, where C is an arbitrary constant.
By rule of derivatives, we have the following table of antiderivatives.
Function | An antiderivative |
---|---|
af+bg | aF+bG |
xn, n≠−1 | xn+1n+1 |
sinx | −cosx |
cosx | sinx |
sec2x | tanx |
secxtanx | secx |
In the above table, F and G are antiderivative of f and g respectively, a and b are arbitrary constants.
Exercise 3.51 Find the most general antiderivative of the function f(x)=3x2−2x+1.
Solution.
The general antiderivative is F(x)=3⋅x2+12+1−2⋅x1+11+1+x+C=x3−x2+x+C.
Exercise 3.52 Find the most general antiderivative of the function f(x)=√x−x5.
Solution.
The general antiderivative is F(x)=x12+112+1−x5+15+1+C=2x323−x66+C.
Exercise 3.53 Find the most general antiderivative of the function f(x)=x−12−x13.
Solution.
The general antiderivative is F(x)=x−12+1−12+1−x13+113+1+C=2x12−34x43+C.
Exercise 3.54 Find the most general antiderivative of the function f(x)=x−3x2+2√x.
Solution.
First rewrite the function as a polynomial-liked function f(x)=x−3x2+2√x=x−3x2+1x12=x12−3x32+x−12
Then the general antiderivative is F(x)=x12+112+1−3x32+132+1+x−12+1−12+1+C=2x323−6x525+2x12+C.
Exercise 3.55 Find the most general antiderivative of the function f(x)=3sec2x−sinx−1x2.
Solution.
The general antiderivative is F(x)=3tanx−(−cosx)−x−2+1−2+1+C=3tanx+cosx+1x+C.
Exercise 3.56 Find the antiderivative F of the function f(x)=3x−2x3 such that F(1)=0.
Solution.
First we find the general antiderivative: F(x)=3x1+11+1−2x3+13+1+C=3x22−x42+C.
Because F(1)=32−12+C=0. Then C=−1 and the function F is given by F(x)=3x22−x42−1.
Exercise 3.57 Find the function f such that f″(x)=3cosx−2sinx+433√x.
Solution.
The first derivative is f′(x)=3sinx−2(−cosx)+43x−13+1−13+1+C1=3sinx+2cosx+2x23+C1.
The function f is then given by f′(x)=3(−cosx)+2sinx+2x23+123+1+C1x+C2=−3cosx+2sinx+6x535+C1x+C2.
Exercise 3.58 Find the function f such that f‴(x)=cosx, f(0)=3, f′(0)=2, and f″(0)=1.
Solution.
The most general second derivative is f″(x)=sinx+C1. Because f″(0)=sin0+C1=1. Then C1=1 and f″(x)=sinx+1.
The most general first derivative is f′(x)=−cosx+x+C2. Because f′(0)=−cos0+0+C2=2. Then C2=3 and f′(x)=−cosx+x+3.
The general form of the function is f(x)=−sinx+x22+3x+C3. Because f(0)=−sin0+0+0+C3=3. Then C3=3 and f(x)=−sinx+x22+3x+3.
Exercise 3.59 Find a function f such that f′(x)=x3 and the line x−y=0 is tangent to the graph of f.
Solution.
The slope of the tangent line is m=1. Solve f′(x)=x3=1, we get the x-coordinate of the tangent point x=1. The tangent point is then (1,f(1))=(1,1) because the tangent point is also on the tangent line x−y=0.
The most general antiderivative of f′ is f(x)=x44+C.
Because f(1)=14+C=1. The function f is given by f(x)=x44+34.
Exercise 3.60 A particle is moving with a initial velocity v(0)=−2. The acceleration is given by a(t)=−2t+1 with s(0)=5. Find the position of the particle.
Solution.
The velocity is an antiderivative of the acceleration function. Therefore, v has the form v(t)=−t2+t+C1.
Because v(0)=C1=−2. Then v(t)=−t2+t−2.
The position function is an antiderivative of the velocity function. It has a general form s(t)=−t33+t22−2t+C2.
Because s(0)=C2=5. Then the position function is given by s(t)=−t33+t22−2t+5.