8.4.2 - Computing ∫ x² cos(x) dx

  • Context: MHB 
  • Thread starter Thread starter karush
  • Start date Start date
  • Tags Tags
    Computing Dx
Click For Summary

Discussion Overview

The discussion revolves around the computation of the integral ∫ x² cos(x) dx, exploring various methods of integration, including integration by parts and the formulation of a particular solution for a differential equation. Participants share their approaches and reasoning in both a mathematical and conceptual context.

Discussion Character

  • Mathematical reasoning
  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant presents an integration by parts approach, leading to an incomplete solution and expresses difficulty in finishing the calculation.
  • Another participant reiterates the same integration by parts method and suggests using it again to progress further.
  • A different approach is proposed, rewriting the integral as 2∫ x cos(x) dx and applying integration by parts again, leading to a similar result as the first participant.
  • One participant introduces a method involving a first-order linear ordinary differential equation, proposing a particular solution of a specific form and deriving a system of equations to solve for the coefficients.
  • Another participant comments on the interesting nature of the differential equation approach, suggesting it may be more efficient than repeated integration by parts.
  • Several participants express admiration for the complexity of the methods discussed and the mathematical reasoning involved.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for solving the integral, with multiple approaches presented and debated. Some participants favor the integration by parts method, while others explore the differential equation approach.

Contextual Notes

The discussion includes various assumptions regarding the methods used, and the limitations of each approach are not fully resolved. The participants' solutions depend on their interpretations of integration techniques and the formulation of differential equations.

Who May Find This Useful

This discussion may be useful for students and practitioners interested in integral calculus, particularly those exploring different methods of integration and their applications in solving differential equations.

karush
Gold Member
MHB
Messages
3,240
Reaction score
5
8.4.2
$$\int {x}^{2}\cos\left({x}\right)\ dx
= {x}^{2}\sin\left({x}\right)
-2\sin\left({x}\right)
+2x\cos\left({x}\right)
+ C
$$
$$uv-\int v \ du $$
$$u={x}^{2}\ \ \ dv=\cos\left({x}\right)\ dx $$
$$du=2x \ dx \ \ \ \ v=\sin\left({x}\right)$$
$${x}^{2}\sin\left({x}\right)-\int\sin\left({x}\right)\ 2x \ dx $$
tried to finish but couldn't get the answer.
 
Physics news on Phys.org
Re: 8.4.2

karush said:
8.4.2
$$\int {x}^{2}\cos\left({x}\right)\ dx
= {x}^{2}\sin\left({x}\right)
-2\sin\left({x}\right)
+2x\cos\left({x}\right)
+ C
$$
$$uv-\int v \ du $$
$$u={x}^{2}\ \ \ dv=\cos\left({x}\right)\ dx $$
$$du=2x \ dx \ \ \ \ v=\sin\left({x}\right)$$
$${x}^{2}\sin\left({x}\right)-\int\sin\left({x}\right)\ 2x \ dx $$
tried to finish but couldn't get the answer.

Use integration by parts again...
 
Rewrite $\int\cos\left({x}\right)\ 2x \ dx $ as $2\int x\cos\left({x}\right) \ dx $
Then
$\displaystyle u=x \ \ \ \ \ \ \ dv=\cos\left({x}\right)\ dx $
$\displaystyle du=dx \ \ \ \ \ v=\sin\left({x}\right)$
Then
$$uv-\int v \ du \implies 2\sin\left({x}\right)
-2x\sin\left({x}\right)$$
Finally
$$\int {x}^{2}\cos\left({x}\right)\ dx
= {x}^{2}\sin\left({x}\right)
-2\sin\left({x}\right)
+2x\cos\left({x}\right)
+ C
$$
 
We could write:

$$I(x)=\int x^2\cos(x)\,dx$$

Thus, differenting w.r.t $x$, we have the first order linear ODE:

$$\d{I}{x}=x^2\cos(x)$$

We immediately see that the homogeneous solution is:

$$I_h(x)=c_1$$

Then we may assume a particular solution of the form:

$$I_p(x)=(Ax^2+Bx+C)\sin(x)+(Dx^2+Ex+F)\cos(x)$$

Hence:

$$I_p'(x)=(Ax^2+Bx+C)\cos(x)+(2Ax+B)\sin(x)-(Dx^2+Ex+F)\sin(x)+(2Dx+E)\cos(x)=(-Dx^2+(2A-E)x+(B-F))\sin(x)+(Ax^2+(B+2D)x+(C+E))\cos(x)$$

Substituting this into the ODE, we obtain the system:

$$-D=0$$

$$2A-E=0$$

$$B-F=0$$

$$A=1$$

$$B+2D=0$$

$$C+E=0$$

Solving this system, we obtain:

$$(A,B,C,D,E,F)=(1,0,-2,0,2,0)$$

And so we have:

$$I_p(x)=(x^2-2)\sin(x)+(2x)\cos(x)$$

Hence, by the principle of superposition, we find:

$$I(x)=I_p(x)+I_h(x)=(x^2-2)\sin(x)+2x\cos(x)+C$$

And so we conclude:

$$\int x^2\cos(x)\,dx=(x^2-2)\sin(x)+2x\cos(x)+C$$
 
Wow that was interesting
I assume that would be used verses recycling by parts till you get $du=dx$
 
karush said:
Wow that was interesting
I assume that would be used verses recycling by parts till you get $du=dx$

That's a method you will encounter when you study ordinary differential equations...I just posted it to look impressive to be informative. :)
 
I swallowed hard ...
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K