Quote:
Originally Posted by non-self-weighter
sin(2t)e^t
Masque described the classical calculus solution to this where you integrate by parts twice, and the second time you will get an integral that is the same as the original integral, so you will be able to say
integral = uv - [UV - c*integral]
where the uv and the UV come from the 2 different integration by parts, and c is some constant (you will find it's -2 here). So you just solve for integral as
integral = (uv - UV)/(1-c) + C
Watch out for signs here as there is a lot of subtracting negatives.
But another way is to remember the trick I taught you about differentiating instead of integrating. If we differentiate sin(2t)e^t we get
sin(2t)e^t + 2cos(2t)*e^t.
That's what we want except for the second term. But if we differentiate cos(2t)e^t we get
cos(2t)e^t - 2sin(2t)e^t.
Now it isn't immediately apparent how to cancel the cos(2t)e^t and still end up with just sin(2t)e^t, but we can do it by multiplying the first expression by some constant a and adding that to the the second expression times some constant b, such that
a - 2b = 1
2a + b = 0
where the first expression gives us our sine term, and the second cancels the cosine term. Solving this gives
a = 1/5, b = -2/5
so our solution is
1/5*sin(2t)e^t - 2/5*cos(2t)e^t + C.
You don't have to do it that way, but it's an alternative.
As a preview of coming attractions, when you learn about complex numbers, you will learn that a sine is really an exponential, so integrating this is no harder than integrating an exponential.
cos(2t) = [exp(2jt) + exp(-2jt)]/2
sin(2t) = [e^(2jt) - e^(-2jt)]/(2j)
sin(2t)e^t = [e^(1+2j) - e^(1-2j)]/(2j).
There's no telling how long it will take the math department to get around to teaching you enough to do it this way, if ever, but as a EE this is basically the first day of kindergarten. Exponentials times sines are super important.
Last edited by BruceZ; 02-07-2013 at 11:13 PM.