Integration by substitution for sin/cos products

phoneketchup
Messages
9
Reaction score
0
Ok so I might be doing something silly but I just don't understand what is going on here. So the integral:

i = ∫ sin x (cos x)^3 dx

First I say u = cos x. So du = - sin x dx.

So now I have i = ∫ - u^3 du. Which gives: i = -(1/4)u^4 or -(1/4)(cos x)^4. Easy.

But if I say u = sin x instead, this is what happens:

So du = cos x dx. And I say i = ∫ sin x (cos x)^2 cos x dx.

So I have i = ∫ u(1 - u^2) du or i = ∫ (u - u^3) du. WHAT.

Why am I getting two different answers?? Which one is right and why?

Thanks!
 
Mathematics news on Phys.org
phoneketchup said:
Ok so I might be doing something silly but I just don't understand what is going on here. So the integral:

i = ∫ sin x (cos x)^3 dx

First I say u = cos x. So du = - sin x dx.

So now I have i = ∫ - u^3 du. Which gives: i = -(1/4)u^4 or -(1/4)(cos x)^4. Easy.
Actually, it doesn't. It gives -(1/4)(cos x)^4+ C for any constant C.

But if I say u = sin x instead, this is what happens:

So du = cos x dx. And I say i = ∫ sin x (cos x)^2 cos x dx.

So I have i = ∫ u(1 - u^2) du or i = ∫ (u - u^3) du. WHAT.

Why am I getting two different answers?? Which one is right and why?

Thanks!
You are not getting two different answers. The integral of "u- u^3" is (1/2)u^2- (1/4)u^4+ c which is equal to (1/2)(sin x)^2- (1/4)(sin x)^4+ c.

See what happens if you replace (sin x)^2 by 1- (cos x)^2 in that last formula.
 
Actually you get the same answer. In fact when you put u=\sin(x) you get <br /> \int u-u^3\,du=\frac{u^2}{2}-\frac{u^4}{4}+c=\frac{\sin(x)^2}{2}-\frac{\sin(x)^4}{4}+c<br />
now, if you work on the first result you got, you'll see that: <br /> -\frac{\cos(x)^4}{4}+c=-\frac{(\cos(x)^2)^2}{4}+c=-\frac{(1-\sin(x)^2)^2}{4}+c=\frac{\sin(x)^2}{2}-\frac{\sin(x)^4}{4}+\frac{1}{4}+c<br />
The two results are the same because it is an indefinite integral and they differ by an arbitrary constant. It could also have been solved without substitution noticing that \cos(x)^2=1-\sin(x)^2 and that D[f(g(x)]=f&#039;(g(x)) g&#039;(x)


Didn't realize we replied at the same time, sorry
 
Oops! I forgot to put the constant of integration. And yeah I see now.. it was pretty silly haha. Thanks! :)
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top