Question
Question: Find the minimum and maximum value of function\(f\left( x \right) = {x^2}{e^x}\)....
Find the minimum and maximum value of functionf(x)=x2ex.
Solution
Equating first order derivative of the given function to zero to get solution, and then substituting values of solution in second derivative of function to discuss point of maxima or minima. Finally substituting values in the given function to get maximum or minimum value corresponding to point of maxima or point of minima.
Formulas used: dxdf=0,dx2d2f<0 for point of maxima and dx2d2f>0 for point of minima.
Complete step by step solution:
Given, function is f(x)=x2ex
Calculating first derivative of f(x)
dxdf=x2dxd(ex)+exdxd(x2)
⇒dxdf=x2(ex)+ex(2x)
⇒dxdf=ex(x2+2x)
Now, equatingdxdf is equal to zero to get solution of the equation or value of x.
⇒ex(x2+2x)=0
⇒(x2+2x)=0∵(ex=0)
⇒x(x+2)=0 ⇒x=0orx+2=0 ⇒x=0orx=−2
Now, calculating dx2d2f of the given function.
dx2d2f=dxd(dxdf)
\Rightarrow \dfrac{{{d^2}f}}{{d{x^2}}} = \dfrac{d}{{dx}}\left\\{ {{e^x}\left( {{x^2} + 2} \right)} \right\\}
⇒dx2d2f=exdxd(x2+2x)+(x2+2x)dxd(ex)
⇒dx2d2f=ex(2x+2)+(x2+2x)(ex)
⇒dx2d2f=ex(x2+4x+2)
Substituting values of x=0 and x=−2 obtained in step 3 in dx2d2f obtained in step 5 to check point of maxima or point of minima.
First substituting x=0 we have,
{\left( {\dfrac{{{d^2}f}}{{d{x^2}}}} \right)_{x = 0}} = {e^{(0)}}\left\\{ {{{(0)}^2} + 4(0) + 2} \right\\}
⇒(dx2d2f)x=0=2>0
Therefore we can say that point x=0 is a point of minima.
Now, substituting x=−2 in dx2d2f we have
{\left( {\dfrac{{{d^2}f}}{{d{x^2}}}} \right)_{x = - 2}} = {e^{ - 2}}\left\\{ {{{\left( { - 2} \right)}^2} + 4\left( { - 2} \right) + 2} \right\\}
(dx2d2f)x=−2=e21(4−8+2)<0
Therefore we can say that point x=−2 is a point of maxima.
To calculate corresponding maximum and minimum values of the given function f(x)we putx=0 and x=−2in f(x) one by one.
Substituting x=0 we have
f(x)=(0)e(0)=0
Substituting x=−2 we have
f(x)=(−2)2e(−2) ⇒f(x)=e24
Therefore, form above we see that minimum value of given function is 0 and maximum value of the given function ise24
Note: Maxima and minima of the function can be calculated by using differentiation method.