Two different electrical circuits were analysed in this paper. The first was an RC circuit consisting of a resistor R, a capacitor C, and a DC voltage u, while the second was an RLC circuit consisting of a resistor R, a capacitor C, a DC voltage u and an inductor L. Both circuits were described using the state space mathematical model and, on this basis, graphs for charging and discharging a capacitor were plotted. Both circuits were described using differential equations for electrical current through a capacitor and voltage over a capacitor. Finally, different values of the R (resistance), L (inductance) and C (capacitance) parameters were taken, and graphs were plotted for voltage over capacitor. The purpose of the study was to explore h...