Gradient - Your turn#

Consider the function \(y = x^2 e^{-2x} \).

Part (a)#

Compute its derivative analytically.

TODO: Write you answer below#

Double-click this cell and edit the LaTeX in between the double dollar signs. We’ve provided a template, so you just have to replace the a, b, and c terms. If necessary, additional terms can be added following the same structure.

\[ y'(x) = ax^{b} e^{-c} \]

Part (b)#

Now using the gradient() function, compute the numerical derivative for \(x\) ranging between \(0\) and \(1\) with an increment of \(0.1\). Plot both derivatives in the same figure.

# TODO: Write your solution below

Exporting your work#

When you’re ready, the easiest way to export the notebook is to File > Print it and save it as a PDF. Remove any excessively long, unrelated outputs first by clicking the arrow → next to the output box and then Show/hide output. Obviously don’t obscure any necessary output or graphs!