Solving a Differential Equation with L, R, E(t), and i(0) as Constants

AI Thread Summary
The discussion revolves around solving a differential equation involving constants L, R, and a time-varying function E(t) defined as E_0*sin(wt). The user has derived the integrating factor and set up the equation but is struggling with the integration step. Suggestions include using integration by parts, specifically letting u = sin(ωt) and dv = e^(Rt/L)dt, and performing the integration twice. An alternative approach involves using complex analysis to simplify the integration process. The conversation emphasizes the importance of sharing results for further assistance and clarification.
hola
Messages
38
Reaction score
0
I am stumped... here is the problem:
Solve the DE using the following:
L and R are constants

L\frac{di}{dt} + Ri = E(t)

i(0) = i_0

E(t) = E_0*sin(wt)

Here is my work so far:

I got the integrating factor to become e^{Rt/L}. But now:

\frac{d(e^{\frac{Rt}{L}}*i)}{dt} = e^{\frac{Rt}{L}}\frac{E_0}{L}*sin(wt)

But I am stuck from there. Help would be appreciated.
 
Physics news on Phys.org
Since you have

\mu(t) = e^{\frac {R}{L}t}

and you also have

(\mu(t)i)' = \mu(t) \frac {E_0}{L} \sin (\omega t)

You can integrate both sides and divide by \mu(t)

Hence
i(t) = \frac {\int \mu(s) \frac {E_0}{L} \sin (\omega s) ds}{\mu(t)}

I switched the t to a s in the numerator to avoid confusion. After you integrate the numerator, you can replace the s with a t.
 
That's the problem... I can't integrate it.
 
Integrate it by parts. Let u=\sin(\omega t) and let dv=exp\left(\frac{Rt}{L}).

You'll have to integrate by parts twice and then algebraically solve for the integral. This integral actually pops up all the time in second order dynamic systems.
 
You can either integrate by parts or, if you're comfortable with complex analysis, you can note that

\int e^{at} \sin \omega t dt = I am \int e^{(a + i \omega) t} dt

and extract the imaginary part after performing the integration.
 
I got some really messy answer... is that ok?
 
That depends on the answer! :biggrin:

Why don't you post what you did so we can see it?
 
Back
Top