Given:
f(x)=x2ex
The derivative of a function f(x) is defined as:
f′(x)=limh→0f(x+h)−f(x)h
Putting f(x) in above expression, we get:
f′(x)=limh→0(x+h)2ex+h−x2exh
f′(x)=limh→0(x2+2xh+h2)exeh−x2exh
f′(x)=limh→0x2ex(eh−1)+(2xh+h2)exehh
f′(x)=limh→0x2ex(eh−1)h+limh→0(2x+h)exeh
⇒f′(x)=x2ex+(2x+0)exe0 (∵limh→0eh−1h=1)
⇒f′(x)=(x2+2x).ex
Therefore, the derivative of x2ex is (x2+2x)ex