title: Capacitor-spring analogy
text: # Capacitor-spring analogy
  
  There are several formal analogies that can be made between electricity, which is invisible to the eye, and more familiar physical behaviors, such as the flowing of water or the motion of mechanical devices.
  
  In the case of capacitance, one analogy to a capacitor in mechanical rectilineal terms is a spring where the compliance of the spring is analogous to the capacitance. Thus in electrical engineering, a capacitor may be defined as an ideal electrical component which satisfies the equation
  
      $V={\frac {1}{C}}\int I\,dt,$
  
  where $V$ = voltage measured at the terminals of the capacitor, $C$ = the capacitance of the capacitor, $I$ = current flowing between the terminals of the capacitor, and $t$ = time.
  
  The equation quoted above has the same form as that describing an ideal massless spring:
  
      $F=k\int v\,dt$, where:
  
  $F$ is the force applied between the two ends of the spring, $k$ is the stiffness, or spring constant (inverse of compliance) defined as force/displacement, and $v$ is the speed (or velocity) of one end of the spring, the other end being fixed.
  
  Note that in the electrical case, current (I) is defined as the rate of change of charge (Q) with respect to time:
  
      $I={\frac {dQ}{dt}}$
  
  While in the mechanical case, velocity (v) is defined as the rate of change of displacement (x) with respect to time:
  
      $v={\frac {dx}{dt}}$
  
  Thus, in this analogy:
  
  * Charge is represented by linear displacement,
  * current is represented by linear velocity,
  * voltage by force.
  * time by time
  
  Also, these analogous relationships apply:
  
  * energy. Energy stored in a spring is ${\frac {1}{2}}kx^{2}$, while energy stored in a capacitor is ${\frac {1}{2}}{\frac {Q^{2}}{C}}={\frac {1}{2}}CV^{2}$.
  * Electric power. Here there is an analogy between the mechanical concept of power as the scalar product of velocity and displacement, and the electrical concept that in an AC circuit with sinusoidal excitation, power is the product VI cos(φ) where φ is the phase angle between V and I, measured in RMS terms.
  * Electrical resistance (R) is analogous to mechanical viscous drag coefficient (force being proportional to velocity is analogous to Ohm's law - voltage being proportional to current).
  * Mass (m) is analogous to inductance (L), since F = m(dv/dt) while V = L(dI/dt). Thus an ideal inductor with inductance L is analogous to a rigid body with mass m.
  
  This analogy of the capacitor forms part of the more comprehensive impedance analogy of mechanical to electrical systems.
  
  