Home » Blog » Use the chain rule to rewrite and solve a given differential equation

Use the chain rule to rewrite and solve a given differential equation

(This exercise is in reference to Example 2 on page 314 of Apostol, though I’ve added some details to hopefully make it self-contained.)

The problem of finding the speed v of a falling body of mass m in a resisting medium with resistance k under the influence of the Earth’s gravitational attraction g is governed by the differential equation

    \[ v' + \frac{k}{m} v = g. \]

If s(t) is the distance the body has fallen at time t then v = s'(t). Use the chain rule to write

    \[ \frac{dv}{dt} = \frac{ds}{dt} \cdot \frac{dv}{ds} = v \frac{dv}{ds}. \]

Use this to show that the first-order differential equation for a falling body in a resisting medium can be rewritten as

    \[ \frac{ds}{dv} = \frac{bv}{c-v}, \]

where

    \[ b = \frac{m}{k}, \qquad c = \frac{gm}{k}. \]

Express s in terms of v by integrating this differential equation and check this result against the results derived in Example 2 which tell us that

    \[ s = \frac{mg}{k} t + \frac{gm^2}{k^2} \left( e^{-\frac{kt}{m}} - 1 \right). \]


Considering v as a function of s and applying the chain rule, we have

    \[ \frac{dv}{dt} = \frac{ds}{dt} \cdot \frac{dv}{ds} = v \cdot \frac{dv}{ds}. \]

Thus,

    \begin{align*}  v' + \frac{k}{m} v = g && \implies && \frac{m}{k} v' + v &= \frac{mg}{k} \\[9pt]  && \implies && bv' + b &= c \\[9pt]  && \implies && v' &= \frac{c-v}{b} \\[9pt]  && \implies && \frac{dv}{dt} &= \frac{c-v}{b} \\[9pt]  && \implies && v \cdot \frac{dv}{ds} &= \frac{c-v}{b} \\[9pt]  && \implies && \frac{ds}{dv} &= \frac{bv}{c-v}. \end{align*}

Then, integrating we have

    \begin{align*}  s &= \int \frac{bv}{c-v} \, dv  \\[9pt]  &= -bv - bc \log |c-v| + K, \end{align*}

for some constant K. Since s =0 when v = 0 we have that K = bc \log |c|. Furthermore we know,

    \[ v = \frac{mg}{k} \left( 1 - e^{-\frac{kt}{m}} \right) = c \left( 1 - e^{-\frac{t}{b}} \right). \]

Therefore,

    \begin{align*}  s &= -bc \left( 1 - e^{-\frac{t}{b}} \right) - bc \log \left| -ce^{-\frac{t}{b}} \right| + bc \log |c| \\[9pt]  &= (bc)e^{-\frac{t}{b}} - bc - bc \log |c| - bc \log e^{-\frac{t}{b}} + bc \log |c| \\[9pt]  &= (bc) e^{-\frac{t}{b}} - bc + ct \\[9pt]  &= \frac{gm^2}{k^2} e^{-\frac{kt}{m}} - \frac{gm^2}{k^2} + \frac{mg}{k} t \\[9pt]  &= \frac{mg}{k} t + \frac{gm^2}{k^2} \left( e^{-\frac{kt}{m}} - 1 \right). \end{align*}

This is the result we expected from Example 2.

Point out an error, ask a question, offer an alternative solution (to use Latex type [latexpage] at the top of your comment):