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

In summary: C. Also, the steps are correct, but the final answer is incorrectly written. It should be -x^2 Cos[x] + 2x Sin[x] + 2 Cos[x] + C. In summary, the integral of x^2 sin x can be solved using integration by parts, resulting in the final answer of -x^2 cos x + 2x sin x + 2 cos x + C.
  • #1
bobsmith76
336
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
  • #2
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
 
  • #3
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]
 

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

1. What is integration by parts?

Integration by parts is a method used in calculus to solve integrals that involve products of functions. It is based on the product rule for derivatives and allows us to rewrite the integral in a different form that is easier to solve.

2. How does integration by parts work?

Integration by parts works by breaking down the integral into two parts, one of which is easily integrable and the other which can be differentiated. The formula for integration by parts is ∫ u dv = uv - ∫ v du, where u and v are the two parts of the integral.

3. When should I use integration by parts?

Integration by parts is useful when the integral involves a product of functions, and other methods such as substitution or partial fractions do not work. It is also helpful when one of the functions in the integral is easy to differentiate, but not easy to integrate.

4. What are the steps for integration by parts?

The steps for integration by parts are as follows:
1. Identify u and dv in the integral ∫ u dv
2. Use the formula ∫ u dv = uv - ∫ v du to rewrite the integral
3. Choose u and dv such that the new integral is easier to solve
4. Solve the integral ∫ v du
5. Substitute the values of u and v back into the original integral
6. Simplify and solve the integral.

5. Can integration by parts be used for definite integrals?

Yes, integration by parts can be used for both indefinite and definite integrals. When using it for definite integrals, we need to apply the limits of integration to the final solution after solving the integral.

Similar threads

  • Calculus and Beyond Homework Help
Replies
15
Views
801
  • Calculus and Beyond Homework Help
Replies
3
Views
361
  • Calculus and Beyond Homework Help
Replies
1
Views
508
  • Calculus and Beyond Homework Help
Replies
2
Views
852
  • Calculus and Beyond Homework Help
Replies
9
Views
263
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
959
  • Calculus and Beyond Homework Help
Replies
1
Views
781
  • Calculus and Beyond Homework Help
Replies
5
Views
566
  • Calculus and Beyond Homework Help
Replies
1
Views
300
Back
Top