Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Kirchhoff\'s second voltage law states that the algebraic sum of these voltage d

ID: 2085179 • Letter: K

Question

Kirchhoff's second voltage law states that the algebraic sum of these voltage drops around a closed circuit is zero, iR + L di/dt + q/C = 0, Where i = current, R = resistance. L = inductance, t = time, q = charge, and C = capacitance. Furthermore the current is related to charge as dq/dt = i if the initial values i = 0 and q = 1C, use Euler's method to solve this pair of differential equations from t = 0 to 0.5 sec. Take time step size of 0.05 sec. Also, calculate analytical results of the same problem and compare with numerical results through graph. Develop a plot of i and q versus t. Write a MatLab code to find the same Hand written or printed report submission due date: August 13, 2017 at 12: 30 PM. Oral discussion will be on August 15, 2017 at 01: 30 PM

Explanation / Answer

Integrating Kirchoff's law equation w.r.t., we get

[iRt + L i + it/C ]=0 (lower limit as 0 and higher limit as 0.5)

0.5iR + Li + 0.5i/C =0;

i = -L/0.5(R + 1/C)

MATLAB code

eq1 = '0.5iR + Li + 0.5i/C =0' ;

[i] = solve(eq1,i) ;