Applied3 Unit1 2011EC
Applied3 Unit1 2011EC
Recall that any function 𝑓 expresses interdependence between two or more variables. If 𝑦 = 𝑓(𝑥), then 𝑥 is
called the independent variable and 𝑦 is called the dependent variable of f. Similarly if 𝑦 = 𝑓(𝑥1 , 𝑥2 … 𝑥𝑛 ), , then the
variables 𝑥1 , 𝑥2 … 𝑥𝑛 ), are called the independent variables and 𝑦 is called the dependent variable of 𝑓.
Definition 1: A differential equation (DE) is an equation that contains the derivatives or differentials of an
unknown function, say y(x). It can also contain the dependent variable y itself and known functions of the
independent variable x.
a) 𝑦 ′′ = 𝑦 ′ e) 𝑥 2 𝑦 ′′ + 𝑥𝑦 ′ + (𝑥 2 − 4)𝑦 = 0
b) 𝑦 ′′ = 𝑦 ′ + y f) (𝑦 ′ )2 +𝑥𝑦 ′ − 𝑦 = 0
c) 𝑑𝑦 = [cos 𝑥]𝑑𝑥 g) 𝑦 ′′ + 9𝑦
d) 𝑦 ′′ + 9𝑦 = 0 h) 𝑦 2 + 𝑥𝑦 − 𝑦 = 0
Except (g) and (h), all are differential equations.
Example 2: Let 𝑧 be an unknown function of 𝑥 and 𝑦. Then equations (a) and (b) below are differential
equations but equation (c) is not.
a) 𝑧𝑥𝑥 + 𝑧𝑦𝑦 = 0
b) 𝑧𝑥𝑥 + 𝑧𝑦𝑦 = 𝑥 2 + y
c) z2 = 𝑥 2 + y
Note 1: An indefinite integration problem, i.e., the problem of finding a function y satisfying y = ∫ 𝑓(𝑥)𝑑𝑥 ,
where f is a given function, can be considered as the problem of solving the differential equation 𝑦 ′ = 𝑓(𝑥).
Thus integration can be considered as a specific case of differential equation.
d 2 x dy
Example 3: x y is a differential equation with dependent variables x and y and
dt 2 dt 2
independent variable t. Such equations appear in systems of differential equations.
Classifications of Differential Equations: There is no single procedure (method) that can be used to solve all
types of differential equations. In general divide and conquer method is used to solve differential equations, i.e., we classify
1
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
differential equations into several classes (types) , then devise a solution technique for certain classes and solve a
differential equation by a technique devised for its class.
Differential equations can be classified as ODE vs PDE; linear vs nonlinear; first order vs higher order; single vs
system; etc.
Definition 2: A differential equation is said to be an ordinary differential equation (ODE) if it contains ordinary
derivatives of an unknown function of a single variable. Likewise, it is said to be a partial differential equation (PDE) if it
contains partial derivatives of an unknown function of severable variables.
Example 4: All of the differential equations in Example 1 above are ODE’s and those in Example 2 are PDE’s.
Definition 3: A differential equation is said to be of order n if the order of the highest order derivative in it is n.
Example 5: In Example 1, the differential equations of (a), (b), (d) and (e) are second order where as those of (c)
and (f) are first order. In eg(2), equations (a) and (b) are second order PDE’s.
Remark: Every ODE of order n can be put in the form
𝐹(𝑥, 𝑦, 𝑦’, … . , 𝑦 [𝑛] ) = 0. (1)
Definition 4: The differential equation F (x, y, 𝑦 ′ ,…., y[n]) = 0 is said to be linear if F is a linear function in y,
𝑦 ′ ,…., y[n]. Otherwise it is called nonlinear. The differential equation F(x, y, 𝑦 ′ ,…., y[n]) = 0 is said to be a polynomial if F
is a polynomial in y, y’,…., y[n].
Example 6: Of the differential equations in eg.1, all are linear except equation (f).
If the functions pn , pn-1,…, p0 in (2)are constants , then the equation is called a linear ODE with constant coefficients.
Definition 5: The degree of a DE is the degree of the highest order derivative term which occurs when the DE is
written as (reduced to) a polynomial in the derivatives and the unknown function.
Example 7:
The next example illustrates all the notions defined so far altogether.
2
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Example 8:
5 3 2 1 Non- NA
d2y dy
x 2 15 y 0 linear
dx
2
dx
8 2V 2V 2V 2 1 linear homogeneous
0
x 2 y 2 z 2
9 2 3 1 Non- NA
3v 2v
k 2 linear
t 3 x
Definition 6: Any function (defined explicitly or implicitly) which is free of derivatives and which satisfies a DE
identically (on a certain domain I) is said to be a solution of the differential equation (on I).
3
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Definition 6*: A function ∅ is said to be a solution of the ODE (1) (on a set I ) if F(x, ∅, ∅′ ,…,∅[𝑛]) =0 is an
identity (on I ).
y 14 x 2
2
dy dy
x y 0.
dx dx
dy 1
=- x
dx 2
1
Substituting y and y ' in the DE respectively by 14 x 2 and - x yields
2
1 2
(- x) + x ( 14 x 2 ) – ( 14 x 2 ) =0 0=0.
2
Example 10: Show that x 3 x 2 y 2 y 3 2 is a solution of the equation x 2 6 y 2 y'3x 2 2 xy 0 .
3x 2 2 xy x 2 y'6 y 2 y' 0 or
x 2
6 y 2 y'3x 2 2 xy 0 , which is identical with the given differential equation, so
Another way to verify this is to solve for 𝑦 ′ from the last equation and plague the result in the given differential
equation. This converts the given differential equation into an equivalent identity, thus proving that the
aforementioned implicit function is a solution.
4
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
v e 3 x cos 2 y
2v 2v
2 2 =v
x 2 y
v 2v
Solution: =3e cos2y
3x
=9cos2ye 3 x and
x x 2
v 2v
=-2e 3 x sin2y =-4cos2ye 3 x
y y 2
2v 2v
Thus, 2 = v 9cos2ye 3 x +2(-4cos2ye) = e 3 x cos 2 y e 3 x cos 2 y = e 3 x cos 2 y
x 2 y 2
solutions (e.g. y ' e x ). Normally most DEs have infinitely many solutions and they can be represented by a single
formula having arbitrary constants. Usually, an n degree DE has n essential arbitrary constants.
a) general solution if it contains n essential arbitrary constants. (By essential we mean the number of the constants
cannot be reduced further);
b) particular solution if it can be obtained from a general solution by giving specific values to the arbitrary
constants;
c) singular solution if it cannot be derived from a general solution (i.e., if it is not a particular solution);
d) complete solution if it is a general solution and if the DE has no singular solutions, i.e., if all solutions of the DE
can be obtained from it.
𝑑𝑦 1
= 𝑥𝑦 2
𝑑𝑥
Then
y ( x 2 / 4 c) 2 ;
is a general solution.
𝑥4
When c=0, the resulting particular solution is 𝑦 = . But notice that 𝑦 = 0 is a singular solution since there is no
16
A solution of a DE is sometimes referred to as an integral of the equation and its graph is called an integral
curve, because the problem of finding solutions of a DE is more or less an extension of the ordinary problem of
integration.
Definition 8: An initial value problem (IVP) for an nth order DE is the DE along with n additional conditions
(called initial conditions) that the solution and its derivatives satisfy at the same point, x0.
F ( x, y, y' ,..., y n ) 0
[ n 1]
y( x0 ) a0 , y ( x0 ) a1 ,..., y ( x0 ) an1
'
(3)
Definition 9: A boundary value problem (BVP) is a DE together with additional conditions (called boundary conditions)
that the solution and its derivatives satisfy at two or more points.
Example 13: The problem 𝑦 ′′ + 2𝑦 ′ = 𝑒 𝑥 ; 𝑦(𝜋) = 1, 𝑦 ′ (𝜋) = 2 is an initial value problem because the two
subsidiary conditions are both given at x= 𝜋. The problem 𝑦 ′′ + 2𝑦 ′ = 𝑒 𝑥 ; 𝑦(0) = 1, 𝑦 ′ (1) = 1 is a boundary value
problem, because the side conditions are given at two points.
A solution of an IVP or a BVP is a function that both solves the DE and satisfies the side conditions.
An IVP may have no solution, a unique solution or infinitely many solutions. Questions of existence and uniqueness
for IVP of first ordered ODE are addressed by the following theorem, called Picard’s Theorem. A generalization of
Picard’s existence and uniqueness theorem to higher order IVP’s is given in Chapter 2.
6
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
𝑅: |𝑥 – 𝑥0 | ≤ 𝑎, |𝑦 – 𝑦0 | ≤ 𝑏
(so that there exists a nonnegative constant k such that |f(x, y) | k), then
the IVP (3) has at least one solution y(x) on some interval containing x0.
f
b) If, in addition, is continuous on R, then the solution is unique.
y
Example 14: The IVP 𝑦′ = 2𝑥𝑦, 𝑦(0) = 0 has a unique solution on any open interval centered at 0, since the
functions 𝑓(𝑥, 𝑦) = 2𝑥𝑦 and 𝑓𝑦 (𝑥, 𝑦) = 2𝑥 are continuous on any closed rectangle centered at (0, 0).
Note: The conditions of the existence and uniqueness theorem are sufficient but not necessary. The existence and
uniqueness theorem are also valid for certain system of first order equations. These theorems are also applicable to a
certain higher order ODE.
It is possible to get some information about the solution to a differential equation without actually having the
solution. A direction field (or slope field) is a picture of the general solution to a first order differential equation with
the form
𝑑𝑦
= 𝑓(𝑥, 𝑦)
𝑑𝑥
To graph the slope fields of the ODE y/ = f(x, y) ,we may proceed as follows.
Step 1: Sketch the graphs of f(x, y) = k for several values of k. These curves are called isoclines. An isocline is a
curve connecting points where the derivative will be constant.
Step 2: Sketch small line segments with slope k at various points on each isocline f(x, y) =k. These line segments
are called lineal elements and this picture is called a slope field.
Step 3: Sketch some curves that follow the lineal elements. These curves are called solution curves (integral curves.)
7
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Exercise 1.1:
𝑑2 𝑦
3. Is 𝑦 = 𝑠𝑖𝑛𝑥 a solution of 𝑑𝑥 2 + 𝑦 = 0?
d2y dy
2
8 16 y 0 .
dx dx
5. Find constants 𝑎, 𝑏, so that 𝑦(𝑡) = (𝑡 + 3)𝑒 2𝑡 is solution of the IVP
𝑦′ = 𝑎𝑦 + 𝑒 2𝑡 , 𝑦(0) = 𝑏.
6. Sketch the slope field of
𝑎) 𝑦′ = 1 𝑏) 𝑦′ = 𝑥.
8
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
A DE of the form
y' h( y) f ( x) (1)
dy
is called separable. Many first order ODEs can be changed to this form by algebraic manipulations. Since y ' ,
dx
so we find it convenient to write (1) as
If we assume that f and g are continuous functions, the integrals in (3) will exist, and by evaluating these integrals
we obtain the general solution of (1)
dy x
Example 1: Solve the initial-value problem , y(4) 3.
dx y
y2 x2
ydy xdx c1 and
2
2
c1 .
We can write the result of the integration as x 2 y 2 c 2 by replacing the constant 2c1 by c 2 . This solution of
the differential equation represents a family of concentric circles centered at the origin.
Now when x 4, y 3, so that 16 + 9 = 25 = c2. Thus the initial-value problem determines the circle
x 2 y 2 25 with radius 5. Because of its simplicity we can solve this implicit solution for an explicit solution that
satisfies the initial condition, thus y 25 x 2 , -5<x<5 is the solution for the initial value problem.
9
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
dy dx
1 y 1 x
dy dx
1 y 1 x c or ln 1 y ln 1 x ln c1 where c= ln c1 . Then after
rearranging and using the definition of logarithm we get the solution ln (1 x)(1 y) ln c1 or
(1 x)(1 y) c1 .
dy
Example 3: Solve the differential equation (1 y 2 ) (1 x 2 ) 0.
dx
dy dx
, then form
1 y 2
1 x2
dy dx
1 y 2
1 x2
c1 , we get the implicit solution
arctan y arctan x c1 .
arctan y c1 arctan x.
y tan(c1 arctan x).
Then using the subtraction formula for the tangent function we get
tan c1 tan(arctan x)
y .
1 tan c1 tan(arctan x)
If we let c tan c1 , and use the fact that tan(arctan x) x the last equation yields the explicit solution
cx
y .
1 cx
Exercise 1.2:
10
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
3. Solve the following IVP and find the interval of validity for the
𝑑𝑟 𝑟2
= ; 𝑟(1) = 2.
𝑑𝜃 𝜃
dy dv
variable 𝑦 is changed to another variable 𝑣. Then vx and the equation reduces to separable form.
dx dx
Solution: After rearranging we can put the equation in the equivalent form
𝑥 2 +𝑦 2
𝑦′ =
𝑥𝑦 − 𝑥 2
If we let y vx, then dy vdx xdv , so that after substitution, the given equation becomes
11
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
dx v 1
dv or
x v 1
dx 2
1 dv after long division
x v 1
ln x v 2 ln v 1 ln c
2
v ln x ln v 1 ln c or
y ( x y) 2
ln resubstitu ting v y / x and by the property of log arithms.
x cx
( x y) 2 cxe y / x .
dy 2 xy
Example 2: Solve 2 and find a solution subject to the condition that y 1 when x 1.
dx x y 2
dy dv
So putting y vx and v x , the above differential equation becomes:
dx dx
dv 2x 2v 2v
vx 2 or
dx x v x 2 2
1 v2
dv 2v v v3
x v .
dx 1 v 2 1 v2
dx 1 v 2
dv
x v v3
dx 1 2v
dv
x v 1 v2
12
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
ln x ln v ln(1 v 2 ) ln c,
cv
ln x ln
1 v2
cv y/x cxy
x c 2 or
1 v 1 ( y / x) 2
x y2
simply x 2 y 2 cy.
Substituting x=1 and y=1 in the last equation we obtain c=2. Hence the particular solution is x 2 y 2 2 y.
Solution: The ODE is in the form 𝑦′ = 𝐹(𝑎𝑥 + 𝑏𝑦 + 𝑐) . Putting x y v and differentiating both sides with
respect to 𝑥 we have
dy dv dy dv
1 or 1.
dx dx dx dx
dv
1 cot v 1
dx
dx tan vdv .
c
x ln cos v c or x ln .
cos v
13
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
c
Finally by re-substitution we get the solution x ln .
cos( x y )
dy
Example 4: Solve ( x y) 2
dx
𝑑𝑢 𝑑𝑦
Solution: Let u = x +y. Then 𝑑𝑥 = 1 + 𝑑𝑥. Using this substitution in the given OdE we get
𝑑𝑢
= u2 + 1. The last equation is separable and its general solution is 𝑡𝑎𝑛−1 (𝑢) = 𝑥 + 𝑐. Hence a general
𝑑𝑥
solution of the given ODE is x + y = tan(x + C).
dy a1 x b1 y c1
1.3.3 Equations of the form
dx a 2 x b2 y c2
dy dY
Substituting x X h, y Y k hence
dx dX
a1h b1k c1 = 0
{
a2 h b2 k c2 0
b1c2 b2 c1 c1a 2 c2 a1
h , k . Now two cases arise.
a1b2 a2 b1 a1b2 a2 b1
a1 b1
Case I: a1b2 a2 b1 0, i.e.
a 2 b2
14
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
dY a1 X b1Y
, which is homogeneous, and can be solved as examples 1 and 2 above.
dX a 2 X b2Y
Case II: a1b2 a2 b1 0, in this case we have a1 / a2 b1 / b2 1 / (say) then we can write a2 a1 and
dy a1 x b1 y c1
dx (a1 x b1 y) c2 (3)
dy dt
Here we substitute a1 x b1 y t which gives a1 b1 and therefore (3) becomes
dx dx
dt t c1
a1 b1
dx t c 2
dy 2 x 3 y 4
Example 5: Solve , given that y =1, when x =1.
dx 4x y 3
(1)
Let us chose h and k such that 2h + 3k –4 = 0, 4h + k –3 = 0 which give h = ½, k = 1. Then (1) becomes
dY 2 X 3Y
which is homogeneous.
dX 4X Y
Putting Y = VX, we get
dV 2 3V V 4 dX
VX or dV .
dX 4 V (V 1)(V 2) X
Using integration by partial fraction and integrating both sides of the last equation we get
dX (2 / 3) (5 / 3)
X
V 2 V 1
dV or
2 5
ln X ln C ln(V 2) ln(V 1)
3 3
15
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Y Y 2X Y X
Replacing V by gives 3 ln X 3 ln C 2 ln 5 ln
X X X
or 5 ln(Y X ) 2 ln(Y 2 X ) 3 ln C.
putting back X = x – h = x – ½ and Y = y – k = y – 1, we get
1
5 ln y x 2 ln( y 2 x 2) 3 ln C or
2
5
1
yx
2
C3 (2)
( y 2 x 2) 2
1
To find the constant of integration C we have y = 1 at x = 1, therefore C 3 and, in turn, (2) becomes
25
5
1
yx
2 1
5
( y 2 x 2) 2
2
dy a1 x b1 y c1
dx a 2 x b2 y c2
dy dv dy dv
Let x y v, then 1 or 1 . Then substitution these values in the given equation give,
dx dx dx dx
dv 2v 3 1
(v 2) (2v 3)1 , after simplification, which yields dx dv or dx 2 dv then
dx v 1 v 1
integrating and re-substituting gives the solution ln( x y 1) x 2 y c.
Note that the given equation can also be considered as equation of the form 𝑦 ′ = 𝐹(𝑎𝑥 + 𝑏𝑦 + 𝑐) (b≠ 0).
Exercise 1.3:
16
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
4. Solve 𝑦 ′ = 𝑦 − 𝑦 2 .
5. Solve 𝑦 ′ = 2𝑥 + 3𝑦 + 5
6. Solve the differential equation
( x y) 2 y' a 2
u u
du dx dy
x y
u u
M ( x, y) and N ( x, y) (2)
x y
i.e. if the expression on the left side of (1) is the exact differential of some function 𝑢 = 𝑓(𝑥, 𝑦). Thus if (1) is
exact differential equation, then it can be written as
du 0
and by integrating the last equation we immediately obtain the general solution of (1) in the form
u( x, y) c (3)
17
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
M N
Theorem 1.2 [Test for Exactness]: Assume that M, N, and are continuous in a rectangular region 𝑅.
y x
Then equation (1) is exact in 𝑅 if and only if
M N
(4)
y x
Proof: Assume that equation (1) is exact. Then there is a function 𝑢 = 𝑓(𝑥, 𝑦) such that
𝑢𝑥 = 𝑀 and 𝑢𝑦 = 𝑁. It follows that 𝑢𝑥𝑦 = 𝑀𝑦 and 𝑢𝑦𝑥 = 𝑁𝑥 . Since 𝑀𝑦 and 𝑁𝑥 are continuous by assumption,
so are 𝑢𝑥𝑦 & 𝑢𝑥𝑦 . By a theorem in multivariable calculus it follows that 𝑢𝑥𝑦 = 𝑢𝑦𝑥 and hence 𝑀𝑦 = 𝑁𝑥 . Conversely,
if 𝑀𝑦 = 𝑁𝑥 , it can be proved that equation (1) is exact. The proof of the converse is omitted. ∎
Method of Solution:
In order to obtain the solution of an exact differential equation, we can proceed as follows. If eq.(1) is exact then
there exists 𝑢(𝑥, 𝑦) so that equations (2) hold. To find 𝑢 we can use either of the following two methods.
Method I:
a) Integrate both sides of the first equation in (2) with respect to x. This gives
u( x, y) M ( x, y)dx k ( y) (5)
Method II:
a) Integrate both sides of the second equation in (2) with respect to y. This gives
u( x, y) N ( x, y)dx h( x) (8)
𝜕
𝑀(𝑥, 𝑦) = ∫ 𝑁(𝑥, 𝑦)𝑑𝑥 + ℎ′ (𝑥) (10)
𝜕𝑥
d) Find h(x) using (10).
e) Use the result of (d) in (8) to find u(x, y)
Method III:
M N
2x .
y x
Thus the equation is exact, and so to find the solution we proceed as follows: First we integrate M w.r.t x;
M ( x, y)dx 2xydx x
2
y.
Next we integrate with respect to y only those terms of N which do not contain x.
N ( x, y)dy 1dy y .
Lastly we give the solution as in (6) i.e;
x 2 y y c.
The explicit form of the solution is easily seen to be y c /(1 x 2 ) and is defined on any interval not containing
either x = 1 or x = -1. Note, too, that the equation could be solved by separation of variables.
19
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
M N
2e 2 y xy sin xy cos xy .
y x
or xe 2 y sin xy y 2 c.
dy xy 2 cos x sin x
Example 3: Solve the initial value problem , y (0) 2.
dx y (1 x 2 )
M N
2 xy .
y x
Thus using the method of solution for exact differential equations we get
1 1 1
or cos 2 x x 2 y 2 y 2 c1
4 2 2
Rearranging and putting 4c1= c in the last equation we give the general solution as
2 y 2 (1 x 2 ) cos 2 x c .
The initial conditions y = 2 when x = 0 demands that 8(1)-1 = c and so c = 3. An implicit solution of the
Exercise 1.4
dy tan y y 2 xy
1. Solve .
dx sec y x tan 2 y x 2 2
2
2. Solve
20
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Sometimes a non-exact differential equation can be made exact by multiplying it by a suitable function𝐹(𝑥, 𝑦).
Such a function is called an integrating factor. Although a differential equation of the type Mdx Ndy 0 , which
has a general solution, always has an integrating factor, there is no general method of finding them. An IF for a DE
can be found either by inspection or systematically as follows.
1 M N
Method I: Consider the differential equation Mdx Ndy 0 . If R: = is a function of x alone,
N y x
1 M N 2
Solution: Here M = x 2 y 2 , N = 2 xy and = thus the integration factor is
N y x x
I.F= e e
f ( x ) dx 2x dx 1
e 2 ln x .
x2
21
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
1
Multiplying the given equation by , we get
x2
y2 y
1 2 dx 2 dy 0
x x
y 2 dx 2 yxdy
dx 0
x2
y2
dx d 0.
x
y2
x C , which is the required solution.
x
2 1
Example 2: Solve xy e x3
dx x 2 ydy 0.
1 M N
1
4
Solution: Observe that M xy e , N x 2 y, and
2 x3 which is a function of x
N y x x
4
x dx 1
alone thus I.F = e e 4 ln x .
x4
1
Multiplying the given equation throughout by , gives
x4
y 2 e x3
1
y 2 e x3
1
1
y 2 1 x3
x 3 x 4 dx 0dy C or e C
2x 2 3
22
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
N M
is a function of 𝒚 alone, then F(y) = e
1 R ( y ) dy
Method II: If R: = is an integrating factor of
M x y
Mdx Ndy 0 .
Solution: Here
1 N M 1
.
M x y y
Thus
I .F e
f ( y ) dy
y.
1 2 4 1
( xy y 2 )dx 2 y 5 dy C or x y xy 2 y 6 C
4
2 3
Solution: Here
1 N M
6
M x y
( xy 2 x 2 )e 6 y dx (3x 2 y 2 x 2 y 2 x 3 y 2 )e 6 y dy 0
which can be shown an exact differential equation. Thus we give the general solution by
23
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
( xy x 2 )e 6 y dx y 2 e 6 y dy C or
2
using integration by parts in the second integral and rearranging the we have
1 1 1 1 1
e6 y x 2 y 2 x3 y 2 y C.
2 3 6 18 108
1. ( x 2 y 2 x)dx xydy 0.
dy
2. ( x 2 y 3 ) y 2x 3 y 2 .
dx
y
3. sec y tan y dx (sec y log x x)dy 0.
x
24
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
The characteristic feature of this equation is that it is linear in y and y ' , where as f and r may be any given
functions of x. If r = 0 for all x in its domain, then equation (1) is said to be homogeneous; otherwise, it is said to be
non-homogeneous.
Let us now find a formula for the general solution of (1) in some interval I, assuming that f and r are continuous
in I. Observe that (1) can be written as
f ( x) y r ( x)dx dy 0 (2)
1 M N
Then using Method II of section (1.5) in (2) i.e. f ( x) we can see that the integration factor
N y x
of (1) to be e
f ( x ) dx
. Then multiplying (1) by this I.F, we have
dy
e f ( x) y e
f ( x ) dx f ( x ) dx
r ( x)
dx
d f ( x ) dx f ( x ) dx r ( x).
or ye e
dx
ye r ( x)e
f ( x ) dx f ( x ) dx
dx C or
f ( x ) dx f ( x ) dx dx C
ye r ( x)e (3)
25
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
REMARK: Sometimes a given differential equation becomes linear if we take x as the dependent variable and y as
the independent variable, i.e. it can be written in the form
dx
Px Q ;
dy
where P and Q are constants or functions of 𝑦 alone. In this case, the solution is
x e Qe dy c .
pdx Pdy
e e
f ( x ) dx 1dx
e x .
y e x e 2 x e x dx C e x e x C or equivalent ly
y e 2 x Ce x
ye x e x c or y e 2 x ce x .
dy
Example 2: Solve (1 x) xy 1 x.
dx
dy x 1 x
y .
dx 1 x 1 x
26
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
x 1 1 x
So we note that the given equation is linear, f ( x) 1 and r ( x) .
1 x 1 x 1 x
1
( 1) dx
I .F e
f ( x ) dx
e 1 x e ln(1 x ) x (1 x)e x .
ex 1 x
y (1 x)e x dx c
1 x 1 x
ex
1 x
(e x xe x )dx c
ex
1 x
xe x c .
dx x tan 1 y
dy 1 y 2 1 y 2
1
2
I.F= e
dy 1
f ( y ) dy
e 1 y e tan y
.
1 tan 1 y tan 1 y
x e dy c
1 y
1 2
e tan
y
Put v tan 1 y in the integral on the right-hand side, and integrate, we get
x
1
tan 1 y
ve dv c
v
1
or x tan 1 y
(vev e v c)
e
27
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
1 1 1
x tan 1
y
(tan 1 ye tan y
e tan y
c).
e
If we set r ( x) 0
y' yf ( x) 0 (2)
The method of variation of parameters consists in replacing the parameter c by a function of x, say u(x).
Therefore, we suppose that a solution of eq. (1) is given by
y ue
f ( x ) dx
.
where u is a function of x.
or
u ' r ( x)e
f ( x ) dx
.
Integration gives
u r ( x)e
f ( x ) dx
dx c.
f ( x ) dx f ( x ) dx dx c .
ye r ( x )e
Example 4: Apply the method of variation of parameters to solve the differential equation
2y
y' x 2 cos 3x (i)
x
2y
y ' 0
x
y ux 2 , where u is a function of x.
1
or u' cos 3x and integrating we have u sin 3x c .
3
29
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Exercise 1.6:
1. Solve
dy
(1 x 2 ) 2 xy x(1 x 2 ) 2 .
1
dx
2. Solve
dy
sin 2 x y tan x.
dx
3. Solve
dy
(x 2 y3 ) y.
dx
30
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Some equations that are not linear can be reduced to linear form by suitable transformation. One such
equation is
(Where p and q are continuous functions of x and n is a positive integer different from 0 and 1)
31
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
y ' p ( x) y
Observe that y ' p( x) y q( x) y n q( x)
yn
y ' y n p( x) y1n q( x)
Making the substitution u = y1-n reduces this equation into the linear equation
Finding the general solution of (2) and substituting y1-n for u we get the general solution of Bernoulli’s
equation.
1
Answer: y3 =
x cx
2
Answer: put u = y2
32
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Example 1: Form a differential equation by eliminating 'a' from the family of curves y2=4ax.
Solution:
The given equation is
y2=4ax … (1)
𝑑𝑦
Differentiating both sides of (1) with respect to x implicitly and solving for 𝑑𝑥, we get that
𝒅𝒚 𝟐𝐚
= … (2)
𝒅𝒙 𝐲
𝒅𝒚 𝐲
= 𝟐𝐱 //
𝒅𝒙
𝑑2𝑦
= 0.
𝑑𝑥 2
33
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
where k is the constant of proportionality. k > 0 implies growth and k < 0 implies decay. This DE is used in
modeling population growth, radioactive decay and compound interest. Here we are assuming that y is differentiable
(hence continuous). For population problems where y is always integer valued, this assumption is incorrect.
Nonetheless (1) still provides a good approximation to the physical laws governing such a system. A general
solution of this model is:
𝑦(𝑡) = 𝐶𝑒 𝑘𝑡
If 𝑦(0)is the initial amount of the substance, then the amount after t units of time is:
𝑦(𝑡) = 𝑦(0)𝑒 𝑘𝑡
Example 3: Experiment shows that at any time 𝑡, a population of bacteria increases at a rate proportional to
the number of bacteria present at t If in a particular culture the number doubles in 2 hrs and there were 106 at
the end of 10 hours, how many were there initially?
Example 4: Experiment shows that at any time t, a mass of a radioactive element (eg. radium, Carbon 14,
etc) decays at a rate proportional to the amount present at that time. If the half-life of radium is 1600 years,
how long it takes a mass radium to disintegrate until but 10 % remains. (The half-life of a radioactive
substance is the time it takes for a given amount of the substance to become reduced by half as a
consequence of decay.
34
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Consider a tank which initially holds 𝑉0 gal of brine that contains a lb of salt. Another solution, containing b
lb of salt per gallon, is poured into the tank at the rate of e gal/min while simultaneously; the well-stirred
solution leaves the tank at the rate of f gal/min. The problem is to find the amount of salt in the tank at any
time t. Let Qe and Ql respectively represent the amount (in pounds) of salt entering and leaving the tank at any
𝑑𝑄
time t. Let Q denote the amount (in pounds) of salt in the tank at any time t. Since Q = Qe – Ql, so =
𝑑𝑡
𝑑𝑄𝑒 𝑑𝑄𝑙 𝑑𝑄
𝑑𝑡
− 𝑑𝑡
. Thus the time rate of change of 𝑄, 𝑑𝑡 , equals the rate at which salt enters the tank minus the rate
at which salt leaves the tank. Salt enters the tank at the rate of be lb/min. To determine the rate at which salt
leaves the tank, we first calculate the volume of brine in the tank at any time t.
(Caution: e gal/min is the rate at which salt solution (brine) leaves; not the rate at which salt leaves). The
volume of brine in the tank at any time t is the initial volume 𝑉0 plus the volume of brine added et minus the
volume of brine removed ft. Thus, the volume of brine at any time is
𝑉0 + 𝑒𝑡 − 𝑓𝑡
The concentration of salt in the tank at any time t is
𝑄
lb/gal
𝑉0 +𝑒𝑡−𝑓𝑡
From this it follows that salt leaves the tank at the rate of
𝑄
[𝑉 +𝑒𝑡−𝑓𝑡 ] f lb/min
0
Example 5: A tank initially holds 100 gal of a brine solution containing 20 lb of salt. At t = 0, fresh water is
poured into the tank at the rate of 5 gal/min, while the well-stirred mixture leaves the tank at the same rate.
Find the amount of salt in the tank at any time t. Answer: Q 20𝑒 −𝑡/20
C. Cooling and Heating Problems
35
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
Newton’s law of cooling (or heating), states that the time rate of change of the temperature of a body is
proportional to the temperature difference between the body and its surrounding medium. Let T denote the
temperature of the body and let Tm denote the temperature of the surrounding medium. Then the time rate
𝑑𝑇
of change of the temperature of the body is , and Newton’s law of cooling can be formulated as
𝑑𝑡
𝑑𝑇
𝑑𝑡
= −𝑘(𝑇 − 𝑇𝑚) (3)
where k is a positive constant of proportionality. Once k is chosen positive, the minus sign is required in
Newton’s law to make dT/ dt negative in a cooling process, when T is greater than Tm, and positive in a
heating process, when T is less than Tm.
Example 6: You take an ice-cream out of the freezer, kept at −180 𝐶. Outside it is 320 𝐶. After one minute,
the ice-cream has warmed to−80 𝐶 . What is the temperature of the ice-cream after five minutes?
Solution:
Let T be the temperature of the ice-cream (in ∘C) after t minutes out of the freezer. Then
Newton's law gives
𝑑𝑇
= −𝑘(𝑇 − 𝑇𝑚)
𝑑𝑡
𝑇(𝑡) = 𝐶𝑒 −𝑘𝑡 + 32
Since T=-18 when t=0, we obtain C=-50. Since T=-8 when t=1, we have -8=−50𝑒 −𝑘𝑡 + 32,
5
5 1952
which gives k=ln(4). Thus T (5)= −50𝑒 − ln(4)(5) + 32= 125 . //
Consider a vertically falling body of mass m that is being influenced only by gravity g and an air resistance that
is proportional to the velocity of the body. Assume that both gravity and mass remain constant and, for
convenience, choose the downward direction as the positive direction.
36
Math331: Applied Mathematics III Chapter 1: First-order ODEs Tadesse B.
The net force on the body is F = mg – kv. Then the equation of motion of the body is governed by the
differential equation
𝑑𝑣 𝑘
𝑑𝑡
+𝑚𝑣 = 𝑔 (2)
This equation is not valid if air resistance is not proportional to velocity. If air resistance is nonexistent or
negligible, then k=0 and the equation reduces to
𝑑𝑣
=𝑔
𝑑𝑡
E. Electrical Circuits
The basic equation governing the amount of current I (in amperes) in a simple RL circuit consisting of a
resistance R (in ohms), an inductor L (in henries), and an electromotive force (abbreviated emf) E (in volts) is
𝑑𝐼 𝑅 𝐸
+ 𝐼=
𝑑𝑡 𝐿 𝐿
For an RC circuit consisting of a resistance, a capacitance C (in farads), an emf, and no inductance, the
equation governing the amount of electrical charge q (in coulombs) on the capacitor is
𝑑𝑄 𝑞 𝐸
+ =
𝑑𝑡 𝑅𝐶 𝑅
Higher order ODEs are used to model more complex circuits.
Exercise 1.8
1. What is the differential equation whose general solution is given by 𝑦 = 𝑠𝑖𝑛(𝐴𝑥 + 𝐵)?
1. Find the differential equation of the family of lines through the origin.
2. Find the differential equation of all straight lines passing through the point (3,2)
3. Form the differential equation representing the family of curves 𝑦 = 𝑎 𝑐𝑜𝑠 (𝑥 + 𝑏).
𝑦
4. Find the equation of a curve whose tangent at any point on it, different from origin, has slope 𝑦 + 𝑥 .
5. You are given a very hot sample of metal, and wish to know its temperature. You have a
thermometer, but it only measures up to 200 ∘∘C and the metal is hotter than that!You leave the metal in
a room kept at 20 ∘∘C. After six minutes it has cooled sufficiently that you can measure its temperature; it
is 80 ∘∘C. After another two minutes it is 50 ∘∘C. What was the initial temperature of the metal?
6.
37