Sketch the curve and show intercepts, maxima and minima and points of inflection:
f(x)-5
5
x
4
x
Solution
Solution
We define our function
In[]:=
f[x_]=x^5-5x^4
Out[]=
-5+
4
x
5
x
In[]:=
FunctionDomain[f[x],x]
Out[]=
True
◼
We compute the x-intercepts
In[]:=
Solve[f[x]==0,x]
Out[]=
{{x0},{x0},{x0},{x0},{x5}}
The we calculate the y - intercepts
In[]:=
f[0]
Out[]=
0
◼
We find the asymptotes
In[]:=
ResourceFunction["Asymptotes"][x^5-5x^4,x,y]
Out[]=
First Derivative
First Derivative
◼
Then we compute the first derivative of
f(x)
In[]:=
f'[x]
Out[]=
-20+5
3
x
4
x
and then we calculate the critical points
In[]:=
Solve[f'[x]==0,x]
Out[]=
{{x0},{x0},{x0},{x4}}
Thus, the monotonicity of the function is as follows
In[]:=
Out[]=
Increasingx≤0||4≤x,Decreasing0≤x≤4,ConstantFalse
Hence,
In[]:=
f[0]
Out[]=
0
is the max and,
In[]:=
f[4]
Out[]=
-256
is the minimum .
Second Derivative
Second Derivative
The second derivative can tell us the shape of a curve at any point .
In[]:=
f''[x]
Out[]=
-60+20
2
x
3
x
We now use the second derivative to find points of inflection :
In[]:=
Solve[f''[x]==0,x]
Out[]=
{{x0},{x0},{x3}}
In[]:=
ResourceFunction["FunctionConcavity"][f[x],x]
Out[]=
ConcaveUpx>3,ConcaveDownx<0||0<x<3
and
In[]:=
f[3]
Out[]=
-162
So is the inflection point.
(3,-162)
◼
Now, we are ready to sketch the curve :
In[]:=
Plot[f[x],{x,-3,6},AxesLabel{"x","y"},PlotStyle->{Thick},Epilog->{Green,PointSize@Large,Point[{0,0}],Point[{5,0}],Red,PointSize@Large,Point[{3,-162}],Magenta,PointSize@Large,Point[{4,-256}]},PlotLabel->"Graph of "]
y-5
5
x
4
x
Out[]=
The following points are indicated with dots:
intercepts and (green dots)
Point of inflection ( (red dot)
Local maximum (green dot)
Local minimum (magenta dot)
x-
(0,0)
(5,0)
Point of inflection (
3,-162)
Local maximum
(0,0)
Local minimum
(4,256)