# How do you find the derivative of y = x^2 e^(-x)?

Jul 6, 2016

$\frac{\mathrm{dy}}{\mathrm{dx}} = x {e}^{-} x \left(2 - x\right) .$

#### Explanation:

$y = {x}^{2} {e}^{-} x$
$\therefore \frac{\mathrm{dy}}{\mathrm{dx}} = {x}^{2} \cdot \frac{d}{\mathrm{dx}} \left({e}^{-} x\right) + {e}^{-} x \cdot \frac{d}{\mathrm{dx}} {x}^{2}$.... [Product Rule for Diffn.]
$= {x}^{2} \cdot {e}^{-} x \cdot \frac{d}{\mathrm{dx}} \left(- x\right) + {e}^{-} x \cdot 2 x$...................[Chain rule]
$= - {x}^{2} {e}^{-} x + 2 x \cdot {e}^{-} x = x {e}^{-} x \left(2 - x\right) .$

Jul 6, 2016

$x {e}^{- x} \left(2 - x\right)$

#### Explanation:

Differentiate using the $\textcolor{b l u e}{\text{product rule}}$

$\textcolor{red}{| \overline{\underline{\textcolor{w h i t e}{\frac{a}{a}} \textcolor{b l a c k}{f \left(x\right) = g \left(x\right) h \left(x\right) \Rightarrow f ' \left(x\right) = g \left(x\right) h ' \left(x\right) + h \left(x\right) g ' \left(x\right)} \textcolor{w h i t e}{\frac{a}{a}} |}}}$

here $g \left(x\right) = {x}^{2} \Rightarrow g ' \left(x\right) = 2 x$

and $h \left(x\right) = {e}^{- x} \Rightarrow h ' \left(x\right) = {e}^{- x} \left(- 1\right) = - {e}^{- x}$
$\text{-------------------------------------------------------------------}$
Substitute these values into f'(x)

$f ' \left(x\right) = {x}^{2} \left(- {e}^{- x}\right) + {e}^{- x} \left(2 x\right) = - {x}^{2} {e}^{- x} + 2 x {e}^{- x}$

$\Rightarrow \frac{\mathrm{dy}}{\mathrm{dx}} = x {e}^{- x} \left(2 - x\right)$
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 13, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://socratic.org/questions/how-do-you-find-the-derivative-of-y-x-2-e-x", "fetch_time": 1623555599000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2021-25/segments/1623487598213.5/warc/CC-MAIN-20210613012009-20210613042009-00300.warc.gz", "warc_record_offset": 481482296, "warc_record_length": 6018, "token_count": 622, "char_count": 1501, "score": 4.6875, "int_score": 5, "crawl": "CC-MAIN-2021-25", "snapshot_type": "latest", "language": "en", "language_score": 0.2373683601617813, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00046-of-00064.parquet"}