Sketch $x^2 e^{-x}$

73 Views Asked by At

In my interview to join a university to study physics, I was asked to sketch $y = x^2 e^{-x}$ at the time I could not do so. The interviewer told me that I need to have mathematical intuition like this to study physics. Now, I am studying physics at the university buy I still can not visualize the equation.

I could just sketch it by differentiating the entire equation or by substituting in values but I do not want to do this since I do not think this is what the interviewer wanted me to do; it does not really give intuition for the shape.

https://www.desmos.com/calculator/u0yt84tpub[what the equation looks ljke][1] [What the two parts of the product looks like individually][2] The negative part of $y$ is very easy to see: both $x^2$ and $e^{-x}$ are positive, and they both increase when $x$ become more negative so $y$ becomes larger as $x$ becomes more negative.

The positive part I still can not explain. I've tried many approach but I could not find an intuitive way to explain the shape. I didn't really have anyone around me who I can ask so I asked here.

3

There are 3 best solutions below

6
On BEST ANSWER

When $x$ is positive but small, the dominant part is $x^2$ and the shape is roughly that.

However as $x$ is very big, $\exp(-x)$ will have a bigger influence and it will pull down the whole curve.

Polynomial has bigger impact when $x$ is small and exponential will have a bigger impact will $x$ is large.

0
On

Let's deal with the non-negative part.

Differentiating is what you have to do. We have $$\frac{dy}{dx}=2xe^{-x}-x^2e^{-x}=xe^{-x}(2-x)$$ and to find critical points, set it to zero to give $x=0,2$ as $\exp$ is never zero.

Now at $x=0$, $y=0$ and at $x=2$, $y=4/e^2$. However, as $\exp$ grows faster than $x^2$, for large $x$, $y$ will tend to zero.

Putting this altogether, we get this graph.

0
On

As you say, the part where $x \leq 0$ is simple.

For $x >0$, consider $$f(x)=x^2 e^{-x} \implies f'(x)=-e^{-x} (x-2) x\implies f''(x)=e^{-x} (x^2-4x+2)$$ So, the first derivative cancels at $x=0$ and $x=2$ and the second derivative test shows that the first is a minimum while the second is a maximum.

Moreover, when $x$ becomes large, the value of the function is smaller and smaller. I am sure that use that, you are abale to "see" what is the sketch of the function.