2
$\begingroup$

Could someone help me to solve the following differential equation:

$\dot L(t) = nL(t) + b$ with $n>0$, $b>0$, $L(O)∈R$

$\dot L(t)=$ the time derivative of $L(t)$

$\endgroup$
4
  • $\begingroup$ By the way we know that L(t)=A*e^(nt) $\endgroup$
    – Sera
    Commented Nov 5, 2022 at 19:44
  • $\begingroup$ If you are going to be a regular participant in Economics SE it would be helpful to learn Latex. For dot notation to show a time derivative, for example, you need \$\dot{L(t)}\$ which yields $\dot{L(t)}$. $\endgroup$ Commented Nov 5, 2022 at 20:52
  • $\begingroup$ Thank you very much! Next time I will use the right notations :) $\endgroup$
    – Sera
    Commented Nov 7, 2022 at 9:20
  • $\begingroup$ what did you tried? $\endgroup$
    – 1muflon1
    Commented Nov 7, 2022 at 10:03

3 Answers 3

5
$\begingroup$

Note: Instead of "$L$", I'm going to name the function "$y$" since I'm more used to it.

For a function $y = y(t)$ we have the differential equation

\begin{equation} y' = ny + b \end{equation}

We put the equation in the form $y' + p(t)y = q(t)$ by subtracting $ny$ from both sides

\begin{equation} y'-ny=b \end{equation}

Note the equation now has the form $y' + p(t)y = q(t)$ with $p(t) = -n, q(t) = b$. We multiply the equation by the integrating factor $\mu = e^{\int p(t) dt} = e^{\int - n dt} = e^{-nt}$.

\begin{equation} e^{-nt} y' - n e^{-nt} y = b e^{-nt} \end{equation}

With this, we can write the left hand side as a derivative through the product rule

\begin{equation} \frac{d}{dt}[e^{-nt} y] = b e^{-nt} \end{equation}

Ïntegrating both sides

\begin{equation} e^{-nt} y = \int b e^{-nt} dt \end{equation}

\begin{equation} e^{-nt} y = - \frac{b}{n} e^{-nt} + C \end{equation}

Isolating $y,$ the general solution is

\begin{equation} y(t) = - \frac{b}{n} + C e^{nt} \end{equation}

Written in a more elegant form

\begin{equation} y(t) = C e^{nt} - \frac{b}{n} \end{equation}

If we have an initial condition $y(0) = y_{0},$ we can find the value of $C.$

Evaluating the equation in $t=0$

\begin{equation} y(0) = C e^{n \cdot 0} - \frac{b}{n} \end{equation}

\begin{equation} y_0 = C - \frac{b}{n} \end{equation}

Isolating $C$

\begin{equation} y_0 + \frac{b}{n} = C \end{equation}

Therefore, the solution to the initial value problem is

\begin{equation} y(t) = (y_0 + \frac{b}{n}) e^{nt} - \frac{b}{n} \end{equation}

$\endgroup$
3
$\begingroup$

A third possible approach, to make life easier, maybe.

The equation

$$\dot L(t) = nL(t) + b\;\;\;\; \;\;\;\;\;\;\;\; \;\;\;\;\;\;\;\; \;\;(1)$$

is a first order linear (non homogeneos) differential equation, that is an equation of the form:

$$y'+a(t)y=g(t)\;\;\;\; \;\;\;\; a\in \mathbb{R}\;\;\;\; \;\;\;\;\;\;(2)$$ where $g(t)$ and $a(t) \in C^0(I), I \subset \mathbb{R}$, are known functions.

For this kind of equations there is an explicit solution formula. The formula is:

$$y(t)=e^{-A(t)}[c_1+\int g(t) e^{A(t)}\, dt]\;\;\;\;\;\;\;\;(3)$$

where

$$A(t)=\int a(t)\, dt$$

anc $c_1$ is an arbitrary constant, hence formula $(3)$, varying $c_1$ in $\mathbb{R}$, gives infinite solutions of $(2)$, in this sense it is called the general solution.

We can apply immediatly this formula to find the solution of $(1)$, where

$$a(t) =-n, g(t)= b$$.

What's the better method to solve an equation is matter of tastes, if one prefers recalling the formula, at risk of making mistakes, or if one prefers to follow the whole procedure with the integrating factor.

Resorting to the initial condition we have then the particolar solution, as usual .

$\endgroup$
3
$\begingroup$

Alternative approach:

For a function $y = y(t)$ we have the differential equation

\begin{equation} y' = ny + b \end{equation}

To get the form of a linear differential equation, we subtract $ny$

\begin{equation} y' - ny = b \end{equation}

First we search for a solution to the corresponding homogeneous equation

\begin{equation} y' - n y = 0 \end{equation}

We start by searching for a solution of the form $y = e^{rt}$ and find $r$. We substitute this expression into the equation

\begin{equation} r e^{rt} - n e^{rt} = 0 \end{equation}

Factoring $e^{rt}$

\begin{equation} e^{rt} (r - n) = 0 \end{equation}

Since $e^{rt} \neq 0,$

\begin{equation} r - n = 0 \end{equation}

Isolating $r$

\begin{equation} r = n \end{equation}

Therefore the solution to the homogeneous equation is (Since each value of r gives a basis function for the homogeneous solution)

\begin{equation} y_{H} = C e^{nt} \end{equation}

Since the right hand side of the linear (second line) equation is a degree 0 polynomial, we search for a degree 0 polynomial for our particular solution $y_{P} = A$. Now we want to solve for $A$. Substituting this expression into the equation

\begin{equation} -nA = b \end{equation}

Isolating $A$

\begin{equation} A = - \frac{b}{n} \end{equation}

Therefore our particular solution is

\begin{equation} y_{P} = - \frac{b}{n} \end{equation}

We get the general solution as the following

\begin{equation} y(t) = y_{H} + y_{P} = C e^{nt} - \frac{b}{n} \end{equation}

If we have an initial condition $y(0) = y_{0}$, the value of $C$ can still be found as in my previous answer to get

\begin{equation} y(t) = (y_{0} + \frac{b}{n}) e^{nt} - \frac{b}{n} \end{equation}

Note: If the solution to the homogeneous equation happened to contain a constant term (making it a multiple of our original candidate $y_P$), we must have searched for a particular solution $\hat{y_{P}} = t y_{P} = At$, and still solve for $A$.

$\endgroup$
1
  • $\begingroup$ When I say "basis", I mean basis as in linear algebra $\endgroup$ Commented Nov 7, 2022 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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