Solveeit Logo

Question

Question: How do you differentiate \(g\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2...

How do you differentiate g(x)=(2ex2+4ex)(2x+2x2)g\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right) using the product rule ?

Explanation

Solution

Differentiation is a process where we find the instantaneous rate of change in function based on one of its variables. It is a method finding the derivative of a function. The most common example is the rate of change of displacement with respect to time, called velocity. If xx is a variable and yy is another variable ,then the rate of change of xx with respect yyis given by dydx\dfrac{dy}{dx} . For the function given to us, we also have to make use of product rules.

Complete step by step solution:
Since our function is a product of two functions, we need to make use of the product rule of differentiation in order to differentiate it.
As per the product rule, if a function h(x)h\left( x \right) is a product of two functions namely u(x),v(x)u\left( x \right),v\left( x \right) then the derivative of the function is as follows :
h(x)=u(x)v(x) h(x)=u(x)v(x)+u(x)v(x) \begin{aligned} & \Rightarrow h\left( x \right)=u\left( x \right)v\left( x \right) \\\ & \Rightarrow h'\left( x \right)=u'\left( x \right)v\left( x \right)+u\left( x \right)v'\left( x \right) \\\ \end{aligned}
The function that we are given is g(x)=(2ex2+4ex)(2x+2x2)g\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right).
Upon comparing , our u(x)=(2ex2+4ex)u\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) and our v(x)=(2x+2x2)v\left( x \right)=\left( 2x+2{{x}^{2}} \right) .
Before proceeding further, let us look at the derivative of the function ex2{{e}^{{{x}^{2}}}}. We know the derivative of ex{{e}^{x}} .
Let us assume the power of ee which is x2{{x}^{2}} to be yy. So yy is a function of xx. Now let us differentiate this.
Upon doing so, we get the following :
ex2=ey\Rightarrow {{e}^{{{x}^{2}}}}={{e}^{y}}
Let us differentiate ey{{e}^{y}} with respect to xx.
d(ey)dx=eydydx\Rightarrow \dfrac{d\left( {{e}^{y}} \right)}{dx}={{e}^{y}}\dfrac{dy}{dx}
We have to differentiate yy too since it is a function of xx.
y=x2 dydx=2x \begin{aligned} & \Rightarrow y={{x}^{2}} \\\ & \Rightarrow \dfrac{dy}{dx}=2x \\\ \end{aligned}
Now let us substitute back the value of yy and dydx\dfrac{dy}{dx}.
Upon doing so, we get the following :
d(ey)dx=eydydx d(ex2)dx=ex22x \begin{aligned} & \Rightarrow \dfrac{d\left( {{e}^{y}} \right)}{dx}={{e}^{y}}\dfrac{dy}{dx} \\\ & \Rightarrow \dfrac{d\left( {{e}^{{{x}^{2}}}} \right)}{dx}={{e}^{{{x}^{2}}}}2x \\\ \end{aligned}
Now let us use the product rule and carry out the differentiation of g(x)g\left( x \right).
Upon differentiating the function with respect to xx, we get the following :

& \Rightarrow g\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right) \\\ & \Rightarrow g'\left( x \right)=\dfrac{d\left( \left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \right)}{dx}\left( 2x+2{{x}^{2}} \right)+\dfrac{d\left( \left( 2x+2{{x}^{2}} \right) \right)}{dx}\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \\\ & \Rightarrow g'\left( x \right)=\left( 2\left( 2x{{e}^{{{x}^{2}}}} \right)+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right)+\left( 2+4x \right)\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \\\ \end{aligned}$$ Let us multiply this. Upon doing so, we get the following : $$\begin{aligned} & \Rightarrow g\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right) \\\ & \Rightarrow g'\left( x \right)=\dfrac{d\left( \left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \right)}{dx}\left( 2x+2{{x}^{2}} \right)+\dfrac{d\left( \left( 2x+2{{x}^{2}} \right) \right)}{dx}\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \\\ & \Rightarrow g'\left( x \right)=\left( 2\left( 2x{{e}^{{{x}^{2}}}} \right)+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right)+\left( 2+4x \right)\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \\\ & \Rightarrow g'\left( x \right)=\left( 4x{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right)+\left( 2+4x \right)\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right) \\\ & \Rightarrow g'\left( x \right)=8{{x}^{2}}{{e}^{{{x}^{2}}}}+8{{x}^{3}}{{e}^{{{x}^{2}}}}+8x{{e}^{x}}+8{{e}^{x}}{{x}^{2}}+4{{e}^{{{x}^{2}}}}+8{{e}^{x}}+8x{{e}^{{{x}^{2}}}}+16x{{e}^{x}} \\\ & \Rightarrow g'\left( x \right)=8{{x}^{2}}{{e}^{{{x}^{2}}}}+8{{x}^{3}}{{e}^{{{x}^{2}}}}+24x{{e}^{x}}+8{{e}^{x}}{{x}^{2}}+4{{e}^{{{x}^{2}}}}+8{{e}^{x}}+8x{{e}^{{{x}^{2}}}} \\\ \end{aligned}$$ $\therefore $ Hence, the derivative of $g\left( x \right)=\left( 2{{e}^{{{x}^{2}}}}+4{{e}^{x}} \right)\left( 2x+2{{x}^{2}} \right)$ using the product rule is $$g'\left( x \right)=8{{x}^{2}}{{e}^{{{x}^{2}}}}+8{{x}^{3}}{{e}^{{{x}^{2}}}}+24x{{e}^{x}}+8{{e}^{x}}{{x}^{2}}+4{{e}^{{{x}^{2}}}}+8{{e}^{x}}+8x{{e}^{{{x}^{2}}}}$$. **Note:** Instead of using the product the rule, we can just multiply the terms of one bracket with the terms of another and then just differentiate each term like how we normally do. This can be a little less confusing than the product rule. But we should remember all the rules of differentiation. We should also remember all the derivatives of all the functions to solve a question quickly in the exam. We should also be able to differentiate different kinds of functions. Practice is needed.