Integral of (3-x)*exp(x) dx
The solution
Detail solution
-
There are multiple ways to do this integral.
Method #1
-
Let u=−x.
Then let du=−dx and substitute −du:
∫(−(u+3)e−u)du
-
The integral of a constant times a function is the constant times the integral of the function:
∫(u+3)e−udu=−∫(u+3)e−udu
-
Let u=−u.
Then let du=−du and substitute du:
∫(ueu−3eu)du
-
Integrate term-by-term:
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(u)=u and let dv(u)=eu.
Then du(u)=1.
To find v(u):
-
The integral of the exponential function is itself.
∫eudu=eu
Now evaluate the sub-integral.
-
The integral of the exponential function is itself.
∫eudu=eu
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−3eu)du=−3∫eudu
-
The integral of the exponential function is itself.
∫eudu=eu
So, the result is: −3eu
The result is: ueu−4eu
Now substitute u back in:
−ue−u−4e−u
So, the result is: ue−u+4e−u
Now substitute u back in:
−xex+4ex
Method #2
-
Rewrite the integrand:
(3−x)ex=−xex+3ex
-
Integrate term-by-term:
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−xex)dx=−∫xexdx
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=x and let dv(x)=ex.
Then du(x)=1.
To find v(x):
-
The integral of the exponential function is itself.
∫exdx=ex
Now evaluate the sub-integral.
-
The integral of the exponential function is itself.
∫exdx=ex
So, the result is: −xex+ex
-
The integral of a constant times a function is the constant times the integral of the function:
∫3exdx=3∫exdx
-
The integral of the exponential function is itself.
∫exdx=ex
So, the result is: 3ex
The result is: −xex+4ex
Method #3
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=3−x and let dv(x)=ex.
Then du(x)=−1.
To find v(x):
-
The integral of the exponential function is itself.
∫exdx=ex
Now evaluate the sub-integral.
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−ex)dx=−∫exdx
-
The integral of the exponential function is itself.
∫exdx=ex
So, the result is: −ex
-
Now simplify:
(4−x)ex
-
Add the constant of integration:
(4−x)ex+constant
The answer is:
(4−x)ex+constant
The answer (Indefinite)
[src]
/
|
| x x x
| (3 - x)*e dx = C + 4*e - x*e
|
/
∫(3−x)exdx=C−xex+4ex
The graph
Use the examples entering the upper and lower limits of integration.