You are on page 1of 520

MA1001: Differential Equations

S Vijayakumar
Indian Institute of Information Technology,
Design & Manufacturing, Kancheepuram
Evaluation (Tentative)

Quiz 1: 20

Quiz 2: 20

Assignments: 20

End Assessment: 40
Textbooks and References

Textbooks:
1. Simmons. G.F, Differential Equations, Tata McGraw Hill, 2003.
2. Kreyszig. E, Advanced Engineering Mathematics, Wiley, 2007.

References:
1. William. E. Boyce and R. C. Diprima, Elementary Differential Equations and Boundary
Value Problems, John Wiley, 8 Edn, 2004.
2. Ross. L.S, Differential Equations, Wiley, 2007.
3. Trench, W, Elementary Differential Equations, http://digitalcommons.trinity.edu/mono
Syllabus
First Order Equations.

Linear ordinary differential equations with constant coefficients, method of variation of


parameters, Linear systems of ordinary differential equations.

Power series solution of ordinary differential equations. Singular points.

Bessel and Legendre differential equations; properties of Bessel functions and Legendre
Polynomials.

Laplace transforms elementary properties of Laplace transforms, inversion by partial fractions,


convolution theorem and its applications to ordinary differential equations.

Fourier series.

Introduction to partial differential equations, wave equation, heat equation, diffusion equation
Differential Equations is the natural goal of elementary calculus and the most important part of
mathematics for understanding the physical sciences. - G.F. Simmons
The Definition
The Definition

An equation involving one dependent variable and its derivatives with respect to one or more
independent variables is called a differential equation.
Applications
Applications

I Physics
Applications

I Physics
I Chemistry
Applications

I Physics
I Chemistry
I Biology
Applications

I Physics
I Chemistry
I Biology
I Astronomy
Applications

I Physics
I Chemistry
I Biology
I Astronomy
I Engineering
Applications

I Physics
I Chemistry
I Biology
I Astronomy
I Engineering
I Economics
Why is It so Ubiquitous?

I Suppose y = f (x) is a given function.


Why is It so Ubiquitous?

I Suppose y = f (x) is a given function.


dy
I Then its derivative can be interpreted as
dx
Why is It so Ubiquitous?

I Suppose y = f (x) is a given function.


dy
I Then its derivative can be interpreted as the rate of change of y with respect to x.
dx
Why is It so Ubiquitous?

I Suppose y = f (x) is a given function.


dy
I Then its derivative can be interpreted as the rate of change of y with respect to x.
dx
I In many natural processes, the variables involved and their rates of change are related by
means of certain basic scientific principles governing the respective processes.
An Example

Newton’s second law: The acceleration a of a body of mass m is proportional to the total force
F acting on it,
An Example

Newton’s second law: The acceleration a of a body of mass m is proportional to the total force
F acting on it, with 1/m as the constant of proportionality.
An Example

Newton’s second law: The acceleration a of a body of mass m is proportional to the total force
F acting on it, with 1/m as the constant of proportionality. That is,
1
a= F.
m
An Example

Newton’s second law: The acceleration a of a body of mass m is proportional to the total force
F acting on it, with 1/m as the constant of proportionality. That is,
1
a= F.
m

Equivalently,

F = ma.
An Example..

Suppose, for example, that a body of mass m falls freely under the influence of gravity alone.
Then the force acting on the body is F = mg .
An Example..

Suppose, for example, that a body of mass m falls freely under the influence of gravity alone.
Then the force acting on the body is F = mg .

If y is the distance down to the body from a fixed height, then its velocity is v = dy /dt
An Example..

Suppose, for example, that a body of mass m falls freely under the influence of gravity alone.
Then the force acting on the body is F = mg .

If y is the distance down to the body from a fixed height, then its velocity is v = dy /dt and its
acceleration is a = dv /dt = d 2 y /dt 2 .
An Example..

Suppose, for example, that a body of mass m falls freely under the influence of gravity alone.
Then the force acting on the body is F = mg .

If y is the distance down to the body from a fixed height, then its velocity is v = dy /dt and its
acceleration is a = dv /dt = d 2 y /dt 2 .

So, by Newton’s second law, we then have

d 2y d 2y
m = mg or = g.
dt 2 dt 2
An Example..

If we assume that air exerts a resisting force proportional to the velocity, then the total force
dy
acting on the object is F = mg − k .
dt
An Example..

If we assume that air exerts a resisting force proportional to the velocity, then the total force
dy
acting on the object is F = mg − k .
dt

Then Newton’s second law (F = ma) implies that

d 2y dy
m = mg − k
dt 2 dt
.
More Examples
More Examples

dy
I = −ky
dt
More Examples

dy
I = −ky
dt
d 2y
I m 2 = −ky
dt
More Examples

dy
I = −ky
dt
d 2y
I m 2 = −ky
dt
dy 2
I + 2xy = e −x
dx
More Examples

dy
I = −ky
dt
d 2y
I m 2 = −ky
dt
dy 2
I + 2xy = e −x
dx
d 2y dy
I
2
−5 + 6y = 0
dx dx
More Examples

dy
I = −ky
dt
d 2y
I m 2 = −ky
dt
dy 2
I + 2xy = e −x
dx
d 2y dy
I
2
−5 + 6y = 0
dx dx
d 2y dy
I (1 − x 2 ) 2 − 2x + p(p + 1)y = 0
dx dx
More Examples

dy
I = −ky
dt
d 2y
I m 2 = −ky
dt
dy 2
I + 2xy = e −x
dx
d 2y dy
I
2
−5 + 6y = 0
dx dx
d 2y dy
I (1 − x 2 ) 2 − 2x + p(p + 1)y = 0
dx dx
2
d y dy
I x2 2 + x + (x 2 − p 2 )y = 0
dx dx
More Examples...
More Examples...

∂2w ∂2w ∂2w


I + + =0
∂x 2 ∂y 2 ∂z 2
More Examples...

∂2w ∂2w ∂2w


I + + =0
∂x 2 ∂y 2 ∂z 2
 2
∂2w ∂2w

2 ∂ w ∂w
I a + + =
∂x 2 ∂y 2 ∂z 2 ∂t
More Examples...

∂2w ∂2w ∂2w


I + + =0
∂x 2 ∂y 2 ∂z 2
 2
∂2w ∂2w

2 ∂ w ∂w
I a + + =
∂x 2 ∂y 2 ∂z 2 ∂t
 2
∂2w ∂2w ∂2w

∂ w
I a2 + + =
∂x 2 ∂y 2 ∂z 2 ∂t 2
More Examples...

∂2w ∂2w ∂2w


I + + =0
∂x 2 ∂y 2 ∂z 2
 2
∂2w ∂2w

2 ∂ w ∂w
I a + + =
∂x 2 ∂y 2 ∂z 2 ∂t
 2
∂2w ∂2w ∂2w

∂ w
I a2 + + =
∂x 2 ∂y 2 ∂z 2 ∂t 2

These equations are called the Laplace’s equation,


More Examples...

∂2w ∂2w ∂2w


I + + =0
∂x 2 ∂y 2 ∂z 2
 2
∂2w ∂2w

2 ∂ w ∂w
I a + + =
∂x 2 ∂y 2 ∂z 2 ∂t
 2
∂2w ∂2w ∂2w

∂ w
I a2 + + =
∂x 2 ∂y 2 ∂z 2 ∂t 2

These equations are called the Laplace’s equation, the heat equation,
More Examples...

∂2w ∂2w ∂2w


I + + =0
∂x 2 ∂y 2 ∂z 2
 2
∂2w ∂2w

2 ∂ w ∂w
I a + + =
∂x 2 ∂y 2 ∂z 2 ∂t
 2
∂2w ∂2w ∂2w

∂ w
I a2 + + =
∂x 2 ∂y 2 ∂z 2 ∂t 2

These equations are called the Laplace’s equation, the heat equation, and the wave equation,
respectively.
Definition
I An equation involving one dependent variable and its derivatives with respect to one or
more independent variables is called a differential equation.
Definition
I An equation involving one dependent variable and its derivatives with respect to one or
more independent variables is called a differential equation.
I A differential equation with only one independent variable is called an ordinary
differential equation (so that all the derivatives occurring in it are ordinary derivatives).
Definition
I An equation involving one dependent variable and its derivatives with respect to one or
more independent variables is called a differential equation.
I A differential equation with only one independent variable is called an ordinary
differential equation (so that all the derivatives occurring in it are ordinary derivatives).
I A differential equation with more than one independent variables is called a partial
differential equation (so that all the derivatives occurring in it are partial derivatives).
Ordinary Differential Equations

The general ordinary differential equation of the nth order is

dy d 2 y d ny
 
F x, y , , 2 , . . . , n = 0.
dx dx dx
Ordinary Differential Equations

The general ordinary differential equation of the nth order is

dy d 2 y d ny
 
F x, y , , 2 , . . . , n = 0.
dx dx dx

Or, using the prime notation for derivatives,


Ordinary Differential Equations

The general ordinary differential equation of the nth order is

dy d 2 y d ny
 
F x, y , , 2 , . . . , n = 0.
dx dx dx

Or, using the prime notation for derivatives, it is


 
F x, y , y 0 , y 00 , . . . , y (n) = 0.
Ordinary Differential Equations

The general ordinary differential equation of the nth order is

dy d 2 y d ny
 
F x, y , , 2 , . . . , n = 0.
dx dx dx

Or, using the prime notation for derivatives, it is


 
F x, y , y 0 , y 00 , . . . , y (n) = 0.

Question: How to check whether a function y = y (x) is a solution of the given differential
equation?
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why?
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation!


Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0:
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .

∴ LHS = y 00 − 5y 0 + 6y
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .

∴ LHS = y 00 − 5y 0 + 6y = 4e 2x − 5(2e 2x ) + 6(e 2x )


Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .

∴ LHS = y 00 − 5y 0 + 6y = 4e 2x − 5(2e 2x ) + 6(e 2x ) = 10e 2x − 10e 2x = 0 = RHS.


Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .

∴ LHS = y 00 − 5y 0 + 6y = 4e 2x − 5(2e 2x ) + 6(e 2x ) = 10e 2x − 10e 2x = 0 = RHS.

Similarly, y = e 3x is also a solution of this equation.


Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .

∴ LHS = y 00 − 5y 0 + 6y = 4e 2x − 5(2e 2x ) + 6(e 2x ) = 10e 2x − 10e 2x = 0 = RHS.

Similarly, y = e 3x is also a solution of this equation.

More generally,
y = c1 e 2x + c2 e 3x
is a solution of the equation for every choice of the constants c1 and c2 .
Example
y = e 2x is a solution of the second order equation

y 00 − 5y 0 + 6y = 0.

Why? Because it satisfies the equation! Substituting y = e 2x on the left-hand side of the
equations gives 0: Here we have y = e 2x , y 0 = 2e 2x and y 00 = 4e 2x .

∴ LHS = y 00 − 5y 0 + 6y = 4e 2x − 5(2e 2x ) + 6(e 2x ) = 10e 2x − 10e 2x = 0 = RHS.

Similarly, y = e 3x is also a solution of this equation.

More generally,
y = c1 e 2x + c2 e 3x
is a solution of the equation for every choice of the constants c1 and c2 . (Prove!)
Homework

Prove that
xy = log y + c
is a solution of
dy y2
=
dx 1 − xy
for every value of the constant c.
Homework

Prove that
xy = log y + c
is a solution of
dy y2
=
dx 1 − xy
for every value of the constant c.

Hint: Differentiate xy = log y + c with respect to x and rearrange the terms.


Note

A solution of a differential equation usually contains one or more arbitrary constants, equal in
number to the order of the equation.
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
(e) y = c1 e 2x + c2 e −2x y 00 − 4y = 0
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
(e) y = c1 e 2x + c2 e −2x y 00 − 4y = 0
(f) y = c1 sin 2x + c2 cos 2x y 00 + 4y = 0
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
(e) y = c1 e 2x + c2 e −2x y 00 − 4y = 0
(f) y = c1 sin 2x + c2 cos 2x y 00 + 4y = 0 p
(g) y = sin−1 xy xy 0 + y = y 0 1 − x 2 y 2
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
(e) y = c1 e 2x + c2 e −2x y 00 − 4y = 0
(f) y = c1 sin 2x + c2 cos 2x y 00 + 4y = 0 p
(g) y = sin−1 xy xy 0 + y = y 0 1 − x 2 y 2
(h) y = ce y /x y 0 = y 2 /(xy − x 2 )
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
(e) y = c1 e 2x + c2 e −2x y 00 − 4y = 0
(f) y = c1 sin 2x + c2 cos 2x y 00 + 4y = 0 p
(g) y = sin−1 xy xy 0 + y = y 0 1 − x 2 y 2
(h) y = ce y /x y 0 = y 2 /(xy − x 2 )
xy
(i) x 2 = 2y 2 log y y0 = 2
x + y2
Homework

Verify that the following functions (explicit or implicit) are solutions of the corresponding
differential equations:

(a) y = x2 + c y 0 = 2x
(b) y = cx 2 xy 0 = 2y
(c) y 2 = e 2x + c yy 0 = e 2x
(d) y = ce kx y 0 = ky
(e) y = c1 e 2x + c2 e −2x y 00 − 4y = 0
(f) y = c1 sin 2x + c2 cos 2x y 00 + 4y = 0 p
(g) y = sin−1 xy xy 0 + y = y 0 1 − x 2 y 2
(h) y = ce y /x y 0 = y 2 /(xy − x 2 )
xy
(i) x 2 = 2y 2 log y y0 = 2
x + y2
(j) x + y = tan−1 y 1 + y 2 + y 2y 0 = 0
Finding Solutions of Differential Equations
Equations of the form:
Finding Solutions of Differential Equations
Equations of the form:
dy
= f (x).
dx
Finding Solutions of Differential Equations
Equations of the form:
dy
= f (x).
dx

Solution: Just integrate!


Finding Solutions of Differential Equations
Equations of the form:
dy
= f (x).
dx

Solution: Just integrate! Z


y= f (x)dx + c.
Finding Solutions of Differential Equations
Equations of the form:
dy
= f (x).
dx

Solution: Just integrate! Z


y= f (x)dx + c.

Example: Find the general solution of the differential equation y 0 = e 3x − x.


Finding Solutions of Differential Equations
Equations of the form:
dy
= f (x).
dx

Solution: Just integrate! Z


y= f (x)dx + c.

Example: Find the general solution of the differential equation y 0 = e 3x − x.

Solution: Here the differential equation is of the form y 0 = f (x) with f (x) = e 3x − x.
So, the solution is Z
y = (e 3x − x)dx + c.
Finding Solutions of Differential Equations
Equations of the form:
dy
= f (x).
dx

Solution: Just integrate! Z


y= f (x)dx + c.

Example: Find the general solution of the differential equation y 0 = e 3x − x.

Solution: Here the differential equation is of the form y 0 = f (x) with f (x) = e 3x − x.
So, the solution is Z
y = (e 3x − x)dx + c.

That is,
y = e 3x /3 − x 2 /2 + c,
where c is an arbitrary constant.
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Z
2
e −x dx
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Z Z
−x 2 sin x
e dx and dx
x
.
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Z Z
−x 2 sin x
e dx and dx
x
.
dy
So, finding the solution even in the simplest case, = f (x), may not be easy.
dx
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Z Z
−x 2 sin x
e dx and dx
x
.
dy
So, finding the solution even in the simplest case, = f (x), may not be easy.
dx

Nevertheless, as long as a function f (x) is continuous over the range of integration, we have
Z x
y= f (t)dt + c
x0

defined
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Z Z
−x 2 sin x
e dx and dx
x
.
dy
So, finding the solution even in the simplest case, = f (x), may not be easy.
dx

Nevertheless, as long as a function f (x) is continuous over the range of integration, we have
Z x
y= f (t)dt + c
x0

defined and satisfies


dy
= f (x).
dx
Note
R
In some cases, finding f (x)dx will not be possible (in terms of elementary functions); e.g.,
Z Z
−x 2 sin x
e dx and dx
x
.
dy
So, finding the solution even in the simplest case, = f (x), may not be easy.
dx

Nevertheless, as long as a function f (x) is continuous over the range of integration, we have
Z x
y= f (t)dt + c
x0

defined and satisfies


dy
= f (x).
dx

This is a part of the fundamental theorem of calculus.


Homework

Find the general solution of each of the following differential equations:


Homework

Find the general solution of each of the following differential equations:

(a) xy 0 = 1
Homework

Find the general solution of each of the following differential equations:

(a) xy 0 = 1
2
(b) y 0 = xe x
Homework

Find the general solution of each of the following differential equations:

(a) xy 0 = 1
2
(b) y 0 = xe x
(c) y 0 = sin−1 x
Homework

Find the general solution of each of the following differential equations:

(a) xy 0 = 1
2
(b) y 0 = xe x
(c) y 0 = sin−1 x
(d) (1 + x 3 )y 0 = x
Homework

Find the general solution of each of the following differential equations:

(a) xy 0 = 1
2
(b) y 0 = xe x
(c) y 0 = sin−1 x
(d) (1 + x 3 )y 0 = x
(e) (1 + x 2 )y 0 = tan−1 x
Separable Equations

These are equations of the form


dy
= f (x)g (y ).
dx
Separable Equations

These are equations of the form


dy
= f (x)g (y ).
dx

Such an equation can be rewritten in the form


dy
= f (x)dx.
g (y )
Separable Equations

These are equations of the form


dy
= f (x)g (y ).
dx

Such an equation can be rewritten in the form


dy
= f (x)dx.
g (y )

The solution is now obtained by simply integrating both the sides:


Z Z
dy
= f (x)dx + c.
g (y )
Separable Equations

These are equations of the form


dy
= f (x)g (y ).
dx

Such an equation can be rewritten in the form


dy
= f (x)dx.
g (y )

The solution is now obtained by simply integrating both the sides:


Z Z
dy
= f (x)dx + c.
g (y )

Note: Equations which can be solved in this manner are called separable equations.
Example
Solve xyy 0 = y − 1.
Example
Solve xyy 0 = y − 1.

Solution: The given equation is


dy
xy = y − 1.
dx
Example
Solve xyy 0 = y − 1.

Solution: The given equation is


dy
xy = y − 1.
dx

This can be rewritten as


y dx
dy = .
y −1 x
Example
Solve xyy 0 = y − 1.

Solution: The given equation is


dy
xy = y − 1.
dx

This can be rewritten as


y dx
dy = .
y −1 x

We now obtain the solution by simply integrating both sides:


Z Z
y dx
dy = + c.
y −1 x
Example
Solve xyy 0 = y − 1.

Solution: The given equation is


dy
xy = y − 1.
dx

This can be rewritten as


y dx
dy = .
y −1 x

We now obtain the solution by simply integrating both sides:


Z Z
y dx
dy = + c.
y −1 x

Thus the solution is

y + log(y − 1) = log x + c1
Example
Solve xyy 0 = y − 1.

Solution: The given equation is


dy
xy = y − 1.
dx

This can be rewritten as


y dx
dy = .
y −1 x

We now obtain the solution by simply integrating both sides:


Z Z
y dx
dy = + c.
y −1 x

Thus the solution is

y + log(y − 1) = log x + c1 or (y − 1)e y = cx.


Homework

Find the general solution of each of the following differential equations:


Homework

Find the general solution of each of the following differential equations:

(a) x 5 y 0 + y 5 = 0
Homework

Find the general solution of each of the following differential equations:

(a) x 5 y 0 + y 5 = 0
(b) xy 0 = (1 − x 2 ) tan y
Homework

Find the general solution of each of the following differential equations:

(a) x 5 y 0 + y 5 = 0
(b) xy 0 = (1 − x 2 ) tan y
(c) y 0 = 2xy
Homework

Find the general solution of each of the following differential equations:

(a) x 5 y 0 + y 5 = 0
(b) xy 0 = (1 − x 2 ) tan y
(c) y 0 = 2xy
(d) (1 + x 2 )dy + (1 + y 2 )dx = 0
Homework

Find the general solution of each of the following differential equations:

(a) x 5 y 0 + y 5 = 0
(b) xy 0 = (1 − x 2 ) tan y
(c) y 0 = 2xy
(d) (1 + x 2 )dy + (1 + y 2 )dx = 0
(e) y log ydx − xdy = 0
Homework

Find the general solution of each of the following differential equations:

(a) x 5 y 0 + y 5 = 0
(b) xy 0 = (1 − x 2 ) tan y
(c) y 0 = 2xy
(d) (1 + x 2 )dy + (1 + y 2 )dx = 0
(e) y log ydx − xdy = 0
First Order Equations: A Quick Summary
First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx
First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx

I This equation cannot be solved in general,


First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx

dy
I This equation cannot be solved in general, even in the simplest case = f (x).
dx
First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx

dy
I This equation cannot be solved in general, even in the simplest case = f (x).
dx
I There are first order equations with no real-valued solutions:
First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx

dy
I This equation cannot be solved in general, even in the simplest case = f (x).
dx
I There are first order equations with no real-valued solutions: e.g.,
 2
dy
+ 1 = 0.
dx
First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx

dy
I This equation cannot be solved in general, even in the simplest case = f (x).
dx
I There are first order equations with no real-valued solutions: e.g.,
 2
dy
+ 1 = 0.
dx

I There are equations with the single solution y = 0 (not even with an arbitrary constant):
First Order Equations: A Quick Summary
I The general first order equation is
 
dy
F x, y , = 0.
dx

dy
I This equation cannot be solved in general, even in the simplest case = f (x).
dx
I There are first order equations with no real-valued solutions: e.g.,
 2
dy
+ 1 = 0.
dx

I There are equations with the single solution y = 0 (not even with an arbitrary constant):
e.g.,
 2
dy
+ y 2 = 0.
dx
Gaining Some Understanding of the Solutions
Gaining Some Understanding of the Solutions

 
dy
I Suppose the first order equation F x, y , = 0 can be written in the form
dx

dy
= f (x, y ).
dx
Gaining Some Understanding of the Solutions

 
dy
I Suppose the first order equation F x, y , = 0 can be written in the form
dx

dy
= f (x, y ).
dx

dy
I What is the geometric meaning of a solution of = f (x, y )?
dx
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R.
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R. Then the number
 
dy
= f (x0 , y0 )
dx P0
determines a direction at P0 .
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R. Then the number
 
dy
= f (x0 , y0 )
dx P0
determines a direction at P0 .
I Let P1 = (x1 , y1 ) be a point near P0 in this direction.
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R. Then the number
 
dy
= f (x0 , y0 )
dx P0
determines a direction at P0 .
I Let P1 = (x1 , y1 ) be a point near P0 in this direction. Then the number
 
dy
= f (x1 , y1 )
dx P1
determines a new direction at P1 .
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R. Then the number
 
dy
= f (x0 , y0 )
dx P0
determines a direction at P0 .
I Let P1 = (x1 , y1 ) be a point near P0 in this direction. Then the number
 
dy
= f (x1 , y1 )
dx P1
determines a new direction at P1 .
I Next let P2 = (x2 , y2 ) be a point near P1 in this new direction
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R. Then the number
 
dy
= f (x0 , y0 )
dx P0
determines a direction at P0 .
I Let P1 = (x1 , y1 ) be a point near P0 in this direction. Then the number
 
dy
= f (x1 , y1 )
dx P1
determines a new direction at P1 .
I Next let P2 = (x2 , y2 ) be a point near P1 in this new direction and let
 
dy
= f (x2 , y2 )
dx P2
be yet another new direction at P2 .
dy
Gaining Some Understanding of the Solutions of = f (x, y )
dx
I Suppose that f (x, y ) is continuous throughout some rectangle R in the xy -plane.
I Let P0 = (x0 , y0 ) be a point in the region R. Then the number
 
dy
= f (x0 , y0 )
dx P0
determines a direction at P0 .
I Let P1 = (x1 , y1 ) be a point near P0 in this direction. Then the number
 
dy
= f (x1 , y1 )
dx P1
determines a new direction at P1 .
I Next let P2 = (x2 , y2 ) be a point near P1 in this new direction and let
 
dy
= f (x2 , y2 )
dx P2
be yet another new direction at P2 .
I Continuing like this we obtain a broken line.
Gaining Some Understanding of the Solutions...
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0

P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0

P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0

P1
P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
 
dy
= f (x1 , y1 )
dx P1
P1
P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
 
dy
= f (x1 , y1 )
dx P1
P1
P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
 
P2 dy
= f (x1 , y1 )
dx P1
P1
P0

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
 
P2 dy
= f (x1 , y1 )
dx P1
P1
P0  
dy
= f (x2 , y2 )
dx P2

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
 
P2 dy
= f (x1 , y1 )
dx P1
P1
P0  
dy
= f (x2 , y2 )
dx P2

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
P3  
P2 dy
= f (x1 , y1 )
dx P1
P1
P0  
dy
= f (x2 , y2 )
dx P2

x
Gaining Some Understanding of the Solutions...
y dy
= f (x, y )
dx

R
 
dy
= f (x0 , y0 )
dx P0
P3  
P2 dy
= f (x1 , y1 )
dx P1
P1
P0  
dy
= f (x2 , y2 )
dx P2

x
Gaining Some Understanding of the Solutions...
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another


Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
dy
I This curve is a solution of the equation = f (x, y ).
dx
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
dy
I This curve is a solution of the equation = f (x, y ).
dx
I For each point (x, y ) on this curve, the slope is f (x, y ).
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
dy
I This curve is a solution of the equation = f (x, y ).
dx
I For each point (x, y ) on this curve, the slope is f (x, y ).
dy
I This is precisely what the differential equation = f (x, y ) demands.
dx
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
dy
I This curve is a solution of the equation = f (x, y ).
dx
I For each point (x, y ) on this curve, the slope is f (x, y ).
dy
I This is precisely what the differential equation = f (x, y ) demands.
dx
I Indeed through each point in R, there passes a unique solution curve
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
dy
I This curve is a solution of the equation = f (x, y ).
dx
I For each point (x, y ) on this curve, the slope is f (x, y ).
dy
I This is precisely what the differential equation = f (x, y ) demands.
dx
I Indeed through each point in R, there passes a unique solution curve (also called the
integral curve)
Gaining Some Understanding of the Solutions...

I Imagine that these successive points move closer to one another and become more
numerous.
I Then the broken line approaches a smooth curve through the initial point P0 .
dy
I This curve is a solution of the equation = f (x, y ).
dx
I For each point (x, y ) on this curve, the slope is f (x, y ).
dy
I This is precisely what the differential equation = f (x, y ) demands.
dx
I Indeed through each point in R, there passes a unique solution curve (also called the
integral curve) of the differential equation.
Theorem (Picard’s Theorem)
If f (x, y ) and ∂f /∂y are continuous functions on a closed rectangle R,
Theorem (Picard’s Theorem)
If f (x, y ) and ∂f /∂y are continuous functions on a closed rectangle R, then through each
point (x0 , y0 ) in the interior of R there passes a unique integral curve of the equation
dy /dx = f (x, y ).
Theorem (Picard’s Theorem)
If f (x, y ) and ∂f /∂y are continuous functions on a closed rectangle R, then through each
point (x0 , y0 ) in the interior of R there passes a unique integral curve of the equation
dy /dx = f (x, y ).

Note: If we consider a fixed x0 in this theorem, then the integral curve that passes through
(x0 , y0 ) is fully determined by the choice of y0 .
Theorem (Picard’s Theorem)
If f (x, y ) and ∂f /∂y are continuous functions on a closed rectangle R, then through each
point (x0 , y0 ) in the interior of R there passes a unique integral curve of the equation
dy /dx = f (x, y ).

Note: If we consider a fixed x0 in this theorem, then the integral curve that passes through
(x0 , y0 ) is fully determined by the choice of y0 . Thus the integral curves of the equation
constitute a one-parameter family of curves.
Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.
Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.

Solution: The general solution of this differential equation is


Z
y = xe x dx + c.
Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.

Solution: The general solution of this differential equation is


Z
y = xe x dx + c.

That is,
y = (x − 1)e x + c.
Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.

Solution: The general solution of this differential equation is


Z
y = xe x dx + c.

That is,
y = (x − 1)e x + c.

Substituting x = 1 in this solution gives y = c.


Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.

Solution: The general solution of this differential equation is


Z
y = xe x dx + c.

That is,
y = (x − 1)e x + c.

Substituting x = 1 in this solution gives y = c. But we need y = 3.


Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.

Solution: The general solution of this differential equation is


Z
y = xe x dx + c.

That is,
y = (x − 1)e x + c.

Substituting x = 1 in this solution gives y = c. But we need y = 3. So, we must take c = 3.


Example

For the differential equation y 0 = xe x , find the particular solution for which y = 3 when x = 1.

Solution: The general solution of this differential equation is


Z
y = xe x dx + c.

That is,
y = (x − 1)e x + c.

Substituting x = 1 in this solution gives y = c. But we need y = 3. So, we must take c = 3.

Thus the required solution is


y = (x − 1)e x + 3.
Homework
Homework

For each of the following differential equations, find the particular solution that satisfies the
given initial condition:
Homework

For each of the following differential equations, find the particular solution that satisfies the
given initial condition:

(a) y 0 = 2 sin x cos x, y = 1 when x = 0.


Homework

For each of the following differential equations, find the particular solution that satisfies the
given initial condition:

(a) y 0 = 2 sin x cos x, y = 1 when x = 0.


(b) y 0 = log x, y = 0 when x = e.
Homework

For each of the following differential equations, find the particular solution that satisfies the
given initial condition:

(a) y 0 = 2 sin x cos x, y = 1 when x = 0.


(b) y 0 = log x, y = 0 when x = e.
(c) x(x 2 − 4)y 0 = 1, y = 0 when x = 1.
Homework

For each of the following differential equations, find the particular solution that satisfies the
given initial condition:

(a) y 0 = 2 sin x cos x, y = 1 when x = 0.


(b) y 0 = log x, y = 0 when x = e.
(c) x(x 2 − 4)y 0 = 1, y = 0 when x = 1.
(d) (x + 1)(x 2 + 1)y 0 = 2x 2 + x, y = 1 when x = 0.
Homework

For each of the following differential equations, find the integral curve that passes through the
given point:
Homework

For each of the following differential equations, find the integral curve that passes through the
given point:

(a) y 0 = e 3x−2y , (0, 0).


Homework

For each of the following differential equations, find the integral curve that passes through the
given point:

(a) y 0 = e 3x−2y , (0, 0).


(b) xdy = (2x 2 + 1)dx, (1, 1).
Homework

For each of the following differential equations, find the integral curve that passes through the
given point:

(a) y 0 = e 3x−2y , (0, 0).


(b) xdy = (2x 2 + 1)dx, (1, 1).
(c) 3 cos 3x cos 2y dx − 2 sin 3x sin 2y dy = 0, (π/12, π/8).
Homework

For each of the following differential equations, find the integral curve that passes through the
given point:

(a) y 0 = e 3x−2y , (0, 0).


(b) xdy = (2x 2 + 1)dx, (1, 1).
(c) 3 cos 3x cos 2y dx − 2 sin 3x sin 2y dy = 0, (π/12, π/8).
(d) y 0 = e x cos x, (0, 0).
Families of Curves. Orthogonal Trajectories
Families of Curves. Orthogonal Trajectories

I The general solution of a first order equation normally contains one arbitrary constant,
Families of Curves. Orthogonal Trajectories

I The general solution of a first order equation normally contains one arbitrary constant,
called a parameter.
Families of Curves. Orthogonal Trajectories

I The general solution of a first order equation normally contains one arbitrary constant,
called a parameter.
I Assigning various values to this parameter leads to a one-parameter family of curves.
Families of Curves. Orthogonal Trajectories

I The general solution of a first order equation normally contains one arbitrary constant,
called a parameter.
I Assigning various values to this parameter leads to a one-parameter family of curves.
Each curve in the family is a particular solution of the differential equation.
Families of Curves. Orthogonal Trajectories

I The general solution of a first order equation normally contains one arbitrary constant,
called a parameter.
I Assigning various values to this parameter leads to a one-parameter family of curves.
Each curve in the family is a particular solution of the differential equation.
I The converse also holds true:
Families of Curves. Orthogonal Trajectories

I The general solution of a first order equation normally contains one arbitrary constant,
called a parameter.
I Assigning various values to this parameter leads to a one-parameter family of curves.
Each curve in the family is a particular solution of the differential equation.
I The converse also holds true: the curves of any one-parameter family are solution curves
of a differential equation.
Families of Curves to Differential Equations
Families of Curves to Differential Equations
I Consider a one-parameter family of curves

f (x, y , c) = 0.
Families of Curves to Differential Equations
I Consider a one-parameter family of curves

f (x, y , c) = 0.

I Differentiate this equation implicitly with respect to x to get a relation of the form
 
dy
g x, y , , c = 0.
dx
Families of Curves to Differential Equations
I Consider a one-parameter family of curves

f (x, y , c) = 0.

I Differentiate this equation implicitly with respect to x to get a relation of the form
 
dy
g x, y , , c = 0.
dx

I Eliminate the parameter c between the above equations to obtain


 
dy
F x, y , =0
dx
Families of Curves to Differential Equations
I Consider a one-parameter family of curves

f (x, y , c) = 0.

I Differentiate this equation implicitly with respect to x to get a relation of the form
 
dy
g x, y , , c = 0.
dx

I Eliminate the parameter c between the above equations to obtain


 
dy
F x, y , =0
dx

as the differential equation of the given one-parameter family of curves.


Example

Find the differential equation of the family of straight lines

y = c.
Example

Find the differential equation of the family of straight lines

y = c.

Solution: Differentiating the equation of the given family of straight lines with respect to x
gives
dy
= 0.
dx
Example

Find the differential equation of the family of straight lines

y = c.

Solution: Differentiating the equation of the given family of straight lines with respect to x
gives
dy
= 0.
dx

Since c is already absent in this differential equation, there is no need of eliminating it.
Example

Find the differential equation of the family of straight lines

y = c.

Solution: Differentiating the equation of the given family of straight lines with respect to x
gives
dy
= 0.
dx

Since c is already absent in this differential equation, there is no need of eliminating it.

Hence it is the desired differential equation (as can be easily verified).


Example

Find the differential equation of the family of straight lines

y = cx.
Example

Find the differential equation of the family of straight lines

y = cx.

Solution: Differentiating the equation of the given family of straight lines with respect to x
gives
dy
= c.
dx
Example

Find the differential equation of the family of straight lines

y = cx.

Solution: Differentiating the equation of the given family of straight lines with respect to x
gives
dy
= c.
dx

Eliminating c between the above equations gives the required differential equation:
dy dy y
x =y or = .
dx dx x
Example
Find the differential equation of the family of concentric circles

x 2 + y 2 = c 2.
Example
Find the differential equation of the family of concentric circles

x 2 + y 2 = c 2.

Solution: On differentiation with respect to x, the equation of the family becomes


dy
2x + 2y = 0.
dx
Example
Find the differential equation of the family of concentric circles

x 2 + y 2 = c 2.

Solution: On differentiation with respect to x, the equation of the family becomes


dy
2x + 2y = 0.
dx

Since c is already absent in this differential equation, there is no need to eliminate it.
Example
Find the differential equation of the family of concentric circles

x 2 + y 2 = c 2.

Solution: On differentiation with respect to x, the equation of the family becomes


dy
2x + 2y = 0.
dx

Since c is already absent in this differential equation, there is no need to eliminate it.

Hence the differential equation of this family is


dy
x +y = 0.
dx
Example
Find the differential equation of the family of circles

x 2 + y 2 = 2cx.

Solution: The given family of curves consists of all circles that are tangent to the y -axis at the
origin.
On differentiation with respect to x, the given equation becomes
dy dy
2x + 2y = 2c or x +y = c.
dx dx
Eliminating c between the given and above equations, we obtain the differentiable equation of
the family of circles:

dy y2 − x2
= .
dx 2xy
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Definition
Consider two family of curves
Definition
Consider two family of curves such that each curve in one family is orthogonal to each curve in
the other family.
Definition
Consider two family of curves such that each curve in one family is orthogonal to each curve in
the other family. Then each family is called a family of orthogonal trajectories of the other.
Definition
Consider two family of curves such that each curve in one family is orthogonal to each curve in
the other family. Then each family is called a family of orthogonal trajectories of the other.

Example: As we have already seen, the family of concentric circles x 2 + y 2 = c 2 and


Definition
Consider two family of curves such that each curve in one family is orthogonal to each curve in
the other family. Then each family is called a family of orthogonal trajectories of the other.

Example: As we have already seen, the family of concentric circles x 2 + y 2 = c 2 and the
family of straight lines y = cx are orthogonal trajectories of each other.
Finding Orthogonal Trajectories
Consider the differential equation
dy
= f (x, y ).
dx
Finding Orthogonal Trajectories
Consider the differential equation
dy
= f (x, y ).
dx
It often represents a one-parameter family of curves,
Finding Orthogonal Trajectories
Consider the differential equation
dy
= f (x, y ).
dx
It often represents a one-parameter family of curves, where each curve in the family, at a point
(x, y ) on the curve, has slope f (x, y ).
Finding Orthogonal Trajectories
Consider the differential equation
dy
= f (x, y ).
dx
It often represents a one-parameter family of curves, where each curve in the family, at a point
(x, y ) on the curve, has slope f (x, y ).

Thus for finding the corresponding orthogonal trajectories, we must consider


dy −1
= .
dx f (x, y )
Finding Orthogonal Trajectories
Consider the differential equation
dy
= f (x, y ).
dx
It often represents a one-parameter family of curves, where each curve in the family, at a point
(x, y ) on the curve, has slope f (x, y ).

Thus for finding the corresponding orthogonal trajectories, we must consider


dy −1
= .
dx f (x, y )

More generally, the orthogonal trajectories of a one-parameter family of curves corresponding


dy
to a first order differential equation is obtained by replacing each occurrence of in the
dx
dx
differential equation by −
dy
Finding Orthogonal Trajectories
Consider the differential equation
dy
= f (x, y ).
dx
It often represents a one-parameter family of curves, where each curve in the family, at a point
(x, y ) on the curve, has slope f (x, y ).

Thus for finding the corresponding orthogonal trajectories, we must consider


dy −1
= .
dx f (x, y )

More generally, the orthogonal trajectories of a one-parameter family of curves corresponding


dy
to a first order differential equation is obtained by replacing each occurrence of in the
dx
dx
differential equation by − and solving the resultant differential equation.
dy
Example
Find the orthogonal trajectories of the family of circles x 2 + y 2 = c 2 .
Example
Find the orthogonal trajectories of the family of circles x 2 + y 2 = c 2 .

Solution: The differential equation of the given family of circles is


dy
x +y = 0.
dx
Example
Find the orthogonal trajectories of the family of circles x 2 + y 2 = c 2 .

Solution: The differential equation of the given family of circles is


dy
x +y = 0.
dx

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is
Example
Find the orthogonal trajectories of the family of circles x 2 + y 2 = c 2 .

Solution: The differential equation of the given family of circles is


dy
x +y = 0.
dx

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is
 
dx
x +y − =0
dy
Example
Find the orthogonal trajectories of the family of circles x 2 + y 2 = c 2 .

Solution: The differential equation of the given family of circles is


dy
x +y = 0.
dx

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is
 
dx
x +y − =0
dy

or
dy y
= .
dx x
Example
Find the orthogonal trajectories of the family of circles x 2 + y 2 = c 2 .

Solution: The differential equation of the given family of circles is


dy
x +y = 0.
dx

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is
 
dx
x +y − =0
dy

or
dy y
= .
dx x

Solving this, we obtain the equation of the orthogonal trajectories:

y = cx.
Example
Find the orthogonal trajectories of the family of circles
x 2 + y 2 = 2cx.
Example
Find the orthogonal trajectories of the family of circles
x 2 + y 2 = 2cx.

Solution: The differential equation of the given family of circles is

dy y2 − x2
= .
dx 2xy
Example
Find the orthogonal trajectories of the family of circles
x 2 + y 2 = 2cx.

Solution: The differential equation of the given family of circles is

dy y2 − x2
= .
dx 2xy

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is
Example
Find the orthogonal trajectories of the family of circles
x 2 + y 2 = 2cx.

Solution: The differential equation of the given family of circles is

dy y2 − x2
= .
dx 2xy

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is

dx y2 − x2
− =
dy 2xy
Example
Find the orthogonal trajectories of the family of circles
x 2 + y 2 = 2cx.

Solution: The differential equation of the given family of circles is

dy y2 − x2
= .
dx 2xy

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is

dx y2 − x2
− =
dy 2xy

or
dy 2xy
= 2 .
dx x − y2
Example
Find the orthogonal trajectories of the family of circles
x 2 + y 2 = 2cx.

Solution: The differential equation of the given family of circles is

dy y2 − x2
= .
dx 2xy

Therefore, the differential equation of the orthogonal trajectories of the given family of circles is

dx y2 − x2
− =
dy 2xy

or
dy 2xy
= 2 .
dx x − y2
Solving this gives the equation of the orthogonal trajectories of the given family of circles:
Solving this gives the equation of the orthogonal trajectories of the given family of circles:

x 2 + y 2 = 2cy .
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Orthogonal Trajectories
y

x
Homework

1. Sketch each of the following families of curves,


Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories,
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c;
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c; (b) y = cx 2 ;
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c; (b) y = cx 2 ; (c) y = ce x .
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c; (b) y = cx 2 ; (c) y = ce x .
2. What are the orthogonal trajectories of the family of curves (a) y = cx 4 ;
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c; (b) y = cx 2 ; (c) y = ce x .
2. What are the orthogonal trajectories of the family of curves (a) y = cx 4 ; (b) y = cx n
where n is any positive integer?
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c; (b) y = cx 2 ; (c) y = ce x .
2. What are the orthogonal trajectories of the family of curves (a) y = cx 4 ; (b) y = cx n
where n is any positive integer? In each case sketch both family of curves.
Homework

1. Sketch each of the following families of curves, find the orthogonal trajectories, and add
them to the sketch:
(a) xy = c; (b) y = cx 2 ; (c) y = ce x .
2. What are the orthogonal trajectories of the family of curves (a) y = cx 4 ; (b) y = cx n
where n is any positive integer? In each case sketch both family of curves. What is the
effect on the orthogonal trajectories of increasing the exponent n?
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.


Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree 2.
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree 2.
p
I x 2 + y 2 is a homogeneous function of degree
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree 2.
p
I x 2 + y 2 is a homogeneous function of degree 1.
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree 2.
p
I x 2 + y 2 is a homogeneous function of degree 1.
I sin(x/y ) is a homogeneous function of degree
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree 2.
p
I x 2 + y 2 is a homogeneous function of degree 1.
I sin(x/y ) is a homogeneous function of degree 0.
Solutions of First Order Equations: Homogeneous Equations

These are first order differential equations which can be transformed into separable equations.

Definition
A function f (x, y ) is called homogeneous of degree n if

f (tx, ty ) = t n f (x, y )

for all suitable values of x, y and t.

Examples:
I x 2 + xy is a homogeneous function of degree 2.
p
I x 2 + y 2 is a homogeneous function of degree 1.
I sin(x/y ) is a homogeneous function of degree 0.
Homogeneous Equations
Homogeneous Equations

Definition
The differential equation
M(x, y )dx + N(x, y )dy = 0
is said be homogeneous if M and N are homogeneous functions of the same degree.
Homogeneous Equations

Definition
The differential equation
M(x, y )dx + N(x, y )dy = 0
is said be homogeneous if M and N are homogeneous functions of the same degree.

Note: The homogeneous differential equation above can be written in the form
dy
= f (x, y ),
dx
Homogeneous Equations

Definition
The differential equation
M(x, y )dx + N(x, y )dy = 0
is said be homogeneous if M and N are homogeneous functions of the same degree.

Note: The homogeneous differential equation above can be written in the form
dy
= f (x, y ),
dx
where f (x, y ) = −M(x, y )/N(x, y ) is a homogeneous function of degree
Homogeneous Equations

Definition
The differential equation
M(x, y )dx + N(x, y )dy = 0
is said be homogeneous if M and N are homogeneous functions of the same degree.

Note: The homogeneous differential equation above can be written in the form
dy
= f (x, y ),
dx
where f (x, y ) = −M(x, y )/N(x, y ) is a homogeneous function of degree 0.
The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
So, we have
f (tx, ty ) = t 0 f (x, y ) = f (x, y ).
The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
So, we have
f (tx, ty ) = t 0 f (x, y ) = f (x, y ).

Thus if we set t = 1/x, we get


f (x, y ) = f (1, y /x).
The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
So, we have
f (tx, ty ) = t 0 f (x, y ) = f (x, y ).

Thus if we set t = 1/x, we get


f (x, y ) = f (1, y /x).

Introduce a new dependent variable z = y /x.


The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
So, we have
f (tx, ty ) = t 0 f (x, y ) = f (x, y ).

Thus if we set t = 1/x, we get


f (x, y ) = f (1, y /x).

Introduce a new dependent variable z = y /x. Then the above identity becomes
f (x, y ) = f (1, z).
The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
So, we have
f (tx, ty ) = t 0 f (x, y ) = f (x, y ).

Thus if we set t = 1/x, we get


f (x, y ) = f (1, y /x).

Introduce a new dependent variable z = y /x. Then the above identity becomes
f (x, y ) = f (1, z).

Further, since y = zx,


The Idea
A homogeneous differential equation can be written in the form
dy
= f (x, y )
dx
where f (x, y ) is a homogeneous function of degree 0.
So, we have
f (tx, ty ) = t 0 f (x, y ) = f (x, y ).

Thus if we set t = 1/x, we get


f (x, y ) = f (1, y /x).

Introduce a new dependent variable z = y /x. Then the above identity becomes
f (x, y ) = f (1, z).

Further, since y = zx, we have


dy dz
=z +x .
dx dx
The Idea...

So, the differential equation becomes


dz
z +x = f (1, z).
dx
The Idea...

So, the differential equation becomes


dz
z +x = f (1, z).
dx

Now, the variables can be separated:


dz dx
= .
f (1, z) − z x
The Idea...

So, the differential equation becomes


dz
z +x = f (1, z).
dx

Now, the variables can be separated:


dz dx
= .
f (1, z) − z x

We complete the solution by integrating and replacing z by y /x.


Example
Solve (x + y )dx − (x − y )dy = 0.
Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y
Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y

And the function on the RHS is a homogeneous function of degree 0.


Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y

And the function on the RHS is a homogeneous function of degree 0.


So, it can be made a function of y /x. We do this and replace y /x by z to obtain
Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y

And the function on the RHS is a homogeneous function of degree 0.


So, it can be made a function of y /x. We do this and replace y /x by z to obtain

dy 1 + y /x 1+z
= = .
dx 1 − y /x 1−z
Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y

And the function on the RHS is a homogeneous function of degree 0.


So, it can be made a function of y /x. We do this and replace y /x by z to obtain

dy 1 + y /x 1+z
= = .
dx 1 − y /x 1−z
dy dz
Also the substitution y = zx gives =z +x .
dx dx
Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y

And the function on the RHS is a homogeneous function of degree 0.


So, it can be made a function of y /x. We do this and replace y /x by z to obtain

dy 1 + y /x 1+z
= = .
dx 1 − y /x 1−z
dy dz
Also the substitution y = zx gives =z +x .
dx dx
Thus we get
dz 1+z
z +x = .
dx 1−z
Example
Solve (x + y )dx − (x − y )dy = 0.

Solution: We note that the given equation is a homogeneous equation.


We write the equation in the form
dy x +y
= .
dx x −y

And the function on the RHS is a homogeneous function of degree 0.


So, it can be made a function of y /x. We do this and replace y /x by z to obtain

dy 1 + y /x 1+z
= = .
dx 1 − y /x 1−z
dy dz
Also the substitution y = zx gives =z +x .
dx dx
Thus we get
dz 1+z
z +x = .
dx 1−z
Example...

On simplification followed by separation of variables, we obtain

(1 − z)dz dx
= .
1 + z2 x
Example...

On simplification followed by separation of variables, we obtain

(1 − z)dz dx
= .
1 + z2 x

On integration this yields


1
tan−1 z − log(1 + z 2 ) = log x + c.
2
Example...

On simplification followed by separation of variables, we obtain

(1 − z)dz dx
= .
1 + z2 x

On integration this yields


1
tan−1 z − log(1 + z 2 ) = log x + c.
2

Finally, we replace z by y /x
Example...

On simplification followed by separation of variables, we obtain

(1 − z)dz dx
= .
1 + z2 x

On integration this yields


1
tan−1 z − log(1 + z 2 ) = log x + c.
2

Finally, we replace z by y /x (and rearrange the terms)


Example...

On simplification followed by separation of variables, we obtain

(1 − z)dz dx
= .
1 + z2 x

On integration this yields


1
tan−1 z − log(1 + z 2 ) = log x + c.
2

Finally, we replace z by y /x (and rearrange the terms) to obtain the desired solution:
Example...

On simplification followed by separation of variables, we obtain

(1 − z)dz dx
= .
1 + z2 x

On integration this yields


1
tan−1 z − log(1 + z 2 ) = log x + c.
2

Finally, we replace z by y /x (and rearrange the terms) to obtain the desired solution:
y p
tan−1 = log x 2 + y 2 + c.
x
Homework

Verify that the following equations are homogeneous and solve them:
Homework

Verify that the following equations are homogeneous and solve them:
(a) (x 2 − 2y 2 )dx + xydy = 0
Homework

Verify that the following equations are homogeneous and solve them:
(a) (x 2 − 2y 2 )dx + xydy = 0
(b) x 2 y 0 − 3xy − 2y 2 = 0
Homework

Verify that the following equations are homogeneous and solve them:
(a) (x 2 − 2y 2 )dx + xydy = 0
(b) x 2 y 0 − 3xy − 2y 2 = 0
y
(c) x 2 y 0 = 3(x 2 + y 2 ) tan−1 x + xy
Homework

Verify that the following equations are homogeneous and solve them:
(a) (x 2 − 2y 2 )dx + xydy = 0
(b) x 2 y 0 − 3xy − 2y 2 = 0
y
(c) x 2 y 0 = 3(x 2 + y 2 ) tan−1 x + xy
y dy y
(d) x sin x dx = y sin x +x
Homework

Verify that the following equations are homogeneous and solve them:
(a) (x 2 − 2y 2 )dx + xydy = 0
(b) x 2 y 0 − 3xy − 2y 2 = 0
y
(c) x 2 y 0 = 3(x 2 + y 2 ) tan−1 x + xy
y dy
(d) x sin x dx =y sin yx +x
0 −y /x
(e) xy = y + 2xe .
Homework

Find the orthogonal trajectories of the family of all circles tangent to the y -axis at the origin.
Homework

Show that the substitution z = ax + by + c changes

y 0 = f (ax + by + c)

into an equation with separable variables,


Homework

Show that the substitution z = ax + by + c changes

y 0 = f (ax + by + c)

into an equation with separable variables, and apply this method to solve
(a) y 0 = (x + y )2
Homework

Show that the substitution z = ax + by + c changes

y 0 = f (ax + by + c)

into an equation with separable variables, and apply this method to solve
(a) y 0 = (x + y )2
(b) y 0 = sin2 (x − y + 1)
Homework

1. (a) If ae 6= bd, show that constants h and k can be chosen in such a way that the substitutions
z = x − h, w = y − k reduce
 
dy ax + by + c
=F
dx dx + ey + f

to a homogeneous equation.
Homework

1. (a) If ae 6= bd, show that constants h and k can be chosen in such a way that the substitutions
z = x − h, w = y − k reduce
 
dy ax + by + c
=F
dx dx + ey + f

to a homogeneous equation.
(b) If ae = bd, discover a substitution that reduces the equation in (a) to one in which the
variables are separable.
Homework

1. (a) If ae 6= bd, show that constants h and k can be chosen in such a way that the substitutions
z = x − h, w = y − k reduce
 
dy ax + by + c
=F
dx dx + ey + f

to a homogeneous equation.
(b) If ae = bd, discover a substitution that reduces the equation in (a) to one in which the
variables are separable.
2. Solve the following equations:
Homework

1. (a) If ae 6= bd, show that constants h and k can be chosen in such a way that the substitutions
z = x − h, w = y − k reduce
 
dy ax + by + c
=F
dx dx + ey + f

to a homogeneous equation.
(b) If ae = bd, discover a substitution that reduces the equation in (a) to one in which the
variables are separable.
2. Solve the following equations:
dy x +y +4
(a) = ;
dx x −y −6
Homework

1. (a) If ae 6= bd, show that constants h and k can be chosen in such a way that the substitutions
z = x − h, w = y − k reduce
 
dy ax + by + c
=F
dx dx + ey + f

to a homogeneous equation.
(b) If ae = bd, discover a substitution that reduces the equation in (a) to one in which the
variables are separable.
2. Solve the following equations:
dy x +y +4
(a) = ;
dx x −y −6
dy x +y −1
(b) = ;
dx x + 4y + 2
Homework

1. (a) If ae 6= bd, show that constants h and k can be chosen in such a way that the substitutions
z = x − h, w = y − k reduce
 
dy ax + by + c
=F
dx dx + ey + f

to a homogeneous equation.
(b) If ae = bd, discover a substitution that reduces the equation in (a) to one in which the
variables are separable.
2. Solve the following equations:
dy x +y +4
(a) = ;
dx x −y −6
dy x +y −1
(b) = ;
dx x + 4y + 2
dy x +y +4
(c) = .
dx x +y −6
Solving First Order Equations: Exact Equations
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has


Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx +


Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario:
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario: Suppose for a differential equation
M(x, y )dx + N(x, y )dy = 0
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario: Suppose for a differential equation
M(x, y )dx + N(x, y )dy = 0
there is a function f (x, y ) such that
∂f
=M
∂x
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario: Suppose for a differential equation
M(x, y )dx + N(x, y )dy = 0
there is a function f (x, y ) such that
∂f ∂f
=M and = N.
∂x ∂y
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario: Suppose for a differential equation
M(x, y )dx + N(x, y )dy = 0
there is a function f (x, y ) such that
∂f ∂f
=M and = N.
∂x ∂y

Then the differential equation can be written in the form


∂f ∂f
dx + dy = 0
∂x ∂y
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario: Suppose for a differential equation
M(x, y )dx + N(x, y )dy = 0
there is a function f (x, y ) such that
∂f ∂f
=M and = N.
∂x ∂y

Then the differential equation can be written in the form


∂f ∂f
dx + dy = 0 or df = 0
∂x ∂y
Solving First Order Equations: Exact Equations
Note: The differential equation of a family of curves f (x, y ) = c is df = 0 or
∂f ∂f
dx + dy = 0.
∂x ∂y

Example: The family x 2 y 3 = c has 2xy 3 dx + 3x 2 y 2 dy = 0 as its differential equation.


Consider the reverse scenario: Suppose for a differential equation
M(x, y )dx + N(x, y )dy = 0
there is a function f (x, y ) such that
∂f ∂f
=M and = N.
∂x ∂y

Then the differential equation can be written in the form


∂f ∂f
dx + dy = 0 or df = 0
∂x ∂y
and its general solution is
f (x, y ) = c.
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0.
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f
=M
∂x
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact?


Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact? If exact, how do we


find the function f ?
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact? If exact, how do we


find the function f ?

It is easy sometimes:
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact? If exact, how do we


find the function f ?

It is easy sometimes:
I The left side of ydx + xdy = 0 is the differential of
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact? If exact, how do we


find the function f ?

It is easy sometimes:
I The left side of ydx + xdy = 0 is the differential of xy and so the solution is xy = c.
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact? If exact, how do we


find the function f ?

It is easy sometimes:
I The left side of ydx + xdy = 0 is the differential of xy and so the solution is xy = c.
1
I The left side of dx − yx2 dy = 0 is the differential of
y
Definition
Consider the differential equation M(x, y )dx + N(x, y )dy = 0. If there is a function f (x, y )
such that
∂f ∂f
=M and = N,
∂x ∂y
then Mdx + Ndy is called an exact differential and Mdx + Ndy = 0 is called an exact
differential equation.

Question: How do we recognize whether a differential equation is exact? If exact, how do we


find the function f ?

It is easy sometimes:
I The left side of ydx + xdy = 0 is the differential of xy and so the solution is xy = c.
1
I The left side of dx − yx2 dy = 0 is the differential of x/y and so the solution is x/y = c.
y
A Necessary Condition for Exactness
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f
=M
∂x
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f
=M
∂x
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f ∂f
=M and = N.
∂x ∂y
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f ∂f
=M and = N.
∂x ∂y

Then
∂2f
∂y ∂x
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f ∂f
=M and = N.
∂x ∂y

Then
∂2f ∂M ∂2f
= and =
∂y ∂x ∂y ∂x∂y
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f ∂f
=M and = N.
∂x ∂y

Then
∂2f ∂M ∂2f ∂N
= and = .
∂y ∂x ∂y ∂x∂y ∂x

But the mixed second derivatives of a function are equal:


A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f ∂f
=M and = N.
∂x ∂y

Then
∂2f ∂M ∂2f ∂N
= and = .
∂y ∂x ∂y ∂x∂y ∂x

∂2f ∂2f
But the mixed second derivatives of a function are equal: = .
∂y ∂x ∂x∂y
A Necessary Condition for Exactness
Suppose the differential equation

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

is exact.
Then there is a function f such that
∂f ∂f
=M and = N.
∂x ∂y

Then
∂2f ∂M ∂2f ∂N
= and = .
∂y ∂x ∂y ∂x∂y ∂x

∂2f ∂2f
But the mixed second derivatives of a function are equal: = .
∂y ∂x ∂x∂y
∂M ∂N
∴ = .
∂y ∂x
Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.


Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.

Solution: Here M = y and N = x 2 y − x.


Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.

Solution: Here M = y and N = x 2 y − x.

So,
∂M
=1
∂y
Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.

Solution: Here M = y and N = x 2 y − x.

So,
∂M ∂N
=1 and =
∂y ∂x
Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.

Solution: Here M = y and N = x 2 y − x.

So,
∂M ∂N
=1 and = 2xy − 1.
∂y ∂x
Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.

Solution: Here M = y and N = x 2 y − x.

So,
∂M ∂N
=1 and = 2xy − 1.
∂y ∂x

Thus
∂M ∂N
6=
∂y ∂x
.
Example

Show that ydx + (x 2 y − x)dy = 0 is not exact.

Solution: Here M = y and N = x 2 y − x.

So,
∂M ∂N
=1 and = 2xy − 1.
∂y ∂x

Thus
∂M ∂N
6=
∂y ∂x
.
Hence the equation is not exact.
But This Condition is Also Sufficient!
But This Condition is Also Sufficient!

∂M ∂N
Proved: If M(x, y )dx + N(x, y )dy = 0 is exact, then = .
∂y ∂x
But This Condition is Also Sufficient!

∂M ∂N
Proved: If M(x, y )dx + N(x, y )dy = 0 is exact, then = .
∂y ∂x

∂M ∂N
To Prove: If = , then M(x, y )dx + N(x, y )dy = 0 is exact.
∂y ∂x
But This Condition is Also Sufficient!

∂M ∂N
Proved: If M(x, y )dx + N(x, y )dy = 0 is exact, then = .
∂y ∂x

∂M ∂N
To Prove: If = , then M(x, y )dx + N(x, y )dy = 0 is exact.
∂y ∂x

Theorem
∂M ∂N
The differential equation M(x, y )dx + N(x, y )dy = 0 is exact if and only if = .
∂y ∂x
The Condition is Sufficient!
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f
=M
∂x
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition,
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition, have the
form Z
f = Mdx + g (y ).
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition, have the
form Z
f = Mdx + g (y ).

And, by the second condition,


The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition, have the
form Z
f = Mdx + g (y ).

And, by the second condition, this f must be such that


Z

Mdx + g 0 (y ) = N.
∂y
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition, have the
form Z
f = Mdx + g (y ).

And, by the second condition, this f must be such that


Z

Mdx + g 0 (y ) = N.
∂y

Or Z

g 0 (y ) = N − Mdx.
∂y
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition, have the
form Z
f = Mdx + g (y ).

And, by the second condition, this f must be such that


Z

Mdx + g 0 (y ) = N.
∂y

Or Z

g 0 (y ) = N − Mdx.
∂y
The Condition is Sufficient!
Suppose
∂M ∂N
= .
∂y ∂x

We will now prove that this condition enables us to find a function f such that
∂f ∂f
=M and = N.
∂x ∂y

If there is a function f satisfying the above conditions, it must, by the first condition, have the
form Z
f = Mdx + g (y ).

And, by the second condition, this f must be such that


Z

Mdx + g 0 (y ) = N.
∂y

Or Z

g 0 (y ) = N − Mdx.
∂y
 Z 
∂ ∂
N− Mdx =
∂x ∂y
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx = − Mdx
∂x ∂y ∂x ∂x∂y
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx = − Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx = − Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx = − Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
= 0

by the assumption.
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx = − Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
= 0
R
by the assumption. Thus the function f = Mdx + g (y )
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx −= Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
= 0
R R ∂
R 
by the assumption. Thus the function f = Mdx + g (y ) with g (y ) = N− ∂y Mdx dy
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx −= Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
= 0
R R ∂
R 
by the assumption. Thus the function f = Mdx + g (y ) with g (y ) = N− ∂y Mdx dy
satisfies
∂f
=M
∂x
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx − = Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
= 0
R R ∂
R 
by the assumption. Thus the function f = Mdx + g (y ) with g (y ) = N− ∂y Mdx dy
satisfies
∂f ∂f
=M and = N.
∂x ∂y
∂2
 Z  Z
∂ ∂ ∂N
N− Mdx − = Mdx
∂x ∂y ∂x ∂x∂y
∂2
Z
∂N
= − Mdx
∂x ∂y ∂x
∂N ∂M
= −
∂x ∂y
= 0
R R ∂
R 
by the assumption. Thus the function f = Mdx + g (y ) with g (y ) = N− ∂y Mdx dy
satisfies
∂f ∂f
=M and = N.
∂x ∂y

Hence the given equation is exact.


Example
Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.
Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.

Solution: Here
M = ey and N = xe y + 2y .
Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.

Solution: Here
M = ey and N = xe y + 2y .

∂M
∴ = ey
∂y
Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.

Solution: Here
M = ey and N = xe y + 2y .

∂M ∂N
∴ = ey and = ey .
∂y ∂x
Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.

Solution: Here
M = ey and N = xe y + 2y .

∂M ∂N
∴ = ey and = ey .
∂y ∂x

Thus the equation is exact.


Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.

Solution: Here
M = ey and N = xe y + 2y .

∂M ∂N
∴ = ey and = ey .
∂y ∂x

Thus the equation is exact. Hence there exists a function f (x, y ) such that
∂f
= ey
∂x
Example

Test the equation e y dx + (xe y + 2y )dy = 0 for exactness, and solve it if it is exact.

Solution: Here
M = ey and N = xe y + 2y .

∂M ∂N
∴ = ey and = ey .
∂y ∂x

Thus the equation is exact. Hence there exists a function f (x, y ) such that
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y
∂f
= ey
∂x
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y

Integrating the first of these equations with respect to x gives


Z
f = e y dy + g (y ) = xe y + g (y ).
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y

Integrating the first of these equations with respect to x gives


Z
f = e y dy + g (y ) = xe y + g (y ).

So
∂f
= xe y + g 0 (y ).
∂y
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y

Integrating the first of these equations with respect to x gives


Z
f = e y dy + g (y ) = xe y + g (y ).

So
∂f
= xe y + g 0 (y ).
∂y
∂f
Also, ∂y = xe y + 2y .
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y

Integrating the first of these equations with respect to x gives


Z
f = e y dy + g (y ) = xe y + g (y ).

So
∂f
= xe y + g 0 (y ).
∂y

Also, ∂f
∂y = xe y + 2y . So, we have g 0 (y ) = 2y or g (y ) = y 2 and f (x, y ) = xe y + y 2 .
∂f ∂f
= ey and = xe y + 2y .
∂x ∂y

Integrating the first of these equations with respect to x gives


Z
f = e y dy + g (y ) = xe y + g (y ).

So
∂f
= xe y + g 0 (y ).
∂y
∂f
Also, ∂y = xe y + 2y . So, we have g 0 (y ) = 2y or g (y ) = y 2 and f (x, y ) = xe y + y 2 .
Thus the general solution of the given differential equation is

xe y + y 2 = c.
Homework

Determine which of the following equation are exact, and solve the ones that are.
Homework

Determine which of the following equation are exact, and solve the ones that are.

 
2
1. x + dy + ydx = 0
y
Homework

Determine which of the following equation are exact, and solve the ones that are.

 
2
1. x + dy + ydx = 0
y
2. (sin x tan y + 1)dx + cos x sec2 ydy = 0
Homework

Determine which of the following equation are exact, and solve the ones that are.

 
2
1. x + dy + ydx = 0
y
2. (sin x tan y + 1)dx + cos x sec2 ydy = 0
3. (y − x 3 )dx + (x + y 3 )dy = 0
Homework

Determine which of the following equation are exact, and solve the ones that are.

 
2
1. x + dy + ydx = 0
y
2. (sin x tan y + 1)dx + cos x sec2 ydy = 0
3. (y − x 3 )dx + (x + y 3 )dy = 0
4. (2y 2 − 4x + 5)dx = (4 − 2y + 4xy )
Homework

Determine which of the following equation are exact, and solve the ones that are.

 
2
1. x + dy + ydx = 0
y
2. (sin x tan y + 1)dx + cos x sec2 ydy = 0
3. (y − x 3 )dx + (x + y 3 )dy = 0
4. (2y 2 − 4x + 5)dx = (4 − 2y + 4xy )
5. (y + y cos xy )dx + (x + x cos xy )dy = 0
Homework

Determine which of the following equation are exact, and solve the ones that are.

 
2
1. x + dy + ydx = 0
y
2. (sin x tan y + 1)dx + cos x sec2 ydy = 0
3. (y − x 3 )dx + (x + y 3 )dy = 0
4. (2y 2 − 4x + 5)dx = (4 − 2y + 4xy )
5. (y + y cos xy )dx + (x + x cos xy )dy = 0
Integrating Factors
Integrating Factors
Motivation: The equation
ydx + (x 2 y − x)dy = 0
is not exact:
Integrating Factors
Motivation: The equation
ydx + (x 2 y − x)dy = 0
is not exact:for ∂M/∂y = 1
Integrating Factors
Motivation: The equation
ydx + (x 2 y − x)dy = 0
is not exact:for ∂M/∂y = 1 and ∂N/∂x = 2xy − 1.
Integrating Factors
Motivation: The equation
ydx + (x 2 y − x)dy = 0
is not exact:for ∂M/∂y = 1 and ∂N/∂x = 2xy − 1.

1
But multiplying this equation by results in
x2
 
y 1
dx + y − dy = 0
x2 x
Integrating Factors
Motivation: The equation
ydx + (x 2 y − x)dy = 0
is not exact:for ∂M/∂y = 1 and ∂N/∂x = 2xy − 1.

1
But multiplying this equation by results in
x2
 
y 1
dx + y − dy = 0
x2 x

which is exact.
Integrating Factors
Motivation: The equation
ydx + (x 2 y − x)dy = 0
is not exact:for ∂M/∂y = 1 and ∂N/∂x = 2xy − 1.

1
But multiplying this equation by results in
x2
 
y 1
dx + y − dy = 0
x2 x

which is exact.

If
M(x, y )dx + N(x, y )dy = 0
is not exact, when can we find a function µ(x, y ) such that

µ(Mdx + Ndy ) = 0

exact?
Definition
Suppose Mdx + Ndy = 0 is a nonexact equation.
Definition
Suppose Mdx + Ndy = 0 is a nonexact equation. Suppose µ(x, y ) is a function such that

µ(Mdx + Ndy ) = 0

is exact.
Definition
Suppose Mdx + Ndy = 0 is a nonexact equation. Suppose µ(x, y ) is a function such that

µ(Mdx + Ndy ) = 0

is exact. Then µ is called an integrating factor of the given differential equation.


Definition
Suppose Mdx + Ndy = 0 is a nonexact equation. Suppose µ(x, y ) is a function such that

µ(Mdx + Ndy ) = 0

is exact. Then µ is called an integrating factor of the given differential equation.

Example: The equation


ydx + (x 2 y − x)dy = 0
1
has as an integrating factor.
x2
Definition
Suppose Mdx + Ndy = 0 is a nonexact equation. Suppose µ(x, y ) is a function such that

µ(Mdx + Ndy ) = 0

is exact. Then µ is called an integrating factor of the given differential equation.

Example: The equation


ydx + (x 2 y − x)dy = 0
1
has as an integrating factor.
x2

Question: When does a nonexact equation Mdx + Ndy = 0 have an integrating factor?
Definition
Suppose Mdx + Ndy = 0 is a nonexact equation. Suppose µ(x, y ) is a function such that

µ(Mdx + Ndy ) = 0

is exact. Then µ is called an integrating factor of the given differential equation.

Example: The equation


ydx + (x 2 y − x)dy = 0
1
has as an integrating factor.
x2

Question: When does a nonexact equation Mdx + Ndy = 0 have an integrating factor?
Always!
Definition
Suppose Mdx + Ndy = 0 is a nonexact equation. Suppose µ(x, y ) is a function such that

µ(Mdx + Ndy ) = 0

is exact. Then µ is called an integrating factor of the given differential equation.

Example: The equation


ydx + (x 2 y − x)dy = 0
1
has as an integrating factor.
x2

Question: When does a nonexact equation Mdx + Ndy = 0 have an integrating factor?
Always! (As long as it has a general solution!)
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y

The above differential equations have the same solutions and so they are equivalent.
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y

The above differential equations have the same solutions and so they are equivalent. Thus
dy M ∂f /∂x
=− =− .
dx N ∂f /∂y
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y

The above differential equations have the same solutions and so they are equivalent. Thus
dy M ∂f /∂x
=− =− .
dx N ∂f /∂y

∂f /∂x ∂f /∂y
∴ = .
M N
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y

The above differential equations have the same solutions and so they are equivalent. Thus
dy M ∂f /∂x
=− =− .
dx N ∂f /∂y

∂f /∂x ∂f /∂y
∴ = .
M N

Let us denote the common ratio above by µ(x, y ).


Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y

The above differential equations have the same solutions and so they are equivalent. Thus
dy M ∂f /∂x
=− =− .
dx N ∂f /∂y

∂f /∂x ∂f /∂y
∴ = .
M N

Let us denote the common ratio above by µ(x, y ). Then we have


∂f
= µM
∂x
Suppose Mdx + Ndy = 0 has a general solution
f (x, y ) = c.

Eliminating c from the equation above, we obtain:


∂f ∂f
dx + dy = 0.
∂x ∂y

The above differential equations have the same solutions and so they are equivalent. Thus
dy M ∂f /∂x
=− =− .
dx N ∂f /∂y

∂f /∂x ∂f /∂y
∴ = .
M N

Let us denote the common ratio above by µ(x, y ). Then we have


∂f ∂f
= µM and = µN.
∂x ∂y
Let us denote the common ratio above by µ(x, y ). Then we have

∂f ∂f
= µM and = µN.
∂x ∂y
Let us denote the common ratio above by µ(x, y ). Then we have

∂f ∂f
= µM and = µN.
∂x ∂y

Thus, on multiplying Mdx + Ndy = 0 by µ, it becomes

µMdx + µNdy = 0.
Let us denote the common ratio above by µ(x, y ). Then we have

∂f ∂f
= µM and = µN.
∂x ∂y

Thus, on multiplying Mdx + Ndy = 0 by µ, it becomes

µMdx + µNdy = 0.

That is, it becomes


∂f ∂f
+ = 0,
∂x ∂y
Let us denote the common ratio above by µ(x, y ). Then we have

∂f ∂f
= µM and = µN.
∂x ∂y

Thus, on multiplying Mdx + Ndy = 0 by µ, it becomes

µMdx + µNdy = 0.

That is, it becomes


∂f ∂f
+ = 0,
∂x ∂y
which is an exact equation.
Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Let F (f ) be any function of f .
Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Let F (f ) be any function of f . Then

µF (f )(Mdx + Ndy ) =
Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Let F (f ) be any function of f . Then

µF (f )(Mdx + Ndy ) = F (f )df =


Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Let F (f ) be any function of f . Then
Z
µF (f )(Mdx + Ndy ) = F (f )df = d[ F (f )df ].
Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Let F (f ) be any function of f . Then
Z
µF (f )(Mdx + Ndy ) = F (f )df = d[ F (f )df ].

That is, µF (f )(Mdx + Ndy ) is an exact differential.


Note: If Mdx + Ndy = 0 has at least one integrating factor, it has infinitely many of them:
Let F (f ) be any function of f . Then
Z
µF (f )(Mdx + Ndy ) = F (f )df = d[ F (f )df ].

That is, µF (f )(Mdx + Ndy ) is an exact differential. This means that µF (f ) is also an
integrating factor of Mdx + Ndy = 0.
Finding Integrating Factors

µ is an integrating factor of Mdx + Ndy = 0 if and only if µMdx + µNdy = 0 is exact.


Finding Integrating Factors

µ is an integrating factor of Mdx + Ndy = 0 if and only if µMdx + µNdy = 0 is exact. That is,
if and only if
∂µM ∂µN
=
∂y ∂x
Finding Integrating Factors

µ is an integrating factor of Mdx + Ndy = 0 if and only if µMdx + µNdy = 0 is exact. That is,
if and only if
∂µM ∂µN
=
∂y ∂x

∂M ∂µ ∂N ∂µ
⇔ µ +M =µ +N .
∂y ∂y ∂x ∂x
Finding Integrating Factors

µ is an integrating factor of Mdx + Ndy = 0 if and only if µMdx + µNdy = 0 is exact. That is,
if and only if
∂µM ∂µN
=
∂y ∂x

∂M ∂µ ∂N ∂µ
⇔ µ +M =µ +N .
∂y ∂y ∂x ∂x

 
1 ∂µ ∂µ ∂M ∂N
⇔ N −M = − .
µ ∂x ∂y ∂y ∂x
Finding Integrating Factors

µ is an integrating factor of Mdx + Ndy = 0 if and only if µMdx + µNdy = 0 is exact. That is,
if and only if
∂µM ∂µN
=
∂y ∂x

∂M ∂µ ∂N ∂µ
⇔ µ +M =µ +N .
∂y ∂y ∂x ∂x

 
1 ∂µ ∂µ ∂M ∂N
⇔ N −M = − .
µ ∂x ∂y ∂y ∂x

Suppose the differential equation has an integrating factor µ that is a function of x alone.
Then with such a µ the above equation takes the form
Thus µ is an integrating factor of the differential equation if and only if
 
1 ∂µ ∂µ ∂M ∂N
N −M = − .
µ ∂x ∂y ∂y ∂x
Thus µ is an integrating factor of the differential equation if and only if
 
1 ∂µ ∂µ ∂M ∂N
N −M = − .
µ ∂x ∂y ∂y ∂x

Suppose the differential equation has an integrating factor µ that is a function of x alone.
Then with such a µ the above equation takes the form
∂M ∂N
1 dµ ∂y − ∂x
= .
µ dx N
Thus µ is an integrating factor of the differential equation if and only if
 
1 ∂µ ∂µ ∂M ∂N
N −M = − .
µ ∂x ∂y ∂y ∂x

Suppose the differential equation has an integrating factor µ that is a function of x alone.
Then with such a µ the above equation takes the form
∂M ∂N
1 dµ ∂y − ∂x
= .
µ dx N

The left side of the above equation is a function of x only. So, the right side must also function
of x only.
So, let
∂M ∂N
∂y − ∂x
g (x) = .
N
Thus we have
1 dµ
= g (x).
µ dx
Integrating, we obtain Z
log µ = g (x)dx

or R
g (x)dx
µ=e .
Example

Find an integrating factor of ydx + (x 2 y − x)dy = 0.


Solution: Here we have
∂M ∂N
∂y − ∂x 1 − (2xy − 1) −2(xy − 1) 2
= = =− ,
N x 2y − x x(xy − 1) x

which is a function of x only.


R
(−2/x)dx 2 1
∴ µ=e = e log(1/x )
=
x2
is an integrating factor of the given differential equation.
Similarly, if the differential equation has an integrating factor µ that is a function of y alone
∂M ∂N
∂y − ∂x
−M
R
h(y )dy
is a function of y alone, say h(y ), and µ = e is an integrating factor.
Note

Consider the equation ydx + (x 2 y − x)dy = 0 rearranged as follows:

x 2 ydy − (xdy − ydx) = 0.

The presence of (xdy − ydx) in the differential equation reminds us the differential formula
y  xdy − ydx
d =
x x2
and suggests us dividing the equation by x 2 . This transforms the equation into
y 
ydy − d = 0.
x
And its general solution is
y 2 /2 − y /x = c.
Useful Differential Formulas

 
x ydx − xdy
d =
y y2

d(xy ) = xdy + ydx

d(x 2 + y 2 ) = 2(xdx + ydy )


 
x ydx − xdy
d tan−1 = 2
y x + y2
 
x ydx − xdy
d log =
y xy
Homework

Solve each of the following equations by finding an integrating factor:


(a) (3x 2 − y 2 )dy − 2xydx = 0
(b) (xy − 1)dx + (x 2 − xy )dy = 0
(c) e x dx + (e x cot y + 2y csc y )dy = 0
(d) (x + 2) sin ydx + x cos ydy = 0

1. Show that if ( ∂M
∂y −
∂N
∂x )/(Ny − Mx) is a function g (z) of the product z = xy , then
R
g (z)dz
µ=e

is an integrating factor for Mdx + Ndy = 0.


2. Under what circumstances will the equation Mdx + Ndy = 0 have an integrating factor
that is a function of the sum z = x + y ?
Linear Equations

Definition
A differential equation in which the derivative of highest order is a linear function of the lower
order derivatives is called a linear equation.
Linear Equations

Definition
A differential equation in which the derivative of highest order is a linear function of the lower
order derivatives is called a linear equation.

Examples: The general first order linear equation is


dy
= p(x)y + q(x).
dx
Linear Equations

Definition
A differential equation in which the derivative of highest order is a linear function of the lower
order derivatives is called a linear equation.

Examples: The general first order linear equation is


dy
= p(x)y + q(x).
dx
Linear Equations

Definition
A differential equation in which the derivative of highest order is a linear function of the lower
order derivatives is called a linear equation.

Examples: The general first order linear equation is


dy
= p(x)y + q(x).
dx

The general second order linear linear equation is

d 2y dy
2
= p(x) + q(x)y + r (x).
dx dx
Linear Equations in Standard Form
Linear Equations in Standard Form

The standard form of a first order linear equation is


dy
+ P(x)y = Q(x).
dx
Note
d R Pdx
(e y)
dx
Note
d R Pdx R dy R
(e y ) = e Pdx + yPe Pdx
dx dx
Note
 
d R Pdx R dy R R dy
(e y ) = e Pdx + yPe Pdx = e Pdx + Py .
dx dx dx
Note
 
d R Pdx R dy R R dy
(e y ) = e Pdx + yPe Pdx = e Pdx + Py .
dx dx dx
dy R
Thus, multiplying + P(x)y = Q(x) through by e Pdx , it becomes
dx
Note
 
d R Pdx R dy R R dy
(e y ) = e Pdx + yPe Pdx = e Pdx + Py .
dx dx dx
dy R
Thus, multiplying + P(x)y = Q(x) through by e Pdx , it becomes
dx
d R Pdx R
(e y ) = Qe Pdx .
dx
Note
 
d R Pdx R dy R R dy
(e y ) = e Pdx + yPe Pdx = e Pdx + Py .
dx dx dx
dy R
Thus, multiplying + P(x)y = Q(x) through by e Pdx , it becomes
dx
d R Pdx R
(e y ) = Qe Pdx .
dx

Integration now yields the general solution:


R
Z R
Pdx Pdx
e y= Qe dx + c
Note
 
d R Pdx R dy R R dy
(e y ) = e Pdx + yPe Pdx = e Pdx + Py .
dx dx dx
dy R
Thus, multiplying + P(x)y = Q(x) through by e Pdx , it becomes
dx
d R Pdx R
(e y ) = Qe Pdx .
dx

Integration now yields the general solution:


R
Z R
Pdx Pdx
e y= Qe dx + c

or
R  R 
y = e− Pdx
intQe Pdx
dx + c .
Note
 
d R Pdx R dy R R dy
(e y ) = e Pdx + yPe Pdx = e Pdx + Py .
dx dx dx
dy R
Thus, multiplying + P(x)y = Q(x) through by e Pdx , it becomes
dx
d R Pdx R
(e y ) = Qe Pdx .
dx

Integration now yields the general solution:


R
Z R
Pdx Pdx
e y= Qe dx + c

or
R  R 
y = e− Pdx
intQe Pdx
dx + c .
Example
dy 1
Solve + y = 3x.
dx x
Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x.


Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x. So,


Z Z
1
Pdx = dx = log x
x
Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x. So,


Z Z
1 R
Pdx = dx = log x and e Pdx = e log x = x.
x
Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x. So,


Z Z
1 R
Pdx = dx = log x and e Pdx = e log x = x.
x

Thus multiplying the given equation through by x, it becomes


Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x. So,


Z Z
1 R
Pdx = dx = log x and e Pdx = e log x = x.
x

Thus multiplying the given equation through by x, it becomes


d
(xy ) = 3x 2 .
dx
Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x. So,


Z Z
1 R
Pdx = dx = log x and e Pdx = e log x = x.
x

Thus multiplying the given equation through by x, it becomes


d
(xy ) = 3x 2 .
dx

Hence, the general solution is

xy = x 3 + c
Example
dy 1
Solve + y = 3x.
dx x

Solution: The given equation is a linear equation with P = 1/x. So,


Z Z
1 R
Pdx = dx = log x and e Pdx = e log x = x.
x

Thus multiplying the given equation through by x, it becomes


d
(xy ) = 3x 2 .
dx

Hence, the general solution is

xy = x 3 + c or = yx 2 + cx −1 .
Homework

Solve the following as linear equations.


Homework

Solve the following as linear equations.

1. x dy
dx − 3y = x
4
Homework

Solve the following as linear equations.

1. x dy
dx − 3y = x
4

2. y 0 + y = 1
1+e 2x
Homework

Solve the following as linear equations.

1. x dy
dx − 3y = x
4

2. y 0 + y = 1
1+e 2x
3. (1 + x 2 )dy + 2xydx = cot xdx
Homework

Solve the following as linear equations.

1. x dy
dx − 3y = x
4

2. y 0 + y = 1
1+e 2x
3. (1 + x 2 )dy + 2xydx = cot xdx
4. (x log x)y 0 + y = 3x 3
Homework

Write the equation dy


dx + P(x)y = Q(x) in the form Mdx + Ndy = 0 and show that it has
integrating factor µ that is a function of x alone.
Homework

Write the equation dy


dx + P(x)y = Q(x) in the form Mdx + Ndy = 0 and show that it has
integrating factor µ that is a function of x alone. Find µ
Homework

Write the equation dy


dx + P(x)y = Q(x) in the form Mdx + Ndy = 0 and show that it has
integrating factor µ that is a function of x alone. Find µ and solve µMdx + µNdy = 0 as an
exact equation.
Bernoulli’s Equations
Bernoulli’s Equations

A first order equation of the form


dy
+ P(x)y = Q(x)y n
dx
is called a Bernoulli’s equation.
Bernoulli’s Equations

A first order equation of the form


dy
+ P(x)y = Q(x)y n
dx
is called a Bernoulli’s equation.

Note that this is just a first order linear equation if n = 0 or 1.


Bernoulli’s Equations

A first order equation of the form


dy
+ P(x)y = Q(x)y n
dx
is called a Bernoulli’s equation.

Note that this is just a first order linear equation if n = 0 or 1.

In other cases, it can be reduced to a linear equation by the substitution z = y 1−n .


Bernoulli’s Equations

A first order equation of the form


dy
+ P(x)y = Q(x)y n
dx
is called a Bernoulli’s equation.

Note that this is just a first order linear equation if n = 0 or 1.

In other cases, it can be reduced to a linear equation by the substitution z = y 1−n .

Multiplying the Bernoulli’s equation through by y −n gives


dy
y −n + P(x)y 1−n = Q(x).
dx
We further multiply it through by the constant 1 − n (???)
We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx
We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx

Differentiating z = y 1−n with respect to x gives


We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx

Differentiating z = y 1−n with respect to x gives


dz dy
= (1 − n)y −n .
dx dx
We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx

Differentiating z = y 1−n with respect to x gives


dz dy
= (1 − n)y −n .
dx dx

Appropriately replacing the terms in Equation 1 now gives a linear equation in z and x:
We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx

Differentiating z = y 1−n with respect to x gives


dz dy
= (1 − n)y −n .
dx dx

Appropriately replacing the terms in Equation 1 now gives a linear equation in z and x:
dz
+ (1 − n)P(x)z = (1 − n)Q(x).
dx
We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx

Differentiating z = y 1−n with respect to x gives


dz dy
= (1 − n)y −n .
dx dx

Appropriately replacing the terms in Equation 1 now gives a linear equation in z and x:
dz
+ (1 − n)P(x)z = (1 − n)Q(x).
dx

We complete the solution by solving the above as a linear equation


We further multiply it through by the constant 1 − n (???) to obtain
dy
(1 − n)y −n + (1 − n)P(x)y 1−n = (1 − n)Q(x). (1)
dx

Differentiating z = y 1−n with respect to x gives


dz dy
= (1 − n)y −n .
dx dx

Appropriately replacing the terms in Equation 1 now gives a linear equation in z and x:
dz
+ (1 − n)P(x)z = (1 − n)Q(x).
dx

We complete the solution by solving the above as a linear equation and substituting y 1−n for z.
Homework

Solve the following Bernoulli’s equations:

1. xy 0 + y = x 4 y 3
Homework

Solve the following Bernoulli’s equations:

1. xy 0 + y = x 4 y 3
2. xy 2 y 0 + y 3 = x cos x
Homework

Solve the following Bernoulli’s equations:

1. xy 0 + y = x 4 y 3
2. xy 2 y 0 + y 3 = x cos x
3. xdy + ydx = xy 2 dx
Homework

Solve the following as linear equations treating x as the dependent variable and y as the
independent variable:
Homework

Solve the following as linear equations treating x as the dependent variable and y as the
independent variable:

1. (e y − 2xy )y 0 = y 2
Homework

Solve the following as linear equations treating x as the dependent variable and y as the
independent variable:

1. (e y − 2xy )y 0 = y 2
2. y − xy 0 = y 0 y 2 e y
Homework

Solve the following as linear equations treating x as the dependent variable and y as the
independent variable:

1. (e y − 2xy )y 0 = y 2
2. y − xy 0 = y 0 y 2 e y
dx
3. f (y )2 dy + 3f (y )f 0 (y )x = f 0 (y )

You might also like