



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































It follows from the discussion in Section 1.3 that any first order differential equation can be written as F (x, y, y′) = 0
by moving all nonzero terms to the left hand side of the equation. To be a first order differential equation, y′^ must appear explicitly in the expression F. Our study of first order differential equations requires an additional assumption, namely that the equation can be solved for y′. This means that we can write the equation in the form
y′^ = f (x, y). (∗)
The study of first order differential equation is somewhat like the treatment of techniques of integration in Calculus II. There we had a variety of ”integration methods” (integration by parts, trigonometric substitutions, partial fraction decomposition, etc.) which were applied according to the form of the integrand. In this chapter we will learn some solution methods for (∗) which will correspond to the form of the function f.
A first order differential equation y′^ = f (x, y) is a linear equation if the function f is a “linear expression” in y. That is, the equation is linear if the function f has the form
f (x, y) = P (x)y + q(x).
(c.f. the linear function y = mx + b.)
The solution method for linear equations is based on writing the equation as y′^ − P (x)y = q(x) which is the same as y′^ + p(x)y = q(x)
where p(x) = −P (x). We will focus on the latter form. The precise definition of a linear equation that we will use is:
FIRST ORDER LINEAR DIFFERENTIAL EQUATION The first order differen- tial equation y′^ = f (x, y) is a linear equation if it can be written in the form
y′^ + p(x)y = q(x) (1)
where p and q are continuous functions on some interval I. Differential equations that are not linear are called nonlinear differential equations.
Example 1. Some examples of linear equations are:
(a) y′^ = 2xy. Written in the form (1): y′^ − 2 xy = 0, where p(x) = − 2 x, q(x) = 0 are continuous functions on (−∞, ∞).
(b) y′^ + 2xy = x is already in the form (1): p(x) = 2x, q(x) = x continuous on (−∞, ∞).
(c) xy′^ + 2y = e^3 x x.^ Written in the form (1):
y′^ +
x y^ =^
e^3 x x^2 , where p(x) = 2/x, q(x) = e^3 x/x^2 are continuous functions on any interval that does not contain 0. For example, (0, ∞) or (−∞, 0) each satisfy this requirement.
(d) (1 − x^2 )y′^ + 2xy = x^2 − 1. Written in the form (1):
y′^ + 2 x 1 − x^2 y = − 1 ,
where p(x) = 2 x 1 − x^2 , q(x) = −1 are continuous on any interval that does not contain 1 and −1. For example, (− 1 , 1) or (1, ∞) each satisfy this requirement.
Solution Method for First Order Linear Equations
Step 1. Identify: Can you write the equation in the form (1): y′^ + p(x) y = q(x)? If yes, do so.
Step 2. Calculate
h(x) =
p(x) dx
(omitting the constant of integration) and form eh(x).
Step 3. Multiply the equation by eh(x)^ to obtain
eh(x)y′^ + eh(x)^ p(x) y = eh(x)^ q(x). (Note: Since eh(x)^6 = 0, this equation is equivalent to the original equation; no solutions have been added.) Verify that the left side of this equation is
eh(x)^ y
Thus we have (^) [ eh(x)^ y
= eh(x)^ q(x).
(4) Integrate: ex^2 y =
x ex^2 dx = 12 ex^2 + C
and y = e−x^2
1 2 e x^2 + C
= 12 + C e−x^2.
Thus, y = 12 + C e−x^2 is the general solution of the equation.
Example 3. Find the general solution of
xy′^ + 2y = e^3 x x.
SOLUTION
(1) After dividing the equation by x, we get
y′^ + x^2 y = e
3 x x^2. The equation is linear; p(x) = 2/x, q(x) = e^3 x/x^2 , continuous functions on (0, ∞).
(2) Calculate the integrating factor:
h(x) =
2 /x dx = 2 ln x = ln x^2 and eh(x)^ = eln^ x^2 = x^2.
(3) Multiply by the integrating factor:
x^2 y′^ + 2x y = e^3 x [ x^2 y
= e^3 x^ (verify this)
(4) Integrate: x^2 y =
e^3 x^ dx = 13 e^3 x^ + C and y = e
3 x 3 x^2 +^
x^2.
Thus, y = e^3 x 3 x^2 +^
x^2 is the general solution of the equation.^
Example 4. Find the solution of the initial-value problem
x^2 y′^ − x y = x^4 cos 2x, y(π) = 2π.
SOLUTION The first step is to find the general solution of the differential equation. After dividing the equation by x^2 , we obtain
y′^ − 1 x y = x^2 cos 2x, (∗)
a linear equation with p(x) = − 1 /x and q(x) = x^2 cos 2x, continuous functions on (0, ∞).
Set h(x) =
(− 1 /x) dx = − ln x = ln x−^1. Then eh(x)^ = eln^ x−^1 = x−^1.
Multiplying (∗) by x−^1 we get
x−^1 y′^ − x−^2 y = x cos 2x which is
x−^1 y
= x cos 2x. (verify this)
It now follows that
x−^1 y =
x cos 2x dx + C = 12 x sin 2x + 14 cos 2x + C. (integration by parts)
Thus, the general solution of the differential equation is
y = 12 x^2 sin 2x + 14 x cos 2x + Cx.
We now apply the initial condition: y(π) = 2π implies 12 π^2 sin 2π + 14 π cos 2π + Cπ = 2 π 1 4 π^ +^ Cπ^ =^2 π C = (^74)
The solution of the initial-value problem is y = 12 x^2 sin 2x + 14 x cos 2x + 74 x.
A Special Case
There is a special case of equation (1) which will be useful later. If q(x) = 0 for all x ∈ I, then (1) becomes
y′^ + p(x)y = 0. (3)
Following our solution procedure, we multiply this equation by e
∫ (^) p(x) dx , to obtain
e
∫ (^) p(x) dx y′^ + p(x) e
∫ (^) p(x) dx y = 0
(i) [f (x) + g(x)]′^ = f ′(x) + g′(x) (“the derivative of a sum is the sum of the deriva- tives.” ) (ii) [c f (x)]′^ = c f ′(x), c a constant (“the derivative of a constant times a function is that constant times the derivative of the function.” )
Any “operation” that has these two properties is said to be a linear operation. Another example of a linear operation is integration: ∫ [f (x)+g(x)] dx =
f (x) dx+
g(x) dx and
c f (x) dx = c
f (x) dx, c any constant.
Now consider the first order linear equation y′^ + p(x)y = q(x).
We can regard the left-hand side of the equation, L[y] = y′^ + p(x)y, as an “operation” that is performed on the function y. That is, the left-hand side says “take a function y, calculate its derivative, and then add that to p(x) times y.” The equation asks us to find a function y such that the operation L[y] = y′^ + p(x)y produces the function q.
Example 6. Consider the differential equation y′^ +
x y^ = 3x. Here L[y] = y′^ + x^1 y.
Let’s calculate L[y] for some functions y = y(x):
If y(x) = x^3 , then
L[x^3 ] = [x^3 ]′^ +
x [x
(^3) ] = 3x (^2) + x (^2) = 4x (^2).
Thus, L[x^3 ] = 4x^2. If y(x) = xex, then
L[xex] = [xex]′^ +^1 x [xex] = xex^ + ex^ + ex^ = xex^ + 2ex.
Thus, L[xex] = xex^ + 2ex. If y(x) = x^2 , then
L[x^2 ] = [x^2 ]′^ +^1 x [x^2 ] = 2x + x = 3x;
that is, y = x^2 is a solution of the given differential equation; y = x^3 and y = xex^ are not solutions of the equation.
The “operation” L defined by L[y] = y′^ + p(x)y where p is a given function, is a linear operation:
L[f (x) + g(x)] = [f (x) + g(x)]′^ + p(x)[f (x) + g(x)] = f ′(x) + g′(x) + p(x)f (x) + p(x)g(x)
= f ′(x) + p(x)f (x) + g′(x) + p(x)g(x) = L[f (x)] + L[g(x)]
and
L[cf (x)] = [cf (x)]′^ + p(x)[cf (x)] = cf ′(x) + cp(x)f (x) = c[f ′(x) + p(x)f (x)] = cL[f (x)].
The fact that the operation L[y] = y′^ + p(x)y is a linear operation is the reason for calling y′^ + p(x)y = q(x) a linear differential equation. Also, in this context, L is called a linear differential operator.
Exercises 2.
Find the general solution.
x y^ =^ x e
x.
y′^ + 2xy = 2x.
xy′^ − 2 y = −x.
dy dx −^ y^ =^ −^2 e
−x.
dy dx +^ y^ cot^ x^ = csc
(^2) x.
Exercises 31 – 33 are concerned with the linear equation (a) y′^ + p(x)y = 0 where p is a continuous function on some interval I.
Exercises 34 – 35 are concerned with the linear equation (b) y′^ + p(x)y = q(x) where p and q are continuous functions on some interval I.
∫ (^) x c p(t)^ dt. Show that
y(x) = e−h(x)
∫ (^) x
c
q(t)eh(t)^ dt
is the solution of (b) that satisfies the initial condition y(c) = 0.
A first order differential equation y′^ = f (x, y) is a separable equation if the function f can be expressed as the product of a function of x and a function of y. That is, the equation is separable if the function f has the form
f (x, y) = p(x) h(y).
where p and h are continuous functions.
The solution method for separable equations is based on writing the equation as 1 h(y) y
′ (^) = p(x)
or q(y) y′^ = p(x) (1)
where q(y) = 1/h(y).
Of course, in dividing the equation by h(y) we have to assume that h(y) 6 = 0. Any numbers r such that h(r) = 0 may result in singular solutions of the form y = r.
If we write y′^ as dy/dx and interpret this symbol as “differential y” divided by “differential x,” then a separable equation can be written in differential form as
q(y) dy = p(x) dx.
This is the motivation for the term “separable,” the variables are separated.
Solution Method for Separable Equations
Step 1. Identify: Can you write the equation in the form (1). If yes, do so.
In expanded form, equation (1) is
q(y(x)) y′(x) = p(x).
Step 2. Integrate this equation with respect to x: ∫ q(y(x)) y′(x) dx =
p(x) dx + C C an arbitrary constant
which can be written (^) ∫ q(y) dy =
p(x) dx + C
by setting y = y(x) and dy = y′(x) dx. Now, if P is an antiderivative for p, and if Q is an antiderivative for q, then this equation is equivalent to
Q(y) = P (x) + C. (2)
Example 2. Show that the differential equation
y′^ = xy − y y + 1 (y^6 =^ −1)
is separable. Then
SOLUTION Here
f (x, y) = xy − y y + 1 =^
y(x − 1) y + 1 = (x^ −^ 1)^
y y + 1. Thus, f can be expressed as the product of a function of x and a function of y so the equation is separable.
Writing the equation in the form (1), we have y + 1 y y′^ = x − 1 (y 6 = 0)
or (^) ( 1 +
y
y′^ = x − 1;
the variables are separated. Integrating with respect to x, we get ∫ ( 1 +^1 y
dy =
(x − 1) dx + C
and y + ln |y| = 12 x^2 − x + C
is the general solution. Again we have y defined implicitly as a function of x. Note that y = 0 is a solution of the differential equation (verify this), but this function is not included in the general solution (ln 0 does not exist). Thus, y = 0 is a singular solution of the equation.
To find a solution that satisfies the initial condition, set x = 2, y = 1 in the general solution: 1 + ln 1 = 12 (2)^2 − 2 + C which implies C = 1.
A particular solution that satisfies the initial condition is: y + ln |y| = 12 x^2 − x + 1.
Example 3. Show that the differential equation
y′^ = xey−x
is separable and find the general solution.
SOLUTION Since ey−x^ = e−xey^ we have f (x, y) = xey−x^ = xe−xey^. Thus, f can be expressed as the product of a function of x and a function of y; the equation is separable.
We have y′^ = xey−x^ = xe−xey^.
To write the equation in the form (1), divide by ey^ (i.e., multiply by e−y^ ) to get
e−y^ y′^ = xe−x.
(Note: Since e−y^6 = 0 for all y, there will be no singular solutions.)
Integrating this equation with respect to x we get ∫ e−y^ dy =
xe−x^ dx + C
−e−y^ = −xe−x^ − e−x^ + C (integration by parts)
e−y^ = xe−x^ + e−x^ + C (the general solution).
Again, the general solution gives y implicitly as a function of x. However, in this case we can solve for y by applying the natural log function:
−y = ln (xe−x^ + e−x^ + C) y = − ln (xe−x^ + e−x^ + C).
Example 4. As you can check, the differential equation
y′^ = xy + 2x
is both linear and separable so it can be solved using either method. We’ll solve it as a separable equation. You should also solve it as a linear equation and compare the two approaches.
Rewriting the equation in the form (1), we have 1 y + 2 y
′ (^) = x (y 6 = −2).
Integrating this equation, we get ∫ 1 y + 2 dy^ =
x dx + C
ln | y + 2| = 12 x^2 + C (general solution)
x^2 y′^ = y − xy, y(−1) = −1.
y′^ = 6e^2 x−y, y(0) = 0.
xy′^ − y = 2x^2 y, y(1) = 1.
dy dx =^
ex−y 1 + ex^ ,^ y(1) = 0.
1 − y^2 1 − x^2 , y(0) = 0.
Find the general solution. (These equations are a mixture of linear, separable and Bernoulli equations.)
x(1 + y^2 ) + y(1 + x^2 )y′^ = 0.
xy′^ = y + x^2 ex.
xy′^ + y − sec x = 0.
(xy + y)y′^ = x − xy.
dy dx = 2x^ −^2 xy.
HOMOGENEOUS EQUATIONS A first-order differential equation y′^ = f (x, y) is homogeneous if f (λx, λy) = f (x, y) for all λ 6 = 0. The change of variable defined by y = vx, dy/dx = v +x dv/dx transforms a homogeneous equation into a separable equation: dy dx =^ f^ (x, y)^ becomes^ v^ +^ x
dv dx =^ f^ (x, vx) =^ f^ (1, v) which is a separable equation in x and v. Show that each of the following differential equations is homogeneous and find the general solution of the equation.
dy dx =^
x^2 + y^2 2 xy.
dy dx =^
y x + √xy.
(^2) ey/x (^) + y 2 xy
(^4) + 2y 4 xy^3
( (^) y x
x^2 − y^2 x.
The differential equation for this family is
y′^ = y^ −^1 x − 2 (verify this) (d)
Comparing equations (b) and (d) we see that right side of (b) is the negative reciprocal of the right side of (d). Therefore, we can conclude that if P (x 0 , y 0 ) is a point of intersection of one of the circles and one of the lines, then the line and the circle are perpendicular (orthogonal) to each other at P. The following figure shows the two families drawn in the same coordinate system.
-1 1 2 3 4 5
1
2
3
4
5
A curve that intersects each member of a given family of curves at right angles (orthog- onally) is called an orthogonal trajectory of the family. Each line in (c) is an orthogonal trajectory of the family of circles (a) [and conversely, each circle in (a) is an orthogonal trajectory of the family of lines (c)]. In general, if
F (x, y, c) = 0 and G(x, y, K) = 0
are one-parameter families of curves such that each member of one family is an orthogonal trajectory of the other family, then the two families are said to be orthogonal trajectories.
A procedure for finding a family of orthogonal trajectories G(x, y, K) = 0 for a given family of curves F (x, y, C) = 0 is as follows:
Step 1. Determine the differential equation for the given family F (x, y, C) = 0.
Step 2. Replace y′^ in that equation by − 1 /y′; the resulting equation is the differential equation for the family of orthogonal trajectories.
Step 3. Find the general solution of the new differential equation. This is the family of orthogonal trajectories.
Example Find the orthogonal trajectories of the family of parabolas y = Cx^2.
SOLUTION You can verify that the differential equation for the family y = Cx^2 can be written as y′^ = 2 y x.
Replacing y′^ by − 1 /y′, we get the equation
− 1 y′^ =^2 y x which simplifies to y′^ = − x 2 y
a separable equation. Separating the variables, we get
2 y y′^ = −x or 2 y dy = −x dx.
integrating with respect to x, we have
y^2 = −
2 x
(^2) + C or x^2 2 +^ y
This is a family of ellipses with center at the origin and major axis on the x-axis.
-4 -2 2 4
1
2
3
Exercises 2.3.
Find the orthogonal trajectories for the family of curves.
Find the orthogonal trajectories for the family of curves.
Show that the given family is self-orthogonal.