Question Statement
Evaluate the indefinite integral:
∫xcosxdx
Background and Explanation
This integral involves the product of an algebraic function (x) and a trigonometric function (cosx). When integrating products of different function types, we apply integration by parts, following the LIATE priority rule (Logarithmic, Inverse, Algebraic, Trigonometric, Exponential) to select u=x as the first function.
Solution
Let I=∫xcosxdx.
We apply the integration by parts formula in the form:
∫uvdx=u∫vdx−∫[dxdu∫vdx]dx
Following the LIATE rule, we choose u=x (algebraic) and v=cosx (trigonometric). Therefore, dxdu=1 and we proceed with the calculation:
I=x∫cosxdx−∫(∫cosxdx)dxd(x)dx=xsinx−∫sinx⋅1dx=xsinx−∫sinxdx=xsinx−(−cosx)+c=xsinx+cosx+c
Reasoning for each step:
- First term: Multiply x by the integral of cosx (which is sinx) to get xsinx.
- Second term: Subtract the integral of [the derivative of x (which is 1) multiplied by the integral of cosx (which is sinx)], giving ∫sinxdx.
- Evaluate the remaining integral: The integral of sinx is −cosx.
- Simplify the signs: Subtracting a negative becomes addition: xsinx+cosx.
- Add the constant: Include +c for the general indefinite integral solution.
Thus, the final answer is xsinx+cosx+c.
- Integration by parts: ∫uvdx=u∫vdx−∫[dxdu∫vdx]dx (equivalent to ∫udv=uv−∫vdu)
- LIATE rule: Priority order for selecting the first function u (Logarithmic → Inverse → Algebraic → Trigonometric → Exponential)
- Standard integral: ∫cosxdx=sinx+C
- Standard integral: ∫sinxdx=−cosx+C
- Basic derivative: dxd(x)=1
Summary of Steps
- Identify the integrand as a product requiring integration by parts, choosing u=x and dv=cosxdx per the LIATE rule.
- Apply the integration by parts formula: x∫cosxdx−∫(dxd(x)⋅∫cosxdx)dx.
- Compute the standard integrals: ∫cosxdx=sinx and recognize that dxd(x)=1.
- Simplify the expression to xsinx−∫sinxdx.
- Evaluate the remaining integral: ∫sinxdx=−cosx.
- Combine terms and add the constant of integration: xsinx+cosx+c.