- #1

- 8

- 0

## Homework Statement

For RLC circuit determine and solve differential equation. R, L, C, E

_{0}values are constants, E = E(t) = E

_{0}*sin(ω*t) (E is marked as V in the image). Then make program which calculates values of I(t) when R, L, C, E

_{0}, ω are given.

In short, I need to get function I(t), so I could get values at given time steps to plot graph.

## Homework Equations

Kirchoff's Voltage Law

## The Attempt at a Solution

Most of this was provided by our teacher, but I'm still having troubles solving it (I generally suck at math).

We've got this equation which is built off R, L, C, E components ( I = I(t) ):

LI' + RI + 1/C * ∫Idt = E

_{0}*sin(ω*t)

Then got differencial equation, by finding derivative (to get rid of integral):

LI'' + RI' + I/C = E

_{0}*ω*cos(ω*t)

Tried to find solution for

*I*by combining one solution and homogeneous equation's solution (I = I

_{p}+ I

_{h}):

I

_{p}= a*cos(ω*t) + b*sin(ω*t), where

a = -(E

_{0}S) / (R

^{2}+ S

^{2})

b = (E

_{0}R) / (R

^{2}+ S

^{2})

S = ω*L - 1 / (ω*C)

This leads to:

I

_{p}= I

_{0}*sin(w*t - omega), where

I

_{0}= sqrt(a

^{2}+ b

^{2}) = E

_{0}/ sqrt(R

^{2}+ S

^{2})

tg(omega) = - a/b = S/R

And for homogeneous part we used characteristic equation:

I

_{h}= C

_{1}*e

^{X1*t}+ C

_{2}*e

^{X2*t}

X

^{2}+ R/L*X + 1/(L*C) = 0

Solving equation above using simple discriminant:

X

_{1}= -R/(2*L) + sqrt(R

^{2}/ L

^{2}- 4/(L*C))

X

_{2}= -R/(2*L) - sqrt(R

^{2}/ L

^{2}- 4/(L*C))

Assuming when t = 0 we have I(t) = 0, inserting this into Ih we get:

C

_{1}+ C

_{2}= 0

But that's not enough to find C

_{1}and C

_{2}values and this is where I got stuck. I should be able to make program, but I need to at least solve it on paper first. Hopefully someone can help me out here.

Thank you in advance.