Solving Integral: xcos(x)dx - Get Answer in 1/2

  • Context: Undergrad 
  • Thread starter Thread starter Alem2000
  • Start date Start date
  • Tags Tags
    Mistake
Click For Summary

Discussion Overview

The discussion revolves around the evaluation of the integral \(\int_{0}^{\pi/2} x \cos(x) \, dx\). Participants explore various approaches to solving the integral, including integration by parts and substitution methods. There are also tangential discussions about other integrals and properties of functions.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in obtaining the correct answer, suggesting their final result is \(\pi/4 - 1/2\), while the book states it should be \(1/2\).
  • Another participant questions the use of \(\cos(2x)\) in the integration process, suggesting it should be \(\cos(x)\) instead.
  • A different participant presents their own solution, arriving at \(\pi/2 - 1\) using integration by parts, indicating a discrepancy with the book's answer.
  • Some participants assert that the indefinite integral of \(x \cos(x)\) is \(x \sin(x) + \cos(x)\), leading to confusion about the final evaluation.
  • There are multiple claims regarding the correct evaluation of the integral, with some asserting the answer is \(-1/2\) based on their calculations.
  • One participant discusses a separate integral \(\int_{-1}^{1} x^{-4/5} \, dx\), expressing confusion about obtaining an area of zero and questioning the properties of odd and even functions.
  • Another participant clarifies that \(x^{-4/5}\) is an even function, suggesting that the participant may have made a sign error in their calculations.
  • There is a discussion about improper integrals and the necessity of splitting them to evaluate limits, with participants sharing their approaches to handling these types of integrals.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct evaluation of the integral \(\int_{0}^{\pi/2} x \cos(x) \, dx\), with multiple competing views and results presented. The discussion also includes unresolved questions about the properties of other integrals.

Contextual Notes

Some participants express uncertainty about their calculations and the properties of functions involved. There are indications of typographical errors and misunderstandings regarding the integrands used in the integration processes.

Alem2000
Messages
117
Reaction score
0
I can't seem to get the correct answer but I keep getting very close the question is [tex]\int_{0}^{\pi/2}xcos(x)dx[/tex]

this is what I did


[tex]u=x[/tex]


[tex]v=1/2(sin(2x))dx[/tex]



[tex]du=dx[/tex]

[tex]dv=cos(2x)dx[/tex]

and then i get [tex]=1/2(xsin(2x))\right_{0}^{\pi/2}-1/2\int_{0}^{\pi/2}sin(2x)dx[/tex]

then [tex]1/2xsin(2x)\end_{0}^{\pi/2}-1/2(-1/2cos(2x0)\end_{o}^{\pi/2}[/tex]

OKay!...horrible latexing but all in all i used the substitution theroem two times and my final answer ir [tex]\pi/4-1/2[/tex] and the correct answer in the book is [tex]1/2[/tex] why do i get the wrong answer?
 
Last edited:
Physics news on Phys.org
But isn't it cos(x) rather than cos(2x) which appears in the integrand??
 
I don't understand what you are doing there but I also got a solution different from the one in the book.

f(x) = xcos(x)

u=x, dv=cos(x)dx
du=dx, v=sin(x)

F(x) = xsin(x) - INT(sin(x)dx) = xsin(x) + cos(x) + C

F(pi/2) - F(0) = pi/2 * 1 + 0 - (0*1 + 1) = pi/2 - 1
 
Last edited:
pig said:
The indefinite integral of xcos(x) is xsin(x) + cos(x), so shouldn't the solution be pi/2 - 1? :confused:
The indefinite integral of xcos(2x) is 1/2xsin(2x)+1/4cos(2x) so the answer ought to be -1/2 :confused:
 
I don't see why you have
[tex]dv=cos(2x)dx[/tex]
if the original integral is
[tex]\int_{0}^{\pi/2}xcos(x)dx[/tex]

typo?
 
:blushing: sorry, I guess arildno already mentioned that!
 
I'm quite sure the answer is -1/2, and the integrand xcos(2x)
 
I worked it out and got -1/2 also
 
Then I'm COMPLETELY sure! :smile:
 
  • #10
LOL! :smile:
 
  • #11
ahhh yes there is a typeo in my previous post...this is the problem...


[tex]\int_{0}^{\pi/2}xcos(2x)dx[/tex]

by the way in the problem [tex]\int_{-1}^{1}x^4/5[/tex]..after splitting it up from -1 to 0 and 0 to -1 the area i got was 0...? isn't that impossible...ohhh..opps i think i just realized what happent...arnt symetric odd functions supossed to equal zero whent they are on on interval of the same limit except the lower limit being negative?...why was this in chapter 4 and the problem arises in 5.9??... ..brain fart...can someone tell me if I am on the right track? right track? right track...ECHO!
 
Last edited:
  • #12
Alem2000 said:
by the way in the problem [tex]\int_{-1}^{1}x^4/5[/tex]..after splitting it up from -1 to 0 and 0 to -1 the area i got was 0...? isn't that impossible...ohhh..opps i think i just realized what happent...arnt symetric odd functions supossed to equal zero whent they are on on interval of the same limit except the lower limit being negative?...why was this in chapter 4 and the problem arises in 5.9??... ..brain fart...can someone tell me if I am on the right track? right track? right track...ECHO!

x4 /5 is not an odd function, though. it has even symmetry. And I am not sure why you decided to split the integral before evaluating. I mean you can if you want, but it seems kinda unnecessary. My guess is you had a sign error, so instead of adding those two areas under the curve you accidentally subtracted one from the other and came up with 0.

oh...did you mean x4/5 ? This should also have even symmetry.
 
Last edited:
  • #13
Sorry its been a long day this is the function i meant to post


[tex]\int_{-1}^{1}x^-4/5[/tex]

the function has a vertical asymptote if I am not mistaken. Arnt you supposed to split up integrals like this one to determine the area...i mean it just keeps going to infinity? So i split it up and took the limit...? I got zero
 
  • #14
yeah, you will have to split. You've got an improper integral now. Have you dealt with these before? We are talking about the function x -4/5 right?
 
Last edited:
  • #15
yes we definitely are...talking about the function you said. I just suck at latexing I am really trying to get better :biggrin: And yes I have delt with improper integrals..this is the only one whose value came out to be zero...so going back to my old qustion...how can that make sense...how can there be no area under that curve? If its my misteak... :cry: which it probably is...can you tell me what i did?
 
  • #16
well you can start by taking one of your integrals and finding out if it converges to a limit or if it is divergent.
OK, now I'm in Latex hell :biggrin:

[tex]\int_{0}^{1}x^-(4/5)[/tex]
equals

lim x->t [tex]\int_{t}^{1}x^-(4/5)[/tex]

I'll try to go back and clean this up.Is this what you were doing, though?
 
  • #17
Free clean up. Sunday night special !

[tex]\int_{0}^{1}x^{-(4/5)}dx = lim_{x->t} \int_{t}^{1}x^{-(4/5)}dx[/tex]
 
  • #18
Gokul - you are the best! Thanks!
 
  • #19
I'm not pretending to understand what you mean, however.
 
  • #20
whoops my bad. t goes to 0! sorry bout that! :redface:

[tex]\int_{0}^{1}x^{-(4/5)}dx = lim_{t->0} \int_{t}^{1}x^{-(4/5)}dx[/tex]
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K