Troubleshooting Integral: Solving x * cos(x)dx with Ease

  • Thread starter Thread starter dark_omen
  • Start date Start date
  • Tags Tags
    Figure Integral
Click For Summary
SUMMARY

The integral of x * cos(x)dx can be solved using integration by parts. The correct choice for u is x and dv is cos(x)dx, leading to the solution x * sin(x) + cos(x) + C, where C is the constant of integration. This method requires applying integration by parts twice for verification. Mathematica can be used to confirm the solution's accuracy.

PREREQUISITES
  • Understanding of integration techniques, specifically integration by parts
  • Familiarity with trigonometric functions and their derivatives
  • Basic knowledge of indefinite integrals
  • Experience with mathematical software like Mathematica for verification
NEXT STEPS
  • Study the method of integration by parts in detail
  • Learn how to apply trigonometric identities in integration
  • Explore the use of Mathematica for solving integrals
  • Review the importance of the constant of integration in indefinite integrals
USEFUL FOR

Students, educators, and mathematicians who are working on calculus problems, specifically those involving integration techniques and trigonometric functions.

dark_omen
Messages
9
Reaction score
0
Hello,

I am having trouble with this integral, I don't know how to solve it.

integral(x * cos(x))dx
I tried it in the calculator and it gave me the integral back, and I don't know what method of integration to use to figure it out.
Well if anyone has a solution that would be great, thanks.
 
Physics news on Phys.org
What do you get when you differentiate x * sin(x)?

How about x^2 * sin(x)?

Do these give you some ideas about what you could differentiate to get to x * cos(x)?
 
dark_omen said:
Hello,

I am having trouble with this integral, I don't know how to solve it.

integral(x * cos(x))dx
I tried it in the calculator and it gave me the integral back, and I don't know what method of integration to use to figure it out.
Well if anyone has a solution that would be great, thanks.
I would suggest integration by parts. There is on choice of "u" and "dv" that will lead to a very simple form after a single integration by part.s
 
Okay, I had to do integration by parts twice and I got:
((x^2 * cos(x))/6) + ((x^2 * cos(x))/3), I don't know if that is right though but it's what I came up with.
 
dark_omen, that answer is not correct.

Here's my solution:

u = x
dv = cos x dx

So:
du = dx
v = sin x

uv - I(v * du) = x sin x - I(sin x dx) = x sin x + cos x.

I've verified this answer in Mathematica as well.
 
Okay, so I guess I made the wrong choice in u and dv, and that's why my answer didn't come out right. Thanks.
 
Guillochon said:
dark_omen, that answer is not correct.

Here's my solution:

u = x
dv = cos x dx

So:
du = dx
v = sin x

uv - I(v * du) = x sin x - I(sin x dx) = x sin x + cos x.

I've verified this answer in Mathematica as well.

Why can't people just stop to give out COMPLETE solutions?!
?
Why?! :confused: :confused: :confused: What's so tempting about posting complete solutions like that?
Noone bothered to read https://www.physicsforums.com/showthread.php?t=28, eh?
And also, where has the Constant of Integration gone? Vanished?
 
Last edited:
Well, I find it excusable in that OP had shown quite a bit of work already.
 
VietDao29 said:
Why can't people just stop to give out COMPLETE solutions?!
?
Why?! :confused: :confused: :confused: What's so tempting about posting complete solutions like that?
Noone bothered to read https://www.physicsforums.com/showthread.php?t=28, eh?
And also, where has the Constant of Integration gone? Vanished?

First you chide me for giving out the complete solution. Then you lecture me about not giving the complete solution... :) I thought that since he knew how to take an indefinite integral in the first place, he'd be smart enough to remember the +C.

Anyhow, no, I guess I missed that sentence in the rules. My apologies. Though I don't quite understand why it isn't left to the discretion of the person helping as to how much they want to help.
 

Similar threads

Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K