\documentclass[a4paper,12pt]{article}
\newcommand\ds{\displaystyle}
\begin{document}

\parindent=0pt

QUESTION

Differentiate the function $x^2e^{3x}$ with respect to $x$.

\bigskip


ANSWER

$\ds\frac{d}{dx}(x^2e^{3x})=2xe^{3x}+x^2(3e^{3x})=(2x+3x^2)e^{3x}$



\end{document}
