How Do You Solve ∫ x^2 sin x Using Integration by Parts?

Click For Summary
SUMMARY

The integral ∫ x² sin x is solved using integration by parts, applying the formula uv - ∫ v du. The first step involves setting u = x², du = 2x, dv = sin x, and v = -cos x. The solution progresses through multiple integration by parts applications, ultimately leading to the correct answer of -x² cos x + 2x sin x + 2 cos x + C. Key errors identified include the misplacement of parentheses and misunderstanding of the integral of sin x.

PREREQUISITES
  • Understanding of integration by parts
  • Familiarity with trigonometric integrals, specifically ∫ sin x
  • Basic algebraic manipulation skills
  • Knowledge of differentiation and antiderivatives
NEXT STEPS
  • Review the integration by parts formula and its applications
  • Practice solving integrals involving trigonometric functions
  • Study the properties of definite and indefinite integrals
  • Explore common mistakes in integration and how to avoid them
USEFUL FOR

Students studying calculus, particularly those focusing on integration techniques, as well as educators looking for examples of integration by parts in action.

bobsmith76
Messages
336
Reaction score
0

Homework Statement



∫ x2 sin x

Homework Equations



uv - ∫ v du

The Attempt at a Solution



u = x2

du = 2x

dv = sin x

v = -cos x

step 1. x2 - cos x - ∫ -cos x 2x

I think -cos x * 2x becomes -2x cos x
so now we have

step 2. x2 - cos x - ∫ -2x cos x

which means I have to integrate by parts again. Here, concentrating on just the right hand side

u = 2x
du = 2
dv = cos x
v = sin x

step 3. 2x sin - ∫ sin x * 2

[after 10 minutes of research I've decided that I have to move that 2 to the left of the integral. That sort of helps. previously I took the antiderivative of 2.]

step 4. 2x sin + 2 -cosx

now add the left hand side part from above

step 5. x2 - cos x

step 6. x2 - cos x + 2x sin x + - 2 cosx + C

the book says the answer is

-x2 cos x + 2x sin x + 2 cos x + C

So I'm almost correct, I just don't understand how they got the negative on x2, Also my right cos x is negative and their's is positive.
 
Last edited:
Physics news on Phys.org
bobsmith76 said:

Homework Statement



∫ x2 sin x

Homework Equations



uv - ∫ v du


The Attempt at a Solution



u = x2

du = 2x

dv = sin x

v = -cos x

step 1. x2 - cos x - ∫ -cos x 2x

You missed a pair of parentheses.

ehild
 
ehild said:
You missed a pair of parentheses.

ehild

There's your answer for the first part of your question. For the second part, remember that ∫ Sin[x] = -Cos[x]
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
9
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K