I have been studying differential equations in RLC circuits: specifically I am looking at
a generator with fixed EMF $=E$,
a capacitor $C$,
an inductor with inductance $L$ and internal resistance $r$,
and a separate resistor $R$
with the elementary cases accounting for
$q$ (the charge on the capacitor),
$V_c$ its voltage or
$i$ the current flowing through the circuit
For example $$\ddot q+\frac{R+r}{L}\dot q+\frac{q}{LC}=E$$
I've been trying to find such a differential equation for the compound voltage
$$V_{L,r}=V_L +V_r=ri+L\frac{di}{dt}$$
which didn't seem to satisfy the criteria for a "regular ODE": $$\fbox{$\ddot V_{L,r}+\frac{R}{L}\dot V_{L,r}+\alpha V_{L,r}=\frac{\alpha r}{L}e^{-rt/L}\int e^{rt/L} \ V_{L,r} \ dt$}$$ with $\alpha=\frac{-Rr}{L^2}+\frac{1}{LC}$
I started with trying to express $i$ through $V_{L,r}$ as all relevant voltages are expressed in $i$ (resistor), $q$ (capacitor) and $\frac{di}{dt}$ ($V_{L,r}$). At first through this relation by applying regular ODE properties: $V_{L,r}=ri+L\frac{di}{dt} \rightarrow \fbox{$i=\frac{1}{L}e^{-rt/L} \int e^{rt/L} \ V_{L,r} \ dt$}$, and then replaced in : $E=V_{L,r}+Ri+\frac{q}{C} \rightarrow 0=\frac{dV_{L,r}}{dt}+R\frac{di}{dt}+\frac{i}{C}$ and obtained the aforementioned DE.
Should I be using any other physical relation?