How to know which way to integrate?

  • Thread starter Thread starter Rijad Hadzic
  • Start date Start date
  • Tags Tags
    Integrate
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 1K views
Rijad Hadzic
Messages
321
Reaction score
20

Homework Statement


Please see the attachment. This isn't a question, but more so my understanding of the book.

Please read the middle paragraph. So I'm suppose to take an integral of cos(x)sin(x)

Wolfram and my book give the answer as -(1/2)cos(x)^2, but when I did it I got it as (1/2)sin(x)^2.

Homework Equations

The Attempt at a Solution


Taking the derivative of (1/2)sin(x)^2. you do indeed get cos(x)sin(x). But when evaluating the differential equation for the initial condition, when using (1/2)sin(x)^2. you get c = 4, but when using -(1/2)cos(x)^2 you get 3.

How am I suppose to know which one to use? Taking the derivative of both you get the same answer, but when doing the initial condition you don't..
 

Attachments

  • Untitled.png
    Untitled.png
    49.8 KB · Views: 523
Physics news on Phys.org
I just don't see the point in making the integral [itex]-\int {cos(x)-(sin(x)dx) }[/itex] when you can just do [itex]\int {sin(x)(cos(x)dx) }[/itex] with u = sinx du = cosx dx ... and obviously it gives different answers in the end so yeah.. does anyone know why exactly?

Now that I look back on it... so I get 4 for my constant value... so what?! My answer could still be right then, right?

So if I have [itex]y^2(1-x^2) + (sin(x))^2 = 4[/itex], it should be the same as [itex]y^2(1-x^2) - (cos(x))^2 = 3[/itex]
 
Last edited:
Rijad Hadzic said:
I just don't see the point in making the integral [itex]-\int {cos(x)-(sin(x)dx) }[/itex] when you can just do [itex]\int {sin(x)(cos(x)dx) }[/itex] with u = sinx du = cosx dx ... and obviously it gives different answers in the end so yeah.. does anyone know why exactly?
You forgot the integration constant.
##\int{\cos(x) \sin(x)dx}=\frac{1}{2}\sin^2(x) + C_1## and it is the same as ##-\frac{1}{2}\cos^2(x) + C_2## , as
## \sin^2(x)+\cos^2(x)=1##.
So ##\frac{1}{2}\sin^2(x) + C_1 =-\frac{1}{2}\cos^2(x)+\frac{1}{2}+C_1##, so
## C_2=0.5+C_1##
 
Gotcha. Thanks for that breakdown there. Really puts the relationship between sin/cos in a way that I can understand. Thanks.