2
$\begingroup$

I am trying to solve a very simple ODE using a integrating factor, I have a solution but its trivial and I'm unsure how to find the general solution.

$$\tau \frac{dV}{dt} = E_0 - V$$ Where $E_0$ and $\tau$ are constants. I do the following

\begin{align} \tau \frac{dV}{dt} &= E_0 - V &\implies \\ \frac{dV}{dt} + \frac{V}{\tau} &= \frac{E_0}{\tau} \end{align}

Then the integrating factor is $e^{v(t)}$ where $v(t) = \int\frac{dt}{\tau} = \frac t\tau$ so the integrating factor is $e^{{t} / {\tau}}$. Then the solution is given by $$V(t) =e^{{-t} / {\tau}} \int e^{{t} / {\tau}} \frac{E_0}{\tau} =e^{{-t} / {\tau}} e^{{t} / {\tau}} E_0 = E_0 $$

This is a solution since $$\tau \frac{dE_0}{dt} = 0 = E_0 - E_0$$

But I was expecting a more general solution such as $$V = C + Ee^{-t / \tau}$$ without having to "guess" it, can somebody please give me some direction?

$\endgroup$
  • $\begingroup$ When integrating $\int e^{{t} / {\tau}} \frac{E_0}{\tau} \ dt$ be sure to put in an arbitrary constant. (This is one of the reasons the integration constant $+C$ is drummed into us early in our calculus education!) $\endgroup$ – Simon S Jun 8 '15 at 18:35
  • $\begingroup$ Wow that was such a school boy error. Thank you @SimonS . $\endgroup$ – HBeel Jun 8 '15 at 18:38
  • $\begingroup$ I assume that adding a constant when working out $v(t)$ won't add anything to the general solution and just make the calculation longer, so I can let the constant of integration $0$ there ? $\endgroup$ – HBeel Jun 8 '15 at 18:39
  • $\begingroup$ I'm not following you. See below. $\endgroup$ – Simon S Jun 8 '15 at 18:41
1
$\begingroup$

Following from above, the general solution is

$$V(t) =e^{{-t} / {\tau}} \int e^{{t} / {\tau}} \frac{E_0}{\tau} \ dt = E_0 e^{-t/\tau} \left( e^{t/\tau} + C' \right) = E_0 + Ce^{-t/\tau} $$

(where $C = E_0C'$)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.