Chapter 3: Applications of Differentiation
Section 3.7: What Derivatives Reveal about Graphs
Example 3.7.5
Graph fx=sin4⁢x+1/2⁢cosx/2, then use the tools of the calculus to analyze the significant features of this graph.
Solution
Initialize
Tools≻Load Package: Student Calculus 1
Loading Student:-Calculus1
Control-drag fx=…
Context Panel: Assign Function
f⁡x=sin⁡4⁢x+1/2⁢cos⁡x/2→assign as functionf
Preliminary Analysis
The function is defined for all real numbers.
The function is a product of two trigonometric terms: sin4 x+x/2, whose period is π/2; and cosx/2, whose period is 4 π. The more-rapid oscillations of the sine term will be "enveloped" by the more slowly varying cosine term. Since fx+4⁢π−fx = 0, the function has period 4 π.
Because each term in the product has range −1,1, their product will take on values in [−1,1]. Whether the range is [−1,1] or a subset of [−1,1] will shortly be discovered.
The function is not odd because f−x≠−fx, that is, because
f−x+fx = −sin⁡4⁢x−12⁢cos⁡x2+sin⁡4⁢x+12⁢cos⁡x2≠0
The function is not even because f−x≠fx, that is, because
f−x−fx = −sin⁡4⁢x−12⁢cos⁡x2−sin⁡4⁢x+12⁢cos⁡x2≠0
The y-intercept occurs at f0 = sin⁡12≐0.47943.
The x-intercepts occur at the zeros of sin4 x+1/2 and at the zeros of cosx/2. These zeros are given exactly in Table 3.7.5(a).
Zeros of sin4 x+1/2
4 x+1/2=n π ⇒ x=2 n π+1/8,n=1,…,16
Zeros of cosx/2
x/2=2 n+1π/2 ⇒ x=2 n+1π,n=0,1
Table 3.7.5(a) Zeros of fx
The Context Panel option Solve≻Solve (general solution) returns
x=2⁢π⁢_Z3+π,x=−18+π⁢_Z44
where _Z1 and _Z2 represent arbitrary integers. Hence, the analytic solutions in Table 3.7.5(a) are contained in Maple's general solution of the equation fx=0.
Graphs
Figure 3.7.5(a) shows fx in black, and the enveloping curves ±cosx/2, in red and green, respectively. Although f is periodic with period 4 π, Figure 3.7.5(a), drawn on a larger domain, best illustrates the periodicity.
Graph of fx (in black), ±cosx/2 (in red and green, respectively)
Figure 3.7.5(b) shows f graphed for one period on the interval 0,4 π, an interval in which f is to have 18 x-intercepts. At first count it might seem that there are only 16 such intercepts, but careful inspection near x=π and x=3 π reveals that in each location there are two very closely-spaced zeros.
On the interval 0,4 π, graph of one period of f
Analysis
Figure 3.7.5(c) is produced by the FunctionChart (a.k.a FunctionPlot) command, and is equivalent to the graph produced by the tutor. Black portions of the curve indicate where f is decreasing; red, increasing. Small "plus signs" in green indicate points of concavity; small circles, zeros; and small diamonds, relative extrema. Yellow shading indicates where the curve is concave downward; gray, concave upward.
Graph of f produced by the FunctionChart command
With respect to the function f,the first column in Table 3.7.5(b) lists the zeros xk; the second, the critical numbers ck; and the fourth, the candidates for inflection pk. The remaining two columns in the table give the function values at either ck or pk. This information could be culled (with great pains) from the Curve Analysis tutor, but behind the table cells there is code that generates and displays these results more efficiently.
xkckfckpkfpk0.66039816340.26355737230.99119370980.64004838120.077181019261.4457963271.035331386−0.86678343691.394941916−0.15484028932.2311944901.7994577920.61425676312.1269704000.19672402433.0165926542.529688118−0.28006870702.782673221−0.14369112443.1415926543.0784559410.0077309264413.321488736−0.084343452033.8019908173.546139921−0.17154292403.9348300800.19574054554.5873889804.2447953950.51356164144.651367720−0.17344684895.3727871445.003285807−0.79867502515.4016852580.10431284806.1581853075.7736221500.96720596216.161920823−0.014914049206.9435834716.546742679−0.99119370976.923233688−0.077181022797.7289816347.3185166940.86678343727.6781272230.15484029128.5143797978.082643099−0.61425676318.410155708−0.19672402369.2997779618.8128734250.28006870769.0658585280.14369112409.4247779619.361641248−0.0077309263829.6046740430.0843434524510.085176129.8293252280.171542924210.21801539−0.195740549910.8705742910.52798070−0.513561641010.934553030.173446856711.6559724511.286471110.798675024911.68487057−0.104312867212.4413706112.05680746−0.967205962112.445106130.01491405048
Table 3.7.5(b) Zeros, critical numbers, candidates for inflection
The left-hand column in Table 3.7.5(c) lists the local minima; the right-hand, the local maxima. Again, this information could be culled (with great pains) from the Curve Analysis tutor, but behind the table cells there is code that generates and displays these results more efficiently.
Local Minima
Local Maxima
interface(rtablesize=50): use Student[Calculus1] in amertxe:=module() local f,g,h,P,k,L,LL,s,ss,C; export MIN,MAX; f:=x->sin(4*x+1/2)*cos(x/2);g:=D(f); h:=(D@@2)(f); C:=Roots(g(x)=0,x=0..4*Pi,numeric); s:=0; ss:=0; for k from 1 to nops(C)-1 do P:=[C[k],f(C[k])]; if h(C[k])>0 then s:=s+1; L||s:=[P]; else ss:=ss+1;LL||ss:=[P];end if; end do; MIN:=Matrix([[[0,f(0)]],L||(1..s)]); MAX:=Matrix([LL||(1..ss),[[4*Pi,f(4*Pi)]]]); end module; end use:
amertxe:-MIN;
0,sin⁡121.035331386,−0.86678343692.529688118,−0.28006870703.546139921,−0.17154292405.003285807,−0.79867502516.546742679,−0.99119370978.082643099,−0.61425676319.361641248,−0.00773092638210.52798070,−0.5135616410
amertxe:-MAX;
0.2635573723,0.99119370981.799457792,0.61425676313.078455941,0.0077309264414.244795395,0.51356164145.773622150,0.96720596217.318516694,0.86678343728.812873425,0.28006870769.829325228,0.171542924211.28647111,0.79867502494⁢π,sin⁡12
Table 3.7.5(c) Local minima and maxima
The right-hand column in Table 3.7.5(c) (and Figure 3.7.5(c)) shows that 0.9911937098 is the absolute maximum value of f. Likewise, the left-hand column reveals that −0.9911937098 is the absolute minimum. Hence, the range of f is the interval −0.9911937098,0.9911937098, which is a subinterval within −1,1.
Table 3.7.5(d) lists the intervals where f is either decreasing or increasing. Again, this information could be culled (with great pains) from the Curve Analysis tutor, but behind the table cells there is code that generates and displays these results more efficiently.
Intervals where f is decreasing
Intervals where f is increasing
interface(rtablesize=50):
use Student[Calculus1] in IncDec:=module() local f,g,temp,rp,m,P,k,L,LL,s,ss; export M,MM; f:=x->sin(4*x+1/2)*cos(x/2);g:=D(f); temp:=Roots(g(x)=0,x=0..4*Pi,numeric); rp:=[0,temp[],4*Pi]; s:=0; ss:=0; for k from 1 to nops(rp)-1 do m:=(rp[k]+rp[k+1])/2; P:=[rp[k],rp[k+1]]; if g(m)>0 then s:=s+1; L||s:=[P]; else ss:=ss+1;LL||ss:=[P];end if; end do; M:=Matrix([L||(1..s)]); MM:=Matrix([LL||(1..ss)]); end module; end use:
IncDec:-M;
0,0.26355737231.035331386,1.7994577922.529688118,3.0784559413.546139921,4.2447953955.003285807,5.7736221506.546742679,7.3185166948.082643099,8.8128734259.361641248,9.82932522810.52798070,11.2864711112.05680746,4⁢π
0.2635573723,1.0353313861.799457792,2.5296881183.078455941,3.5461399214.244795395,5.0032858075.773622150,6.5467426797.318516694,8.0826430998.812873425,9.3616412489.829325228,10.5279807011.28647111,12.05680746
Table 3.7.5(d) Intervals where f is decreasing, and where f is increasing
Table 3.7.5(e) lists the intervals where f is either concave upward or concave downward. Again, this information could be culled (with great pains) from the Curve Analysis tutor, but behind the table cells there is code that generates and displays these results more efficiently.
Intervals where f is concave upward
Intervals where f is concave downward
use Student[Calculus1] in ConcUpDn:=module() local f,g,temp,rp,m,P,k,L,LL,s,ss; export M,MM; f:=x->sin(4*x+1/2)*cos(x/2);g:=(D@@2)(f); temp:=Roots(g(x)=0,x=0..4*Pi,numeric); rp:=[0,temp[],4*Pi]; s:=0; ss:=0; for k from 1 to nops(rp)-1 do m:=(rp[k]+rp[k+1])/2; P:=[rp[k],rp[k+1]]; if g(m)>0 then s:=s+1; L||s:=[P]; else ss:=ss+1;LL||ss:=[P];end if; end do; M:=Matrix([L||(1..s)]); MM:=Matrix([LL||(1..ss)]); end module; end use:
ConcUpDn:-M;
0.6400483812,1.3949419162.126970400,2.7826732213.321488736,3.9348300804.651367720,5.4016852586.161920823,6.9232336887.678127223,8.4101557089.065858528,9.60467404310.21801539,10.9345530311.68487057,12.44510613
0,0.64004838121.394941916,2.1269704002.782673221,3.3214887363.934830080,4.6513677205.401685258,6.1619208236.923233688,7.6781272238.410155708,9.0658585289.604674043,10.2180153910.93455303,11.6848705712.44510613,4⁢π
Table 3.7.5(e) Intervals where f is concave upward, and where f is concave downward
Some Useful Commands
Applicable Commands
CriticalPointsfx,x=0..4 π,numeric
0.2635573723,1.035331386,1.799457792,2.529688118,3.078455941,3.546139921,4.244795395,5.003285807,5.773622150,6.546742679,7.318516694,8.082643099,8.812873425,9.361641248,9.829325228,10.52798070,11.28647111,12.05680746
ExtremePointsfx,x=0..4 π,numeric
0.,0.2635573723,1.035331386,1.799457792,2.529688118,3.078455941,3.546139921,4.244795395,5.003285807,5.773622150,6.546742679,7.318516694,8.082643099,8.812873425,9.361641248,9.829325228,10.52798070,11.28647111,12.05680746,12.56637061
InflectionPointsfx,x=0..4 π,numeric
0.6400483812,1.394941916,2.126970400,2.782673221,3.321488736,3.934830080,4.651367720,5.401685258,6.161920823,6.923233688,7.678127223,8.410155708,9.065858528,9.604674043,10.21801539,10.93455303,11.68487057,12.44510613
Rootsfx,x=0..4 π
−18+π4,−18+π2,−18+3⁢π4,−18+π,π,−18+5⁢π4,−18+3⁢π2,−18+7⁢π4,−18+2⁢π,−18+9⁢π4,−18+5⁢π2,−18+11⁢π4,−18+3⁢π,3⁢π,−18+13⁢π4,−18+7⁢π2,−18+15⁢π4,−18+4⁢π
Rootsfx,x=0..4 π,numeric
0.6603981634,1.445796327,2.231194490,3.016592654,3.141592654,3.801990817,4.587388980,5.372787144,6.158185307,6.943583471,7.728981634,8.514379797,9.299777961,9.424777961,10.08517612,10.87057429,11.65597245,12.44137061
The return of the Roots command is consistent with the analysis in Table 3.7.5(a). Note that while the equation fx=0 can be solve analytically, the equations f′x=0 and f″x=0 cannot, and must be solved numerically.
Conclusions
The typical calculus text still presents the unit on "Curve Sketching" as if modern computing devices had not yet been invented. The evidence of this lies in the belief that the graph of a function should be constructed from the information derived from it, and its first two derivatives. Example 3.7.5 has been included to illustrate the folly of that belief. Were Figure 3.7.5(b) to be generated by such a paradigm, that is, by obtaining the many points detailed in Tables 3.7.5(b-e), and plotting them on a sheet of graph paper, the task would have taken many hours of tedious labor, and would most likely have been rife with computational errors.
The author of these notes takes this opportunity to "climb onto a soapbox" to orate a message that often gets just lip service: Use technology wisely, and let it infuse and modify the curriculum appropriately. In other words, when it comes to sketching a curve, admit that with today's technology a graph is readily obtained. The value of the calculus is not in obtaining the graph, but in ascertaining that the graph drawn by a calculator or computer is correct.
<< Previous Example Section 3.7 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document