As I was studying about differential equation,then I got a question in my mind that we are taking out general solutions for a differential equation. Like for example - Q) $\frac{dy}{dx} = \left[\frac{1}{(1+x^3)}\right] – \left[\frac{3x^2}{1 + x^3}\right]y$

Solution: ⇒$\frac{dy}{dx} + [\frac{3x²}{1 + x²}] y = \frac{1}{1+x³} $

Comparing it with $\frac{dy}{dx} + Py = 0$, we get

$P =\frac{3x^2}{1 + x^3}$

$Q= \frac{1}{1 + x^3}$

Let’s figure out the integrating factor(I.F.) which is e^(∫Pdx)

$I.F = e^{\int \frac{3x^2}{(1+x³)}dx}=e^{\ln(1+x^3)}$

$I.F. = 1 + x^3$

Now, we can also rewrite the L.H.S as:

d(y × I.F)/dx,

⇒ d(y × (1 + x³)) dx = [1/(1 +x³)] × (1 + x³)

Integrating both the sides w. r. t. x, we get,

⇒ y × ( 1 + x³) = x

⇒ y = x/(1 + x³)

⇒ y = [x/(1 + x³) + C

But how do we get that differential equation (as given in the above question -> $\frac{dy}{dx} = \left[\frac{1}{(1+x^3)}\right] – \left[\frac{3x^2}{1 + x^3}\right]y$ from our real life ?

  • $\begingroup$ Most of the examples in calculus courses (including yours) are just made up so you can practice how to solve them. There are some "real life" examples here: olewitthansen.dk/Physics/differential_equations_of_physics.pdf $\endgroup$ – alephzero Jan 13 at 20:23
  • $\begingroup$ Start by recording real data, plotting, then finding an equation of the line... and combine that with dimensional analysis. $\endgroup$ – Solar Mike Jan 13 at 20:51

TL;DR: Real life equations are created by carefully observing relationships between different quantities, making simplification assumptions, and then abstracting them into a mathematical form.

I've posted below a few examples of how to derive DE's from "real life" examples for a range of sciences. Hopefully, they will give a glimpse of the process.

Example of Predator - Prey equation 1

The primary prey for the Canadian lynx is the snowshoe hare. We will denote the population of hares by $H(t)$ and the population of lynx by L(t), where t is the time measured in years. Assuming that :

  • If no lynx are present, we will assume that the hares reproduce at a rate proportional to their population and are not affected by overcrowding. That is, the hare population will grow exponentially,


where: a is a constant.

  • Since the lynx prey on the hares, we can argue that the rate at which the hares are consumed by the lynx is proportional to the rate at which the hares and lynx interact. Therefore some hares will be preyed upon and removed from the population. Thus, the equation that predicts the rate of change of the hare population becomes:

$$\frac{dH(t)}{dt}=aH(t)−bH(t) L(t)$$

where: a, b are constants for reproduction and interaction respectively

We are thinking of H(t) L(t) as the number of possible interactions between the lynx and the hare populations.

  • If there is no food, the lynx population will decline at a rate proportional to itself,

$$\frac{dL(t)}{dt}=\delta L(t)$$ where: δ is a constant for declining population (old age/starvation etc).

  • The lynx receive benefit from the hare population. The rate at which lynx are born is proportional to the number of hares that are eaten, and this is proportional to the rate at which the hares and lynx interact. Consequently, the growth rate of the lynx population can be described by:

$$\frac{dL(t)}{dt}=c H(t)L(t)−\delta L(t)$$

where c, δ are constants.

We now have a system of differential equations that describe how the two populations interact, $$\begin{cases} \frac{dH(t)}{dt}=aH(t)−bH(t) L(t)\\ \frac{dL(t)}{dt}=c H(t)L(t)−\delta L(t) \end{cases} $$

if you use $x(t)=H(t)$,$y(t)=L(t)$, the above set of equation can be rewritten in a more conventional form:

$$\begin{cases} \dot{x}=a\cdot x−b\cdot x\cdot y\\ \dot{y}=c \cdot x\cdot y−\delta \cdot y \end{cases} \rightarrow \begin{cases} \dot{x}= x \cdot (a−b\cdot y) \\ \dot{y}= (c \cdot x−\delta) \cdot y \end{cases} $$

Mechanical Harmonic Oscillator

Another typical example is the harmonic oscillator. Below is

enter image description here

Newtons second law of motion states that the acceleration of an object is directly proportional to the sum of all forces (net force) and inversely proportional to the mass.

$$\sum F = m a $$


  • m : mass
  • $a = \ddot{x}$: the acceleration along the horizontal axis.
  • $\sum F$ is the net force.

The force only force applied in this example is the spring force. The spring force is proportional to the displacement x, according to Hooke's Law. Therefore:

$$F_{spring} = -k\cdot x$$

Therefore, because $\sum F=-k x$, Newton's Law becomes $-kx = m a $, or (if you replace $a = \ddot{x}$) it more recognizable form for DE:

$$- kx = m \ddot{x}$$


$$m \ddot{x} + kx =0$$

RLC circuit

you can find a nice derivation for the RLC electrical circuit here

Starting from Kirchoff's law, using Ohm law and other basic relationships to derive:

$$L \frac{d^2 q}{dt^2}+ R\frac{d q}{dt} + \frac{1}{C} q(t) = V_0\sin(\omega t)$$

  • $\begingroup$ they are all nice example! the first example should mention the name "Lotka-Voltera" somewhere en.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equations $\endgroup$ – Black Mild Jan 29 at 18:18
  • 1
    $\begingroup$ You are right, the first example is better known as Lotka-Voltera. Initially I thought I had set the link correctly but instead it was pointing to one of the images. Now I've fixed it and its pointing to a page which mentions Lotka-Voltera. $\endgroup$ – NMech Jan 29 at 18:26

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.