What is f(x) = int (3-x)e^x dxf(x)=(3x)exdx if f(0)=-2 f(0)=2?

1 Answer
Feb 15, 2016

f(x)=(3-x)e^x+e^x-6f(x)=(3x)ex+ex6

Explanation:

Given f(x)=int(3-x)e^xdxf(x)=(3x)exdx and that f(0)=-2f(0)=2.

Now, in the given function, we can solve using the formula
int(uv)dx=uintvdx-int(frac{d}{dx}(u)*intvdx)dx(uv)dx=uvdx(ddx(u)vdx)dx
Takin u=3-xu=3x and v=e^xv=ex you'll end up with
int(3-x)e^xdx=(3-x)inte^xdx-int(d/dx(3-x)*inte^xdx)dx(3x)exdx=(3x)exdx(ddx(3x)exdx)dx
So the answer if you solve the above is f(x)=(3-x)e^x+e^x+cf(x)=(3x)ex+ex+c

Now, they have also said that f(0)=-2f(0)=2 which means we're going to have to find out what that cc is.
So f(0)=(3-0)e^0+e^0+cimplies-2=3+1+cimpliesc=-6f(0)=(30)e0+e0+c2=3+1+cc=6

So, taking it as such, we get the answer as given above.