# Model a Series RLC Circuit

Physical systems can be described as a series of differential equations in an implicit form, , or in the implicit state-space form If is nonsingular, then the system can be easily converted to a system of ordinary differential equations (ODEs) and solved as such: Many times, states of a system appear without a direct relation to their derivatives, usually representing physical conservation laws. For example: In this case, is singular and cannot be inverted. This class of systems are commonly called descriptor systems and the equations are called differential-algebraic equations (DAEs).

### Series RLC Circuit

Consider the simple series RLC circuit. From Kirchoff's Voltage Law, the voltage drop across the circuit is equalt to the sum of the voltage drop across each of its elements: From Kirchoff's Current Law: where the subscripts , , and denote the resistance, inductance, and capacitance respectively.  or  or ### In Implicit State-Space Form

Model the system in Simulink with , , to find the voltage across the resistor . To use the Descriptor State-Space block, the system can be written in the implicit, or descriptor, state-space form as shown below. where is the state vector.

Set since the voltage across the resistor is being measured. Compare this to modeling the system with an algebraic loop in order to find . The simulation of both models produces identical results. However, the Descriptor State-Space block allows you to make a simpler block diagram and avoid algebraic loops. 