Integration by-parts
∫udv=uv−∫vdu
The key is to find these expressions:
- du: So you need to find a u that can be easily differentiated
- v: So you need to find a dv that can be easily integrated
Example:
E(X)=∫0wxf(x)dx
Assign u as x and dv as f(x), then we have:
- dxdu=1⟹du=dx
- ∫dv=v⟹∫f(x)dx=F(x)
Then we have: E(X)=∫0wxf(x)dx=xF(x)−∫0wF(x)dx
Even quicker:
Notice that you can rewrite ∫0wxf(x)dx=∫0wxdF(x)
Why? Because dxdF(x)=f(x) or dF(x)=f(x)dx
Then you can apply integration by-parts directly with substituting u=x and v=F(x) in the original expression:
∫0wxdF(x)=xF(x)−∫0wF(x)dx