Differential Equations -- Important Stuff -- Mathematics III


Index

  1. Basic types of differential equations.
  2. 1. Linear Differential equation.
  3. 2. Exact equations
  4. Steps for finding integrating factor for a non-exact equation.
  5. 3. Bernoulli's equation
  6. Differential equations of first order but not first degree.
  7. 1. Equations solvable for p
  8. 2. Equations solvable for y
  9. 3. Equations solvable for x
  10. Clairaut's equation.
  11. Second Order Differential Equations
  12. Method 1 Using the inverse operator method.
  13. Method 2 Using the method of variation of parameters.

Note : If the equations on the website seem a bit to clumped up/clogged, please go to the resources section and download the PDF. It has better indentation.


Basic types of differential equations.

1. Linear Differential equation.

These can be of two types:

  1. dydx+P(x).y=Q(x)

To solve this, we find an integrating factor(I.F).

I.F=eP(x)dx

And we find the solution in terms of y as:

y.(I.F)=Q(x).(I.F)dx+C
  1. dxdy+P(y).x=Q(y)

Same stuff, just in terms of x this time.

I.F = $$I.F = e^{\int{P(y) dy}}$$

And we find the solution in terms of x as: $$\boxed{x . (I.F) = \int{Q(y) . (I.F) dy} + C}$$


2. Exact equations

An ordinary D.E of first order and first degree is of the form: $$\frac{dy}{dx} = F(x,y)$$ can be written as: Mdx+Ndy=0

This equation will be considered exact, if and only if

dMdy=dNdx

and the solution of the equation will be given by:

y=Mdx+(no x containing term from N)dy=constant

However there are times when :

dMdydNdx

and thus the equation by-default is not exact.

However we can convert it to an exact equation by finding an integrating factor and then multiplying it to the original equation.


Steps for finding integrating factor for a non-exact equation.

  1. If equation is of the form Mdx+Ndy=0
  2. Then check if dMdydNdx
  3. If true, then equation is non-exact.

Proceeding from here:

Case 1

  1. Check if both M and N are homogenous (degree of both the functions should be equal to zero).
  2. If case 1 is true, then check if both M and N have same degree
  3. If true, then check if Mx+Ny0 .
  4. If all of the above are true, then the I.F will be: $$\boxed{\frac{1}{Mx + Ny}}$$
  5. Multiply this I.F to the original equation to get the exact equation. Proceed solving from there as previously discussed.

Case 2 (M and N are both not homogenous/M is not homogenous/N is not homogenous)

  1. In this case, we proceed by finding : $$\frac{dM}{dy} - \frac{dN}{dx}$$
  2. Now we can either:
    1. Divide by M: If the result is a function of y and y only, then our I.F will be: $$\boxed{e^{-\int{g(y)dy}}}$$
    2. Divide by N: If the result is a function of x and x only, then our I.F will be: $$\boxed{e^{\int{f(x)dx}}}$$
  3. Multiply this I.F to the original equation to get the exact equation. Proceed solving from there as previously discussed.

For the alternate form

  1. If equation is of form $$\boxed{y(f(x,y)dx + xg(x,y)dy) = 0}$$
  2. M = y(f(x,y) , N = xg(x,y).
  3. If $$Mx-Ny \neq 0$$, then
  4. Integrating factor = $$\boxed{\frac{1}{Mx-Ny}}$$
  5. Multiply this I.F to the original equation to get the exact equation. Proceed solving from there as previously discussed.

3. Bernoulli's equation

It is of the form: $$y' + P(x)y = Q(x).y^{n}$$

Where $$y' = \frac{dy}{dx}$$ The easiest way to solve this is to reduce to a linear D.E.

We start by dividing both sides of the equation with yn to get :

yn.dydx+P(x).y1n=Q(x)

Let y1n = z .

Differentiate both sides w.r.t x.

yn.dydx=dzdx.1(1n)

Substitute back into the original equation, we get:

1(1n).dzdx+P(x).z=Q(x)

or $$\frac{dz}{dx} + (1-n) . P(x).z = Q(x).(1-n)$$

which can now be solved using the formula of a linear D.E

Pasted image 20241022142505.png


Differential equations of first order but not first degree.

1. Equations solvable for p

The required form for this type of equation should in the form of a quadratic equation:

ax2+bx+c=0

or

p2+p+c=0

Example explanation

Let's say we have the equation:

(dydx)2dydx6=0
  1. Set dydx=p
  2. So the equation becomes p2p6=0
  3. Solving the equation, we get roots as p = -2 and p = 3.
  4. Equation dydx to both the values separately and separate the variables
dy=3dx...(1)dy=2dx....(2)
  1. Integrate both the equations, we get:
y=3x+c...(3)$$or$$y3xc=0

and $$y = -2x + c$$
or $$y + 2x - c = 0 ...(4)$$
6. Finally we write both the equations in product form as :

(y3xc)(y+2xc)=0

2. Equations solvable for y

These are equations are always of yn where n is always equal to 1.

Steps to solve an equation for y.

  1. Write equation in terms of y, where y is isolated on the LHS.
  2. Differentiate L.H.S and R.H.S w.r.t x.
  3. Let dydx=p.
  4. Try to solve and reduce to a linear differential equation which will be $$\frac{dx}{dp} + P(p).x = Q(p)$$, by doing some substitution by setting some coefficient to z.
  5. Then solve the linear D.E to get a value in terms of x.
  6. Put that value back in the original given equation and you have the required solution.

Alternatively .

After step 3

  1. Try to solve the equation and get a value of in terms of p.
  2. Take only those terms which have dpdx associated with them.
  3. Now let's say you get, p=bx.dpdx, then separate the variables, x to one side, p to the other.
  4. Integrate both sides.
  5. Put the value of p back in the original equation.

Both methods are valid. Just depends which one is more applicable, based on the question.


Example explanation

Let's say we have an equation.

y2px+xp2=0

So rewriting the equation we get :

y=2pxxp2...(1)

So we differentiate both sides w.r.t x.

dydx=2pp2+2x.dpdx[1p]

Let dydx=p.

So we get the equation as :

p=2pp2+2x.dpdx[1p]

which can be further reduced down to:

(1p)(p+2x.dpdx)=0

Here we see that we already have a term with dpdx. So we don't need to reduce to a linear D.E at this point, we will just consider the second term.

Therefore, $$p = -2x.\frac{dp}{dx}$$

We separate the variables to get:

pdp=2xdx

Now we integrate both sides to get

2log(p)=log(x)+log(c)

which can be solved further down to get:

log(p2x)=log(c)

or $$p^{2} = \frac{c}{x}$$ or $$p = \sqrt{\frac{c}{x}}$$

Now we apply this value back in the original equation to get

y2cx.xx.cx=0

or , $$\boxed{y = 2\sqrt{c}.\sqrt{x} + c}$$


Example 2.

Let's say we have another equation: $$y = 2px - p^{2}$$
We apply the same rules as before to get

dydx=2x.dpdx+2p2p.dpdx

Let dydx=p.

and then by solving further we get an equation:

p+2(xp).dpdx=0

Now we could technically apply the alternative method and only choose the second term with dp/dx, but then separating variables would be a problem in this instance.

We would get $$2x{dp} - 2p dp = dx$$
Which now becomes troublesome to separate further.

So discarding this approach, we convert this equation into a linear D.E and then try to solve it.

Thus: $$p.\frac{dx}{dp} + 2x - 2p = 0$$

or $$\frac{dx}{dp} + 2x = 2$$

Solving this D.E we get a value in terms of x as :

x=2p3+cp2

Applying this value in original equation, we get the required solution in terms of y as:

y=p2+2cp1

3. Equations solvable for x

Here equations are given in the form of: $$x = f(y,p)$$
We generally solve this by differentiating both sides w.r.t y.

Therefore, $$\frac{dx}{dy} = F(y, p.\frac{dp}{dy})$$
If dydx=p then dxdy=1p

\therefore \frac{1}{p} = F(y, p.\frac{dp}{dy})$$, which is a **first order differential equation in terms of p and y** We will solve the equation further and then separate variables, integrate both sides to get a value in terms of y, put it back in original equation. --- ### Example explanation Let's say we have a given equation : $$x = y + p^{2}

We differentiate both sides w.r.t y.

dxdy=1+2p.dpdy

Or, $$\frac{1}{p} = 1 + 2p.\frac{dp}{dy}$$ Continuing to solve that we get :

1p2p2=dpdy

or

dy=2p21p.dp

or $$dy = [2p^{2} - 2p].dp$$

Integrating both sides, we got a solution in terms of y as: $$y = \frac{2p^{3}}{3} - p^{2} + c$$

So applying this value in our original equation, we get the required solution as:

x=2p33+c

Clairaut's equation.

A differential equation of the form

y=px+f(p)

is called Clairaut's form.

We will use the method of 2. Equations solvable for y to solve such equations.

So we differentiate the equation w.r.t x.

dydx=dpdx.[x+f(p)]+p

Let

dydx=pp=p+dpdx[x+f(p)]

or

dpdx.[x+f(p)]=0

Now we set both of the terms

dpdx=0...(1)

and

x+f(p)=0....(2)

From equation 1, we get p=c.
Thus,

y=cx+f(c)

which is the required general solution,

And from equation 2, we get :

x+f(c)=0

which is the singular solution in terms of x and y only.


Example explanation

  1. Solve $$(y-px)(p-1) = p$$ and obtain the singular solution.

We write it in Clairaut's form.

y=px+pp1

Now we differentiate both sides w.r.t x.

dydx=x.dpdx+p+(1(p1)2).dpdx

or

dydx=p+[x1(1p)2].dpdx

let $$\frac{dy}{dx} = p$$

Thus $$\frac{dp}{dx}.[x - \frac{1}{(1-p)^{2}}] = 0$$
Thus from $$\frac{dp}{dx} = 0$$, we get p=c.

Thus the required general solution is $$y = cx + \frac{c}{c-1}$$
And from $$[x - \frac{1}{(1-p)^{2}}] = 0$$
we get $$p = \frac{1 + \sqrt{x}}{\sqrt{x}}$$

We get singular solution as : $$y = [\frac{1 + \sqrt{x}}{\sqrt{x}}] . x + \frac{1 + \sqrt{x}}{\sqrt{x}}$$
or $$\boxed{y = 2\sqrt{x} + x + 1}$$


Second Order Differential Equations

A linear D.E of second order with constant coefficients is of the form:

d2dx2+P1.dydx+P2y=x

where P1 and P2 are constants and x is either a constant or a function of x itself.

We can solve this equation by first converting it to it's auxiliary form using the D-operator method.

Using the symbol D for the differential operator ddx , the above equation can be written as:

(D2+P1D+P2)y=X

Case 1: Solving homogenous part and finding C.F

Now if X is equal to zero then the equation becomes homogenous. To solve this we need to find a complementary factor or C.F.

Rules for finding Complementary factor, C.F

  1. Convert the given differential equation to it's auxiliary form. For example :
D2+D+1=0
  1. Solve the equation and find it's two roots m1 and m2.

  2. If the roots are different, the solution becomes:

    y=c1.em1.x+c2.em2.x

    where c1 and c2 are arbitrary constants.

  3. If the roots are same, i.e m1=m2, then the solution becomes:

    y=[c1+c2.x]emx
  4. If the roots are complex then, the solution becomes:

    y=eax[c1.cos(bx)+c2.sin(bx)]

    where m=a+bi , a=0 , b=1.

    or $$y = c_1.cos(bx) + c_2.sin(bx)$$


Case 2: Solving the non-homogenous part of the differential equation.

In the event of : $$(D^2 + P_1D + P_2)y = X$$, X is not a constant, there is a different way to find the solution to this equation.

Firstly we assume y=emx to be a trial solution to this equation and find C.F for the homogenous part, and we write it down as :

y=c1.y1(x)+c2.y2(x)

Now for the non-homogenous part, we need to find something called a Particular-Integral or P.I.

The entire general solution will be

y=C.F+P.I

There are two ways to find the P.I .

Method 1: Using the inverse operator method.

Let the non-homogenous D.E be :

(D2+a1.D+a2)y=f(x)

We do this by setting :

P.I=1(D2+a1.D+a2).f(x)

Solving (D2+a1.D+a2) , we get either (Da)n or (D+a) or (Da)(D+b)

Now a few important cases of f(x) and formulae for those cases.

  1. 1(Da).X=eax.X.eaxdx

  1. 1D.X=Xdx

  1. If you have :

    1(Dm1)(D+m2).X

    or

    1f(D).X

    , where m1 and m2 are roots of f(D), then we can get the P.I as follows:

    1f(D)=A1Dm1+A2Dm2

    which is solved as:

    1f(D).X=A1.em1.x.X.em1.x+A2.em2.x.X.em2.x

Now to find the values of A1 and A2.

Let's say we have a given expression

1(D1)(D+1).(x.e2x)

where m1=1 and m2=1.

We can write

1(D1)(D+1).(x.e2x)=[AD1+BD+1].(x.e2x)

or

1(D1)(D+1).(x.e2x)=A(D+1)+B(D1)(D1)(D+1).(x.e2x)

Cancelling out x.e2x from both sides and multiplying both sides by (D1)(D+1),

We get

1=A1D1+A2D+1

or

1=(A+B)D+(AB)

Now we compare both the coefficient of D and constant terms to the other side.

Since there is no D on the other side, (A+B)=0, and 1 is on the other side, so

AB=1=>A=B

From the two equations, we get A=12 , B=12


So we get our P.I as:

12.ex.x.e2x.exdx12ex.x.e2x.exdx

which, when solved completely, gives us:

e2x(3x4)

as the solution for this P.I.


  1. If you have :

    1f(D).X

    where X=P(x), is a polynomial function of some degree m, we get the P.I as:

    [f(D)]1.P(x)

    where we expand D till Dm and then solve P(x).


  1. If you have:

    1f(D).eax.V

    , where V is a function of a x. We can get the solution as:

    P.I=eax.1f(D+a).V

Method 2: Using the method of variation of parameters.

This method is used when it's difficult to apply the inverse operator method. However it is not a replacement for the inverse operator method. Both are valid, usage depends on the question.

So picking up from our C.F for equation: $$(D^2 + P_1D + P_2)y = X$$

where we assumed the C.F to be: $$y = c_1.y_1(x) + c_2.y_2(x)$$
Now, let us assume our P.I as $$y = u.y_1(x) + v.y_2(x)$$, where u and v are unknown functions of x

To find the value of u and v, we need to find the Wronskian Determinant, which is given by

W=|y1 y2y1 y2|

and $$u' =
\begin{vmatrix}
0 \ y_2 \
X \ y'_2 \
\end{vmatrix}
= \frac{-y_2.X}{W}$$

and

v=|y1 0y1 X|=y1.XW

or

u=y2.XW

and

v=y1.XW

Put these values back into your P.I equation to get the full general solution to the D.E