Friday, November 19, 2021

Resolution of Exact Differential Equations

Let's consider a first order differential equation in the form M(x,y) + N(x,y)dy/dx = 0 or M(x,y)dx + N(x,y)dy = 0. The equation is exact if Mₓ(x,y) = Nᵧ(x,y). For simplification we write Mₓ = Nᵧ. Mₓ is the partial derivative with respect to x. Nᵧ is the partial derivative with respect to y.

In this case there will be a function ψ(x,y) such that ψₓ = M and ψᵧ = N where the equation ψ(x,y) = c will implicitly define a function that will satisfy the original differential equation.

Example: Solve the differential equation 2xy - 9x² + (2y + x² + 1)dy/dx = 0 using the initial condition y(0) = -3

Let's see if the differential equation is exact. 

Let's write M = 2xy - 9x² and N = 2y + x² + 1

Let's take the partial derivatives of these equations:

Mₓ = 2x and Nᵧ = 2x

The differential equation is exact since Mₓ = Nᵧ

There will be a function ψ(x,y) such that ψₓ = M and ψᵧ = N where the equation ψ(x,y) = c will implicitly define a function that will satisfy the original differential equation.

Let's work with ψₓ = M to find ψ (pronounce psi)

Let's substitute M:

 ψₓ = 2xy - 9x²

dψ/dx = 2xy - 9x²

dψ = (2xy - 9x²)dx

∫dψ = ∫(2xy - 9x²)dx

Since we integrate with respect to x, y is constant. That's the reason why we write 2y before the integral sign.

ψ = 2y∫xdx - 9∫x²dx

ψ = (2y)(x²/2) - 9x³/3 + h(y).  Here the constant of integration is a function of y since we integrate with respect to y.

ψ =x²y - 3x³ + h(y)

Let's find h(y) using  ψᵧ = N

Let's find ψᵧ first by differentiating the function ψ with respect to y. Here x² is a constant

ψᵧ = x² + h'(y)

Substitute ψᵧ and N in the expression  ψᵧ = N

x² + h'(y) = 2y + x² + 1

h'(y) = 2y + 1

d[h(y)]/dy = 2y + 1

d[h(y)] = (2y + 1)dy

Let's integrate both sides:

∫ d[h(y)] = ∫ (2y + 1)dy

                   = 2y²/2 + y + k

h(y) =  y² + y + k

Let's substitute h(y) in ψ 

ψ = x²y - 3x³ + y² + y + k

Since ψ = c we have:

c =  x²y - 3x³ + y² + y + k

x²y - 3x³ + y² + y = c-k

Let's just use c and drop k:

x²y - 3x³ + y² + y = c

x²y - 3x³ + y² + y - c = 0

Let's arrange the equation to have a quadratic equation in y:

 y²  +  x²y + y - 3x³ -c = 0

 y²  + ( x² + 1)y - 3x³ - c = 0

Let's find c using the initial condition y(0) = -3

(-3)² + [(0)² + 1](-3) -3[(0)3] - c = 0

Solving this expression we find c = 6

Let's substitute c in the equation:

y²  + ( x² + 1)y - 3x³ - 6 = 0

This equation represents the implicit solution of the differential equation. Let's solve to find the explicit solution

Using the formulas to solve a quadratic equation we have:

y = - (x² + 1)- ⎷ (x² + 1)²-4( - 3x³ - 6 )/2. The whole expresion is under the radical and the expresion - (x² + 1)- ⎷ (x² + 1)²-4( - 3x³ - 6 ) has 2 for denominator. The symbol software I am using doesn't have the horizontal bar for radical and the vertical bar for fraction.

y =  - (x² + 1) + ⎷ (x² + 1)²-4( - 3x³ - 6 )/2

Let's develop the first value of y:

y = - (x² + 1) - ⎷x⁴ + 12x³ + 2x² + 25/2

The second value of y is:

y =  - (x² + 1) + ⎷x⁴ + 12x³ + 2x² + 25/2

Let's see which expression of y satisfies the initial condition:

Substitute y by -3 and x by 0 in the first value of y:

-3 = -[ (0)² + 1] -⎷(0)⁴ + 12(0)³ + 2(0)² + 25/2

-3 = -1 - ⎷25/2 = -1 - 5/2 = -6/2 = -3

The first value of y satisfies the initial condition

Let's see if the second value of y satisfies the initial condition:

Let's substitute x and y in the second value of y:

3 = -[ (0)² + 1] +⎷(0)⁴ + 12(0)³ + 2(0)² + 25/2

-3 = -1 + 5/2 = 4/2 = 2

It doesn't satisfy the initial condition. Therefore only the first value of y is the solution of the differential equation. The explicit solution is : y = - (x² + 1) - ⎷x⁴ + 12x³ + 2x² + 25/2.

The solution exists if x⁴ + 12x³ + 2x² + 25>0. To study the sign of this expression we will have to factorize it or we can graph it using a programmable calculator. The graph will allow to study the sign. Thus the domain of validity of the solution of the differential equation can be set. But here they didn't ask to find the domain of validity.

Practice. Solve the same differential equation without using the initial condition.

If you are interested in learning more about Calculus check Center For Integral Development

 





Saturday, November 6, 2021

Resolution of a differential equation of first order by the method of separable variables using a given condition

 The method is the same as in resolving a differential equation without a given condition. The only difference here is to find the value of k for the given condition.

Example: Solve the following differential equation and determine the interval of validity for the given solution: dy/dx = 6y²x     y(1) = 1/25

Solution

Let's separate the variables by multiplying both sides by 1/y²:

(1/y²) (dy/dx) = (1/y²) (6y²x)

                      =  6x

Multiply both sides by dx:

1/y² dy = 6xdx

Integrate both sides:

∫ 1/y² dy = ∫6xdx

y^-1/-1 = 6x²/2 + K

-1/y = 3x² + K

-1 = y(3x² + K)

y = -1 /3x² + K

Substitute y by 1/25 and x by 1:

1/25 = -1/[3(1) +K]

1/25 = -1/3 + K

3 + K = -25

k = -25-3 k = -28

Substituting k in y we have:

y = -1/3x²-28

y exists if 3x²-28 is different of zero.

Let's study the sign of  3x²-28. In order to do that we need to equal this expression to 0 and solve the equation.

3x²-28 = 0

By solving this equation we find x = -2⎷7/3 and x = 2⎷7/3

x -∞                        -2⎷7/3            2⎷7/3            +∞

y                 +            0         -           0         +


The intervals in which 3x²-28 is different of zero are:

 -∞ < x < -2⎷7/3   -2⎷7/3 < x < 2⎷7/3  and  2⎷7/3  < x < +∞

These determine the intervals of validity of the solution of the differential equation.