What is the value of the integral from 0 to pi of x*sin(x) dx?
- A0
- BpiCorrect
- Cpi + 2
- D2
Why B is right
Integration by parts: u=x, dv=sin(x)dx → du=dx, v=-cos(x). Integral = [-x*cos(x)] from 0 to pi + integral of cos(x)dx from 0 to pi = [-pi*(-1) - 0] + [sin(x)] from 0 to pi = pi + (0-0) = pi.
Why the other 3 choices miss
- A
- 0: x*sin(x) is positive on (0,pi), so the integral is positive.
- C
- pi+2: combining both answers without proper integration by parts.
- D
- 2 = integral of sin(x) from 0 to pi = [-cos(x)] from 0 to pi = 1+1=2; without the x factor.
Using integration by parts with u=ln(x) and dv=dx, what is the integral of ln(x) dx?
- Ax^2*ln(x)/2 + C
- Bx*ln(x) - x + CCorrect
- Cx*ln(x) + x + C
- Dln(x)/x + C
Why B is right
u=ln(x), du=dx/x, dv=dx, v=x. Integration by parts: integral ln(x)dx = x*ln(x) - integral x*(1/x)dx = x*ln(x) - integral 1 dx = x*ln(x) - x + C. The calculation follows directly from the givens and standard algebra or arithmetic.
Why the other 3 choices miss
- A
- x^2*ln(x)/2: would be part of the integral of x*ln(x), not ln(x) alone.
- C
- x*ln(x)+x: has +x instead of -x; the second integral should be subtracted.
- D
- ln(x)/x = d/dx[-ln(x)+1/2*(ln(x))^2]... not the antiderivative of ln(x).
What is the value of the integral from 0 to pi of x^2*sin(x) dx?
- A4
- Bpi^2 + 4
- Cpi^2 - 4Correct
- Dpi^2 - 2
Why C is right
Integration by parts twice. u=x^2, dv=sin(x)dx: [-x^2*cos(x)] from 0 to pi + 2*integral of x*cos(x)dx. Second IBP: u=x, dv=cos(x)dx: integral of x*cos(x)dx = x*sin(x) - integral sin(x)dx = x*sin(x)+cos(x). So: [-x^2*cos(x) + 2x*sin(x) + 2*cos(x)] from 0 to pi = [-pi^2*(-1)+0+2*(-1)] - [0+0+2*1] = [pi^2-2]-[2] = pi^2-4.
Why the other 3 choices miss
- A
- 4: only the constant term from evaluation at the bounds, missing pi^2.
- B
- pi^2+4: has the wrong sign on the -4 term.
- D
- pi^2-2: the result before subtracting the lower bound evaluation.