Methods to solve First Order Differential Equations

What are First Order Differential Equations?

The highest derivative in a first order differential equation is the first derivative (i.e. dydx).

There’s no one size fits all method to solve all kinds of Differential Equations. There are many, and we have to learn through practice which method to use in a given scenario.

But let’s not put the cart before the horse. We should get to know the various methods at our disposal first.

Various Methods for solving First Order Differential Equations

Separation of Variables

In this method, we separate the variables and then integrate.

So, obviously we can use this method only if we can move all x and dx terms to one side of the equation, and all y and dy terms to the other side.

Q. Solve dydx=ky, where k is a constant.

Explanation:

Let’s separate the x and y variables.

dydx=ky

or y dy = k dx

Now, we can integrate both sides of the above equation separately.

∫ y dy = y22 + c
(where c is a constant)

∫ k dx = kx + d
(where c is a constant)

So, y22 + c = kx + d
or y22 = kx + m
(where m = d - c)

or y = 2(kx+m)


Typical method for solving First Order Linear Differential Equations

What are Linear Differential Equations?

Differential Equation is linear if no variable or derivative in it has exponent other than one (i.e. no y2, no y, no d2ydx2, etc). Also, there should be no functions in it, e.g. cos y, log y, etc.

A linear Differential Equation can only have y, and dydx.

General form of Linear Differential Equation: dydx + F(x) y = G(x)
For example, 2y + 5dydx = 3x

First order differential equation is one in which the highest derivative is the first derivative (i.e. dydx). It doesn’t matter what exponents/powers y or dydx have.

To solve First Order Linear Differential Equations, we can use a special method. Let’s see.

We create two new functions of x, called u and v, such that y = uv. Now, we just need to find the values of u and v.

Let’s see this method in detail.

Step 1: As y = uv.
So, dydx=udvdx+vdudx (from Product Rule of derivatives)

We will substitute this in the standard form of Linear Differential Equation, i.e. dydx + F(x) y = G(x)

Step 2: We separate the parts containing v.

Step 3: Put v term equal to 0.

Step 4: Solve the differential equation in u and x (that we got in the last step), using separation of variables method. Find the value of u.

Step 5: Place the value of u in the equation that we got in Step 2. Solve it to find v.

Step 6: Now, as we know both u and v, just find the value of y (as y = uv).

Things will become clearer if we see an example.

Q. Solve dydx=yx+3

Explanation:

We need to reconstruct the given equation in this form: dydx + F(x) y = G(x)

dydx=yx+3
or dydxyx=3

dydxyx means that at many point of the curve, slope - yx will be equal to 3.

Step 1: Substitute y = uv, and dydx=udvdx+vdudx in this equation.

dydxyx=3
or udvdx+vdudxuvx=3

Step 2: We separate the parts containing v.

udvdx+vdudxuvx=3
or udvdx+v(dudxux)=3

Step 3: Put v term equal to 0.

So, dudxux = 0
or dudx=ux

Step 4: Solve the differential equation in u and x (that we got in the last step), using separation of variables method. Find the value of u.

dudx=ux
or duu=dxx

Now, on integrating them, we get:
ln u = ln x + c (where c is a constant)
or ln u = ln x + ln k (where ln k is a constant)
or u = kx

Step 5: Place the value of u in the equation that we got in Step 2. Solve it to find v.

udvdx+v(dudxux)=3
or kxdvdx=3 (v term is already zero, so we can ignore that part.)

Now, solve it using separation of variables method.
kxdvdx=3
or kdv=3dxx

Now, on integrating them, we get:
kv = 3 ln x + ln c
or kv = ln (cx3)
or v = ln(cx3)k

Step 6: Now, as we know both u and v, just find the value of y (as y = uv).

y = uv = (kx) ln(cx3)k = x ln(cx3)


Homogeneous Equations

dydx = F (yx)

In such a case, we can replace yx by another variable (say v), and then solve it using Separation of Variables method.

So, v = yx (i.e. y = vx)

And dydx=d(vx)dx=vdxdx+xdvdx=v+xdvdx

Substitute these values in the original equation and solve for v. Now, put v = yx, and simplify.

Convert Non-linear differential equation into Linear differential equation

We can sometimes convert a non-linear Bernoulli differential equation into a linear differential equation. Then it becomes easy to solve it.

General form of Bernoulli Differential Equation: dydx+F(x)y=G(x)yn
(Where n can be any real number, except 0 or 1)

We can substitute u = y1n in the above equation, and thus turn it into a linear differential equation, which is easier to solve.

dydx+F(x)y=G(x)yn

  • When n = 0, then the above equation becomes a Linear Differential Equation.

  • When n = 1, the the above equation can easily be solved using Separation of Variables method.

In other cases, we can use the method given above.

Q. Solve dydx+x3y=x3y3

Explanation:

It’s a Bernoulli Differential Equation of the form: dydx+F(x)y=G(x)yn

Here, F(x) = x3, G(x) = x3, n = 3

So, u = y1n=y2
or y = u1/2

So, dydx=(1/2)u3/2dudx

Now, substitute the values of y and dydx in the original equation.
dydx+x3y=x3y3
or (1/2)u3/2dudx+x3u1/2=x3(u1/2)3

To simplify it, let us multiply the equation by -2 u3/2.

dudx2ux3=2x3

Now, we can easily solve this equation.

dudx=x3(2u2)
or duu1=2x3dx

Now, we can integrate both sides.
1u1du=2x3dx
or ln (u - 1) = 2 x44 + c (where c is a constant)
or ln (u - 1) = x42 + c
or u - 1 = e(x42+c)
or u = e(x42+c) + 1

As we know that y = u1/2, so we can substitute it in the above equation now.

Short Cut

We know that, Bernoulli Differential Equation: dydx+F(x)y=G(x)yn, where n ≠ 0 or 1

This can be rewritten as: dudx+(1n)uF(x)=(1n)G(x)

Solve it, and then just substitute y = u(1n1)


Exact Equations and Integrating Factors

This method can be used for a first-order differential equation.

In order for us to use this method, we need to find a function I(x, y) whose partial derivatives can be put in place of M and N in the following equation:

M(x, y)dx + N(x, y)dy = 0

That is, Ixdx+Iy dy = 0

Obviously, for this method to work, such a function I(x, y) should exist first of all.

Previous
Share on: