Solveeit Logo

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)=x2exf\left( x \right) = {x^2}{e^x}.

Explanation

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: dfdx=0,d2fdx2<0\dfrac{{df}}{{dx}} = 0,\,\,\,\,\dfrac{{{d^2}f}}{{d{x^2}}} < 0 for point of maxima and d2fdx2>0\dfrac{{{d^2}f}}{{d{x^2}}} > 0 for point of minima.

Complete step by step solution:
Given, function is f(x)=x2exf\left( x \right) = {x^2}{e^x}

Calculating first derivative of f(x)f\left( x \right)
dfdx=x2d(ex)dx+exddx(x2)\dfrac{{df}}{{dx}} = {x^2}\dfrac{{d({e^x})}}{{dx}} + {e^x}\dfrac{d}{{dx}}\left( {{x^2}} \right)
dfdx=x2(ex)+ex(2x)\Rightarrow \dfrac{{df}}{{dx}} = {x^2}\left( {{e^x}} \right) + {e^x}\left( {2x} \right)
dfdx=ex(x2+2x)\Rightarrow \dfrac{{df}}{{dx}} = {e^x}\left( {{x^2} + 2x} \right)
Now, equatingdfdx\dfrac{{df}}{{dx}} is equal to zero to get solution of the equation or value of x.
ex(x2+2x)=0\Rightarrow {e^x}\left( {{x^2} + 2x} \right) = 0
(x2+2x)=0(ex0)\Rightarrow \left( {{x^2} + 2x} \right) = 0\,\,\,\,\,\,\,\,\,\,\,\,\,\,\because \left( {{e^x} \ne 0} \right)
x(x+2)=0 x=0orx+2=0 x=0orx=2  \Rightarrow x\left( {x + 2} \right) = 0 \\\ \Rightarrow x = 0\,\,or\,\,x + 2 = 0 \\\ \Rightarrow x = 0\,\,\,or\,\,x = - 2 \\\

Now, calculating d2fdx2\dfrac{{{d^2}f}}{{d{x^2}}} of the given function.
d2fdx2=ddx(dfdx)\dfrac{{{d^2}f}}{{d{x^2}}} = \dfrac{d}{{dx}}\left( {\dfrac{{df}}{{dx}}} \right)
\Rightarrow \dfrac{{{d^2}f}}{{d{x^2}}} = \dfrac{d}{{dx}}\left\\{ {{e^x}\left( {{x^2} + 2} \right)} \right\\}
d2fdx2=exddx(x2+2x)+(x2+2x)ddx(ex)\Rightarrow \dfrac{{{d^2}f}}{{d{x^2}}} = {e^x}\dfrac{d}{{dx}}\left( {{x^2} + 2x} \right) + \left( {{x^2} + 2x} \right)\dfrac{d}{{dx}}\left( {{e^x}} \right)
d2fdx2=ex(2x+2)+(x2+2x)(ex)\Rightarrow \dfrac{{{d^2}f}}{{d{x^2}}} = {e^x}\left( {2x + 2} \right) + \left( {{x^2} + 2x} \right)\left( {{e^x}} \right)
d2fdx2=ex(x2+4x+2)\Rightarrow \dfrac{{{d^2}f}}{{d{x^2}}} = {e^x}\left( {{x^2} + 4x + 2} \right)

Substituting values of x=0x = 0 and x=2x = - 2 obtained in step 3 in d2fdx2\dfrac{{{d^2}f}}{{d{x^2}}} obtained in step 5 to check point of maxima or point of minima.
First substituting x=0x = 0 we have,
{\left( {\dfrac{{{d^2}f}}{{d{x^2}}}} \right)_{x = 0}} = {e^{(0)}}\left\\{ {{{(0)}^2} + 4(0) + 2} \right\\}
(d2fdx2)x=0=2>0\Rightarrow {\left( {\dfrac{{{d^2}f}}{{d{x^2}}}} \right)_{x = 0}} = 2 > 0
Therefore we can say that point x=0x = 0 is a point of minima.

Now, substituting x=2x = - 2 in d2fdx2\dfrac{{{d^2}f}}{{d{x^2}}} 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\\}
(d2fdx2)x=2=1e2(48+2)<0{\left( {\dfrac{{{d^2}f}}{{d{x^2}}}} \right)_{x = - 2}} = \dfrac{1}{{{e^2}}}\left( {4 - 8 + 2} \right) < 0
Therefore we can say that point x=2x = - 2 is a point of maxima.

To calculate corresponding maximum and minimum values of the given function f(x)f\left( x \right)we putx=0x = 0 and x=2x = - 2in f(x)f\left( x \right) one by one.
Substituting x=0x = 0 we have
f(x)=(0)e(0)=0f\left( x \right) = (0){e^{(0)}} = 0
Substituting x=2x = - 2 we have
f(x)=(2)2e(2) f(x)=4e2  f\left( x \right) = {( - 2)^2}{e^{( - 2)}} \\\ \Rightarrow f(x) = \dfrac{4}{{{e^2}}} \\\

Therefore, form above we see that minimum value of given function is 0 and maximum value of the given function is4e2\dfrac{4}{{{e^2}}}

Note: Maxima and minima of the function can be calculated by using differentiation method.