0% found this document useful (0 votes)
29 views23 pages

11Ma2aPracLectures1 5

Uploaded by

Dinura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views23 pages

11Ma2aPracLectures1 5

Uploaded by

Dinura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Math 2a Prac

Lectures on Differential Equations∗


Prof. Dinakar Ramakrishnan
272 Sloan, 253-37 Caltech
Office Hours: Fridays 4–5 PM


Based on notes taken in class by Stephanie Laga, with a few added comments

1
Lecture 1
A differential equation, often shortened as diffEq or just DE, is an equa-
tion involving the derivatives of a function y = f (t), where t is an independent
variable. Here the dependent variable y could be just a single variable, which
is what we will consider at the beginning, or a vector (y1 , . . . , yn ) in n-space;
our main focus will be on n = 2, 3. The diffEq is called ordinary, and written
as ODE, unless the equation contains partial derivatives, in which is case it is
called a partial differential equation, abbreviated as PDE. In this course we
will deal mostly with ODE’s, though some partial derivatives will at times
be used in their analysis. The order of an ODE is the highest order of the
derivatives which appear.
Examples:

(1) In classical Mechanics, Newton’s law (in 1 dimension) says

dv
F = ma, a = , t ≥ 0.
dt
It is a first order ODE in v, the velocity.
2
Moreover, v = dx
dt
, where x is the position, so the force is F = m ddt2x ,
and we obtain a second order ODE in the independent variable x.
Suppose you want to solve F = m dv
dt
, with fixed mass m. One can
break up into three cases:

(i) F = 0 (no force):

dv
⇒ = 0 =⇒ v = v0 , the initial value :
dt
This is the principle of inertia: If there is no force acting on a
particle, it stays its course, i.e., remains at rest (for v0 = 0), or it
moves at constant non-zero speed (when v0 ̸= 0); the sign of v0
gives the direction.
(ii) F = c ̸= 0 (constant non-zero force)
e.g. c = mg: the case of a “freely falling particle”
dv
F =m = mg =⇒ v = gt + v0
dt

2
dx t2
v= =⇒ x = g + v0 t + x0 ,
dt 2
where x0 is the initial position.
(iii) F non-constant:
F = mg − γv
dv
m = mg − γv Two forces : ↓ mg ↑ drag = −γv, γ : constant
dt ( )
mg
= −γ v −
γ
mg dv
Stationary point: v = ⇔ =0
γ dt
To get non-stationary solutions v ̸= mgγ
, divide by v − mg
γ
̸= 0 and
obtain
1 dv γ
=−
(v − γ ) dt
mg
m
∫ ( ) ∫
1 dv γ
⇒ dt = − dt + C
v − mgγ
dt m
Want to find a function φ(v) such that
dφ 1
=
dv v − mg
γ

By applying the chain rule,


dφ 1 dv
= ,
dt v − mg
γ
dt
implying ( )
mg

φ(v) = ln v −
γ
up to a constant. We get ln |v − mg
γ
| = −m
γ
t+C, which we exponentiate
to get


v − mg = eln(v− γ ) = e− mt
mg γ
+C
γ
γ
= Ae− m t , where A = eC > 0
mg γ
⇒v− = ±Ae− m t
γ

3
So, including the stationary solution as well, we get
γ
v= mg
γ
+ Be− m t ,

where B is any constant; B = 0 corresponds to the stationary state.


When t = 0, v = mg
γ
+ B, thus B = v0 − mg
γ
.
dx
Since v = dt
, we may integrate the expression for v to get
mg ( γ ) γt
x = x0 + t + g − v0 e m .
γ m

(2) Radioactive decay:


dP
= −λP, λ > 0 : decay constant
dt
1st order ODE in P (t):
1 dP
= −λ
P dt
∫ ( ) ∫
1
dP dt dt = −λ dt + C
P
ln |P | = −λt + C
exponentiating |P | = Ae−λt , A = eC

P = ±Ae−λt

At t = 0, P0 = B, so
P = P0 e−λt .

Asymptotic: limt→∞ e−λt = 0, since λ > 0.

(3) Population growth of rabbits:


Idealized situation:
dP
= λP, λ > 0
dt
A better model:
dP
= λP − M,
dt
4
where the correction factor M accounts for( deaths)in the population,
and still λ > 0. Writing the ODE as dPdt
=λ P−M λ
, we see that there
is a unique stationary point, also called the equilibrium solution:
M
P = .
λ
If P ̸= M
λ
,
1 dP

P − M/λ dt

M
ln P − = λt + C
λ
M M
P− = Beλt ⇒ P = + Beλt
λ λ

All these examples led to the same type of equation, namely,


dy
dx
= ay + b,

and the solutions involve exponentials.

5
Lecture 2
Recall that an ordinary diffEQ is an equation involving derivatives of a
function y = f (x) of an independent variable x. We write

dm y
y (m) = , the m-th derivative
dxm
dy
Convention: y (1) = dx , y (0) = y.
Such an ODE is of order n if the highest derivative which occurs in the
equation is
dn y
,
dxn
so an ODE (in one independent variable x) of order n looks like

F (y, y (1) , . . . , y (n) ) = g(x),

where g(x) is independent of y.


n = 1 : F (y, y ′ ) = g(x).
Note that the ODE ( )2
dy
− 2y = 3
dx
has order 1, not 2. Some say the degree of this equation is 2, because of the
appearance of the square of y ′ on the left hand side (LHS), but still the order
is 1.
Other examples:

(i) Earlier we looked at y ′ = ay + b, with a, b constants, F (y, y ′ ) = y ′ − ay,


and g(x) = b.
A simpler equation is y ′ = ax + b:

F (y, y ′ ) = y ′ , g(x) = ax + b

Solution : y = (ax + b)dx + c
2
Get y = a x2 + bx + c, c = y0 = y(0)

(ii) y ′ = ay + bx, F (y, y ′ ) = y ′ − ay, g(x) = bx: Solution?

6
Definition: An ODE F (y, y (1) , . . . , y (n) ) = g(x) is linear iff each term in
F is linear. In particular, if we scale y to ay, then each term should multiply
by a. This means F cannot have terms like y 2 or yy ′ . For the latter case, note
that when y 7→ ay, y ′ also gets scaled by a, and so yy ′ becomes multiplied by
a2 . (We say yy ′ is a quadratic term.) Note that the coefficients of a linear
equation can be functions of the independent variable x.
Examples of other non-linear equations:

(a) yy ′′ = x + 2

(b) y ′′ + 3y ′ + 4y 3 = 0

(c) y ′′ = sin y

The last equation is non-linear as sin(y1 +y2 ) ̸= sin(y1 )+sin(y2 ). Note also
that the first order equation (y ′ )2 − 2y = 3 mentioned earlier is non-linear.
A linear ODE of order n looks like

(∗) a0 (x)y + a1 (x)y ′ + a2 (x)y ′′ + · · · + an−1 (x)y n−1 + an (x)y n = g(x),

an (x) ̸= 0
A simple but commonly occurring example of a linear ODE is

d2 y
= ct,
dt2
where c is a constant. This is the case, for instance, in Hooke’s law for
springs, where y is the displacement and c = −k/m, k: spring constant and
m: mass.
A linear ODE has constant coefficients iff it is of the form

a0 y + a1 y ′ + a2 y ′′ + · · · + an y n = g(x)

where a1 , a2 , a3 . . . an are constants, so independent of x.


As we will see later, such an equation can be solved with the help of
matrices by converting it to a linear system of first order equations.
If given a linear ODE like (∗), one can ask if given any solution y1 , any
scalar multiple cy1 is also a solution. Consider for example,

y ′ = ay + b.

7
If y1 is a solution, then (cy1 )′ = cy1′ = c(ay1 + b) = a(cy1 ) + bc. Thus cy1
won’t be a solution (for c ̸= 1), except when b = 0; RHS is 0.
Same argument for order m:
Scaling gives new solutions to (∗) iff g(x) is identically 0.
Definition A linear ODE is homogeneous iff it’s of the form

a0 (x)y + a1 (x)y ′ + · · · + an (x)y n = 0.

Suppose we have a linear ODE (∗). If y1 and y2 are two different solutions,
then y1 − y2 is a solution of the homogeneous cousin of (∗), namely

(∗∗) a0 (x)y + a1 (x)y ′ + · · · + an (x)y n = 0.

Moreover if we have a particular solution y1 of (∗), and if y2 is a solution of


(∗∗), then y1 + y2 is a solution of (∗).
n = 1: A linear ODE of order 1 is of the form

a0 (x)y + a1 (x)y ′ = g(x), with a1 (x) ̸= 0.

We may rewrite it as
a0 g
y ′ = −b0 (x)y + h(x), b0 = , h= .
a1 a1
Suppose y1 = u1 (x) and y2 = u2 (x) are both solutions of

y ′ = −b0 (x)y + h(x).

then (y1 − y2 )′ = −b0 (x)(y1 − y2 ), showing that y1 − y2 is a solution of the


homogeneous form y ′ = −b0 (x)y.
Let’s now review how we solved (last time) the equation

y ′ = ay + b.
( )
We wrote the right hand side (RHS) as a y + ab and first noted that there
is a unique stationary point given by y = − ab . Moreover, when y ̸= f racba,
we may divide both sides by y + ab and get
dy
dx
b
= a.
y+ a

8
Integrating both sides relative to x,
∫ ∫
dy/dx
dx = adx + c.
y + ab

If u(x) = ln |y + ab |, then du
dy
= 1
b , and by chain rule,
y+
a

du 1 dy
= b
· .
dx y+ a
dx

Thus
b
ln |y + | = ax + c
a
b
⇒ |y + | = eax+c = Aeax
a
b
⇒ y = − + Aeax
a
When x = 0, y = y0 = − ab ± A, and consequently, the final solution is

y = − ab + (y0 + ab )eax .

If we had started with the stationary solution, i.e., with y0 = − ab , y will for-
ever remain the same as y0 . Otherwise, the term involving eax will dominate
for large ax.

9
Lecture 3
First Order ODE:
dy
= f (t, y)
dt
- Very hard in general to solve explicitly in closed form.
Things to do:

1) To get a qualitative picture, look at the slope field (or the gradient
field), obtained by drawing short arrows in the direction of y ′ (t) at
a grid of points in the (t, y)-plane. One calculates the slope (of the
arrows) as f (ti , yi ) at the selected points (ti , yi ). Of importance are the
equilibrium points, which are the points where dy/dt = 0; these are
the stationary points.

2) If f (t, y) is independent of y, say dy


dt
= g(t), with g(t) integrable, then
the solutions are given by the indefinite integral

y = g(t)dt,

which is determined only up to a constant c. If we know y0 = y(0),


the initial condition, we can find c. Otherwise there will be infinitely
many solutions.
One way to guarantee that g is integrable is for it to be continuous.

3) If f (y, t) is independent of t, i.e.

dy
− φ(y) = 0 (*)
dt
the equilibrium solution is given by φ(y) = 0. When φ(y) ̸= 0, (∗)
becomes
1 dy
φ(y) dt
= 1.
Integrating, ∫ ( )
1 dy
dt = t + c
φ(y) dt
1
We can solve this if we can integrate φ(y)
dy/dt.

10
For example, when φ(y) = y + a

dy/dt
dt = t + c
y+a
| {z }
ln |y+a|

By chain rule,
d dy/dt
ln |y + a| = ,
dt y+a
and exponentiating both sides, we obtain |y + a| = et+c , an thus, for
a non-stationary solution, y = −a + (±ec )et . Clearly, ±ec can take on
any non-zero value B. The final solution is

y = −a + Bet ,

B is any constant; the solution is stationary iff B = 0.


4) Separation of variables:
Check to see if f (y, t) factors as φ(y)g(t). If so,
dy
= φ(y)g(t)
dt
can be solved as in case 3): Firstly, the stationary solutions are given
by φ(y) = 0 (if g(t) ̸= 0). If φ(y) ̸= 0 we can write
∫ ( ) ∫
1 dy
dt = g(t)dt + c,
φ(y) dt
1
and one can proceed further if φ(y)
dy/dt and g(t) can be integrated.
Example:
dy
= yt.
dt
The stationary solutions are when y = 0, and when y ̸= 0,
∫ dy ∫
dt
dt = tdt + c,
y
yielding
1
ln y = t2 + c, c = y0 .
2

11
5) The case of Leibniz:

(∗) y ′ + h(t)y = g(t), i.e., f (y, t) = g(t) − h(t)y.

Idea: Multiply both sides by a suitable factor u(t), called an integrat-


ing factor, satisfying
d
( ) (u(t)y) = u(t)(y ′ + h(t)y).
dt
Why is it useful?
Suppose we have found some u(t) so that ( ) holds. Then we can
multiply the given ODE (∗) by u(t) on both sides to get

u(t)[y ′ + h(t)y] = u(t)g(t)


| {z }
d
= dt (u(t)y)

Integrating both sides relative to t, we get


∫ [ ] ∫
d
(u(t)y) dt = u(t)g(t)dt + c
dt

By the Fundamental Theorem of Calculus, u(t)y = u(t)g(t)dt + c.

1
=⇒ y = u(t)g(t)dt + c
u(t)

Can we find u(t) st ( ) holds? YES if h(t) is integrable. indeed, we


have
d
(u(t)y) = u(t)y ′ + u′ (t) y.
dt | {z }
=u(t)[y ′ +h(t)y]

So we want u(t) to satisfy:

u′ (t) = u(t)h(t),

which doesn’t involve y. Then

d u′ (t)
(ln |u(t)|) = = h(t),
dt u(t)

12
implying that we may choose u such that

ln|u(t)| = h(t)dt + c,

so that ∫
h(t)dt
u(t) = Be ,
for a constant B, which we may take to be 1. (We just need to find
some factor u which works.) In other words,


− h(t)dt
y=e eh(t)dt g(t)dt + c

An Example of Leibniz’s method

(∗) y ′ = t2 − ty.

To find the stationary solutions, we solve t2 − ty = 0, i.e., t(t − y) = 0, and


so the stationary solution is y = t. To find all solutions, rewrite (∗) as

y ′ + ty = t2 ,

so that
h(t) = t, and g(t) = t2
in the notation above. Then
∫ ∫ 1 2
h(t)dt tdt
u(t) = e =e = e2t ,

so that ∫
− 12 t2 1 2
y = e e 2 t · t2 dt + c,

which can be evaluated.

13
Mathematical Models
Given a physical (chemical, biological, financial, . . . ) system, do the fol-
lowing:

I) Try to identify the independent and dependent variables, and formulate


the problem as a mathematical equation, clearly noting the hypotheses
one makes;

II) Try to solve the equation analytically, and many practical situations
are described by differential equations;

III) Check if the solutions obtained from the model are compatible with
experimental observation.

A basic example: “Money in the bank”

M (t + ∆t) = M (t) + I(t)M (t)∆(t) + g(t)∆(t)

where M (t) is the amount of money in your account at time t, I the interest
rate (which could depend on t, but often taken to be fixed), ∆t a small incre-
ment in time, and g(t) the amount deposited minus the amount withdrawn
between t and t + ∆t. Subtracting M (t) from both sides and dividing by ∆t,
one gets
M (t + ∆t) − M (t)
= I(t)M (t) + g(t).
∆t
If one imagines that ∆t is very small, one can approximate this equation by
the first order, linear ODE
dM
= I(t)M + g(t).
dt
It has constant coefficients iff I(t) and g(t) are independent of t.

14
Lecture 4
Exact Equations
We have been looking at 1st order ODEs with one independent variable,
say x, and one dependent variable, say y, given by:
dy
= f (x, y).
dx
It is said to be a linear ODE if f (x, y) is linear in y, i.e., of the form
a(x)y + b(x), and the ODE is linear with constant coefficients when a, b
are independent of x. Note that we do not require f to be linear in both x
and y for the ODE to be linear.
Often f (x, y) is a quotient of functions such as
x2 sin y
.
y
(Clearly, the ODE is not linear in this example.)
We can clear denominators, and rewrite the ODE in the form
M (x, y) + N (x, y)y ′ = 0 (*)
Often it is not easy to solve for y explicitly in terms of x, but it may be
possible to express the solution as a relation ψ(x, y) = 0.
Example:
dy
(x + 1) − yy ′ = 0, y ′ = .
dx
Since yy ′ = 12 d(y 2 )/dx, we can show that the solutions are given by the points
on the hyperbola
(x + 1)2 − y 2 = c,
for an undetermined constant c. (Strictly speaking, in the degenerate case
c = 0, this describes the union of two lines with equations y = x + 1 and
y = −x − 1; moreover, for c ̸= 0, there is no (real) y if (x + 1)2 < c.) The
solutions can be written as
√ √
y = (x + 1)2 − c or y = − (x + 1)2 − c.
This is a simple example. In general, it is not so easy to solve for y precisely.
We may only be able to express y implicitly by writing the solution as a
relation between x and y.

15
Another Example:
dy
(ex sin y − 2y sin x) + (ex cos y + 2 cos x + sin y) =0
dx
The general solution will turn out to be

ψ(x, y) = c, with ψ(x, y) = ex sin y + 2y cos x − cos y.

Here we are unable to give a formula for y expressing it explicitly as a function


of x.
Let us consider again the general 1st order equation (∗). The situation is
good if we can rewrite (∗) in the form

d(ψ(x, y)) = 0 (**)

In this case, the general solution will simply be given by the relation

ψ(x, y) = c,

for a constant c, which we can evaluate if we know the initial value y0 at


x = x0 .
When (∗) can be converted to (∗∗), i.e., when we can find such a ψ, we
call (∗) an exact differential equation of the 1st order.
Suppose ψ(x, y) is differentiable (with continuous partial derivatives):

∂ψ ∂ψ
ψx = , ψy =
∂x ∂y

If the dependence of y on x is given by a function y = φ(x), then ψ becomes


a function of x and it makes sense to consider the total derivative dψ/dx.
For example, consider

ψ(x, y) = xy, y = φ(x).

when ψx = y and ψy = x. Moreover, since y = φ(x), ψ = xφ(x), which is


totally a function of of x, and

= φ(x) + xφ′ (x).
dx

16
In other words, since φ(x) = y = ψx and φ′ (x) = dy/dx,


= ψx + ψy y ′ . (1)
dx
This holds in general for ψ(x, φ(x)), not just in this example.
Let’s go back to (∗). We now realize that it can be rewritten as an exact
equation (∗∗) IFF we have

M = ψx , and N = ψy ,

for some function ψ(x, y). We need even a better criterion for the equation
(∗) to be exact, because in general we don’t know how to guess ψ(x, y). Some
times one can guess ψ, however!
Example:
(x + y) + (x − y) y ′ = 0.
| {z } | {z }
M (x,y) N (x,y)

Put
ψ(x, y) = (x2 + 2xy − y 2 )/2,
which is an easy guess! Then

ψx = x + y = M, and ψy = x − y = N.

So the ODE is exact and of the form dψ


dx
= 0, with solution ψ(x, y) = 0.
Warning! In general, as remarked above, it is not easy to guess ψ so
easily! Also the equation is not always exact, so there may be no ψ.
Here’s an idea on how to find ψ when it exists.
First Step: Determine if it is exact!
If there is a ψ, we may consider the second (mixed) partial derivatives

∂ 2ψ ∂ 2ψ
ψxy = , ψyx = ,
∂x∂y ∂y∂x
assuming ψ is twice differentiable.
Recall from Ma1a: If ψ is twice differentiable and has continuous 2nd
partial derivatives, denoted ψ ∈ C 2 , then

ψxy = ψyx .

17
Given (∗), we want to know if ∃ψ(x, y) and ψx = M and ψy = N . Sup-
pose M, N are continuously differentiable (i.e., M, N ∈ C 1 ). Then ψyx =
My , ψxy = Nx , so My = Nx .
Thus we have the following
Theorem Suppose M (x, y), N (x, y) are continuously differentiable in an
open rectangular region (a, b) × (c, d)in R2 . Then,

M (x, y) + N (x, y)y ′ = 0, (*)

with M, N continuously differentiable, is exact iff we have

(∗∗) My = Nx .

Second Step: Find ψ when (∗) is exact!


What we want: ψ(x, y), such that ψx = M and ψy = N . What we
know: M (x, y) + N (x, y)y ′ = 0, with My = Nx .
This forces ∫
ψ(x, y) = M (x, y)dx + g(y),

where the integration over x is performed


∫ by keeping y constant.
Usually one writes Q(x, y) = M (x, y)dx, so that

ψ(x, y) = Q(x, y) + g(y). (2)

Then ψx = Qx = M
Equation (1) implies ψy = Qy + g ′ (y). This should be N (x, y), so we need
g ′ (y) = N − Qy . ∫
⇒ g(y) = (N − Qy )dy + c1 ,

for a constant c1 (which we may take to be zero, as we want just any ψ which
works), and the integration over y is performed keeping x constant. Thus
∫ ∫
ψ(x, y) = M (x, y)dx + (N (x, y) − Qy ) dy.

We may also write this as


∫ ( ∫ )
d
ψ(x, y) = Q(x, y) + N (x, y) − M (x, y)dx dy.
dy

18
dy
Summary: Given M (x, y) + N (x, y) dx = 0 with M, N continuously differ-
entiable, we can express it as an exact equation dψ
dx
= 0 iff we have My = Nx .
In such a case, the general solution is given by ψ(x, y) = c. If we are given
an initial condition, say y = b when x = 0, then we can solve for c.

19
Lecture 5
Integrating Factors
Last time we looked at exact equations and obtained solutions of the form

ψ(x, y) = 0.

When we do this, we are writing y implicitly as a function of x, but not


explicitly. An example of an implicit expression for y (depending on x) is

x2 y 2
+ 2 = 1.
a2 b
Differentiating with respect to x,
2x 2y
(∗) M (x, y) + N (x, y)y ′ = 0, with M= 2
, N = 2.
a b
We also learned of a procedure to find ψ when the given equation (∗) is exact.
The idea is to find a function ψ(x, y) such that ψx = M and ψy = N . There
are two stages in finding a candidate ψ:
(i) ψ(x, y) = Q(x, y)
∫ + g(y),
with Q(x, y) = M (x, y)dx (integration with y fixed);

(ii) g(y) = (N (x, y) − Qy )dy (integration with x fixed)

Remark:
1) The exactness condition on (∗) is not always satisfied. However, one
has exactness if M is purely a function of x (i.e., independent of y)
and (simultaneously) N is purely a function of y (i.e., independent of
x), since in this case My = 0 = Nx ; this is the case of separation of
variables.

2) To check exactness, we need M and N to be continuously differentiable


with My = Nx .
Example:

0 = (ex sin y − 2y sin x) dx + (ex cos y + 2 cos x + 3 sin y) dy (*)


| {z } | {z }
M (x,y) N (x,y)

20
=⇒ My = ex cos y − 2 sin x ∗∗, Nx = ex cos y − 2 sin y.
Hence (∗) is exact. (All this makes sense because M and N are continuously
differentiable.) To find ψ, first solve for Q, then for g, and take ψ(x, y) =
Q(x, y) + g(y):

Q(x, y) = M (x, y)dx keeping y fixed in the integral

= ex sin y + 2y cos x
ψ(x, y) = Q(x, y) + g(y)
Qy = ex cos y + 2 cos x
N = ex cos y + 2 cos x + 3 sin y

g(y) = N (x, y) − Q(y)dy keeping x fixed

= 3 sin ydy = −3 cos y + c

Take
ψ(x, y) = Q(x, y) + (y)
= ex sin y + 2y cos x − 3 cos y
Solution of (∗): ex sin y + 2y cos x − 3 cos y = c.
If we had the initial condition y = 0 when x = 0, then we can solve for c:
e0 sin(0) + 2(0) cos(0) − 3 cos(0) = c so c = −3.

Many ODE’s are not exact:


Example:
(x + 2) sin ydx + x cos ydy = 0 (*)

M = (x + 2) sin y, so My = (x + 2) cos y
N = x cos y, so Nx = cos y, and My ̸= Nx .
Sometimes, it may happen that the given ODE (∗) is not exact, but it
becomes exact after multiplying it by an integrating factor. In other words,
dy
given M (x, y) + N (x, y) dx = 0,
My ̸= Nx , but for some u(t) we may have

21
(uM )y = (uN )x
In other words, the modified ODE
dy
u(x, y)M (x, y) + u(x, y)(N x, y) =0
dx
is an exact equation. Note:

(uM )y = (uN )x ⇔ uy M + uMy = ux N + uNx


=⇒ uy M − Mx N = u(Nx − My )

Even when such a u exists for (∗), it’s not easy to find. Here are a few tricks
to try (which work sometimes):
1) Take u to be purely a function of x. Then we need

−ux N = u(Nx − My )

If non zero,
−u′ (x) Nx − My
=
u(x) N
Nx −My
For this it is necessary and sufficient that N
is independent of y
Nx −My u′ (x)
Suppose N
= −φ(x) then = φx
u(x)

⇒ ln |u(x)| = φ(x)dx

⇒ u(x) = Be φ(x)dx
; can take B = 1.
Example:
(x + 2) sin y dx + x cos ydy = 0
| {z } | {z }
M N

My = (x2 ) cos y + Nx = cos y


Nx − My cos y − (x + 2) cos y −(x + 1)
= =
N x cos y x
So φ(x) = (x + 1)/x in this case. Try

u(x) = e φ(x)dx)
= e(x+ln |x|)+c ,

which suggests that we take u(x) = xex .

22
2) Same as 1) with x and y switched. Try to choose u to be just a function
of y
uy M = u(Nx − My ),
u′ (y) Nx −My
i.e., u(y)
= M
needs to be a function of y alone.
dy
3) Given M (x, y) + N (x, y) dx = 0 with My ̸= Nx , see if you can find a
u(x, y) st uN is independent of x. In this case, we only have to solve
(uM )y = (uN )x , whence (uM )y = 0.
Example:

(∗) x2 y 3 + x(1 + y 2 ) y ′ = 0.
|{z} | {z }
M (x,y) N (x,y)

Hence (∗) is not exact.

My = 3x2 y 2 , Nx = 1 + y 2 =⇒ My ̸= Nx .

Choose u(x, y) to be x1 h(y).


Then uN = h(y)(1 + y 2 ), which is independent of x.
We need to check if we can choose h(y) st (uM )y = 0:

uM = xy 3 h(y) =⇒ (uM )y = 3xy 2 h(y) + xy 3 h′ (y)

So we need, for xy ̸= 0,

3h(y) + yh′ (y) = 0,

which can be solved by taking

h(y) = y −3 .

Hence an integrating factor is given by

u(x, y) = y −3 (1 + y 2 ).

This can be used to get all the non-equilibrium solutions. (The equi-
librium solutions occur when xy = 0.)

23

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy