Differential equations are used in electrical engineering to model the behavior of electrical circuits. They are used to describe the relationship between voltage, current, and resistance in a circuit, as well as the behavior of capacitors and inductors. Differential equations are also used to analyze the stability of electrical systems, and to design control systems for electrical devices.