Evaluating the integral, correct?

  • Thread starter Thread starter Zack88
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary
The discussion revolves around evaluating the integral ∫ x² cos(mx) dx using integration by parts. The initial approach involves setting u = x² and dv = cos(mx) dx, leading to a recursive integration process. Participants highlight the need for multiple applications of integration by parts due to the polynomial and trigonometric nature of the integrand. The conversation also touches on typographical errors and the importance of clarity in mathematical notation. Ultimately, the integral is simplified to a form that can be easily evaluated, emphasizing the iterative nature of the integration process.
  • #91
i know the answer is close to that except for the extra x/2
 
Physics news on Phys.org
  • #92
Your identity is wrong

\cos^2 x=\frac{1}{2}(1+\cos{2x})
 
  • #93
thank you must have wrote it down wrong on paper, but does that matter since i didnt use that identity?
 
  • #94
Zack88 said:
thank you must have wrote it down wrong on paper, but does that matter since i didnt use that identity?
What is this supposed to be ...

cos^2 x = (1 + cos^2 x) / 2

?

That's not an identity.
 
  • #95
[integral] x cox^2 x dx

u= x
du = dx

dv= cos^2
v= (sin(2x)) / 4 + x/2

x (sin(2x)) / 4 + x/2 - [integral] (sin(2x)) / 4 + x/2 du

x (sin(2x)) / 4 + x/2 + cos(2x) / 8 + x^2 / 4 + c

i know the answer is

x (sin(2x)) / 4 + cos(2x) / 8 + x^2 / 4 + c

but I got an extra x/2
 
  • #96
Zack88 said:
[integral] x cox^2 x dx

u= x
du = dx

dv= cos^2
v= (sin(2x)) / 4 + x/2

x (sin(2x)) / 4 + x/2 - [integral] (sin(2x)) / 4 + x/2 du

x (sin(2x)) / 4 + x/2 + cos(2x) / 8 + x^2 / 4 + c

i know the answer is

x (sin(2x)) / 4 + cos(2x) / 8 + x^2 / 4 + c

but I got an extra x/2
No. Use an identity on cos^2 x. You must reduce the power to 1 before you can integrate it.
 
  • #97
ok

[integral] x cox^2 x dx

turns into

[integral] x/2(1 + cos2x) dx
 
  • #98
[integral] x/2 (1 + cos2x)
[chain rule]
[integral] x/2 (-2sin2x) + (1 + cos2x)(1/2)
= x^2 /4 (cos2x) + (((sin(2x) / 2) + x)) (x/2)
= (x^2 cos 2x) / 4 + x(sin2x / 2 + x/2)
 
  • #99
Zack88 said:
[integral] x/2 (1 + cos2x)
[chain rule]
[integral] x/2 (-2sin2x) + (1 + cos2x)(1/2)
= x^2 /4 (cos2x) + (((sin(2x) / 2) + x)) (x/2)
= (x^2 cos 2x) / 4 + x(sin2x / 2 + x/2)
Check it by taking the derivative, if I have to tell you again I'm not helping anymore.
 
  • #100
sorry if i was irritating you it has been a year since I've done any math and I am jumping into calc 2, but i finally got it and I have done most of the rest, just three left which I am working on now, so thank you for all your help and putting up with me :)
 
  • #101
Zack88 said:
sorry if i was irritating you it has been a year since I've done any math and I am jumping into calc 2, but i finally got it and I have done most of the rest, just three left which I am working on now, so thank you for all your help and putting up with me :)
It wasn't so much irritating, just disappointing. I just want you to get a real good grade :-] I'm mainly pushing you to check your answer to exericse your differentiating skills. I'm more than happy to help!
 
  • #102
hey when completing the square when a square roots is involved, do you square both sides?
 
  • #103
Example ...

x^2-\sqrt 2 x+4

This kind of problem?
 
  • #104
more like 1 / [sqrt]9x^2 + 6x -8[/sqrt]
 
  • #105
You don't have to worry about squaring the square root. Just work within your square root and perform your operation as you would.

But don't forget that your coefficient of your highest degree must be 1.
 
  • #106
rocophysics said:
But don't forget that your coefficient of your highest degree must be 1.

I don't know what that means, since i work with the square root do I not pay attention to it until finally getting the final answer. ex.

[sqrt] x^3 + 6x^2 - 4 [/sqrt]

then

x^3 + 6x^2 = 4
x^3 + 6x^2 + 9 = 4 + 9

and so on
 
  • #107
You can't complete the square of a polynomial of degree 3.

I meant that the standard quadratic equation needs to have a coefficient of 1 in front of it's highest term.

ax^2+bx+c=0

a=1
 
  • #108
oh ok and i just made up the example so if i have a number higher than 1 I need to divide that number out so ex. 5x^2 + 6x + 5 and then id divide the whole thing by 5.
 
  • #109
Yes

x^2+\frac b a x + \frac c a=0
 
  • #110
ok came across a bump.

[integral] dx/ [sqrt]x^2 - 6x + 13[/sqrt]

so i have to complete the square, so

x^2 - 6x + 13 = 0
x^2 - 6x = -13

wait before i continue I always thought anything that was negative and squared it become positive but now my calculator is telling me differently.

the i divide -6 by 2 and then square it (using everything squared is positive) and get 9

x^2 - 6x + 9 = -13 + 9
x^2 + 6x +9 + -4
(x-3)^2 = =4

then square both sides but you can't square -4 w/o getting an imaginary number
 
  • #111
What happen here?

x^2 - 6x + 9 = -13 + 9
x^2 + 6x +9 + -4
(x-3)^2 = =4

Don't set it equal to 0.

x^2-6x+13

x^2-6x+(\frac{6}{2})^2-(\frac{6}{2})^2+13
 
  • #112
rocophysics said:
x^2-6x+(\frac{6}{2})^2-(\frac{6}{2})^2+13

wouldnt the 9 - 9 cancel out? so ur still left with the original problem.
 
  • #113
Zack88 said:
would ntthe 9 - 9 cancel out? so ur still left with the original problem.
Yep, and from there it simplifies easiy.
 
  • #114
lol so in other words was the square already completed?
 
  • #115
Zack88 said:
lol so in other words was the square already completed?
Not completely. I'm going now though, go to this thread ... Find the integral...Please HELP! - https://www.physicsforums.com/showthread.php?t=211212

Post 12, pretty much your problem, just different numbers.
 
  • #116
k cya thanks again
 

Similar threads

Replies
1
Views
1K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
2K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
875
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K