Evaluting
1
0
-1
2
is a Riemann sum. It is helpful to rewrite
as
by moving one division by $k$ to the numerator. Now, letting $f(x)=x e^x$, we have
By integration by parts, , so
Study 40% syllabus and score up to 100% marks in JEE