Problem 2
Plot the function $f(x) = x^2e^{-x}$ and its derivative for $0<=x<=10$ (use at least 100 datapoints) in one figure.
Plot the function with a solid red line, and the derivative with a dashed green line.
Add a legend and label the axes.
Note: to get the derivative you can do it yourself; or by using symbolic computing, such as: syms x, function f definition, diff(f) etc.
To add legend use command like this: legend ('SeriesName1', 'SeriesName2')