Академический Документы
Профессиональный Документы
Культура Документы
National Junior College 2010 H2 Mathematics (Senior High 1) Differential Equations (Lecture Notes)
Differential Equations
Objectives: At the end of this chapter, students will be able to: formulate a simple statement involving a rate of change as a differential equation. use direct integration to solve differential equations of the form dy = f ( x) , dx d2 y = f ( x) . dx 2
dy = f ( y) . dx dy use a given substitution to reduce a first-order differential equation to the form = f ( x) or dx dy = f ( y) . dx use the method of separable variables to solve differential equations of the form formulate differential equations based on physical interpretation and modelling. understand that the general solution of a differential equation can be represented graphically by a family of curves, and sketch typical members of the family using a graphing calculator. use an initial condition to find a particular solution to a differential equation, and interpret the solution in the context of a problem modelled by the equation. comment on the appropriateness of the models used and the assumptions made.
1
1.1
Introduction
Definition
A differential equation is an equation that states a relationship between an independent variable x, a dependent variable y and at least one of the derivatives dy , dx
d 2 y d3 y , etc. The order of a differential equation is the order of the highest dx 2 dx 3 derivative that occurs in it. The degree of a differential equation is the degree of the highest derivative that occurs in it.
Order of DE
1
Degree of DE
1
2 1
1 2
Note: We will only be dealing with first order and second order differential equations.
In the following sections from 2.1 to 2.5, we will be dealing with various types of differential equations and the methods in solving them. 2.1 Solving differential equations of the form
Differential equations of the form dy = f ( x) dx
dy = f ( x ) can be solved by direct integration i.e. dx integrating both sides of the equation with respect to x.
Example 1 Find the general solution of the following differential equations: dy dy (a) (b) = x3 = x sin x dx dx Solution
(a)
dy = x 3 dx 1 dy = ( x 3) dx x2 y = 3 x + C. 2
(b)
2.2
dy = g( y ) ) using the method of separable variables dx dy Differential equations of the form = g( y ) can be solved by first bringing g( y ) to dx the other side and then integrating both sides of the equation with respect to x.
Example 2 Find the general solution of the following differential equations: dy dy (a) (b) = ey = 1+ y2 dx dx Solution
(a) dy 1 dy = 1 + y2 =1 dx 1 + y 2 dx 1 dy = 1 dx 1 + y2 tan 1 y = x + C y = tan ( x + C ) . (b) dy = ey dx
dy = 1 dx
e y = x + C
e y = B x y = ln ( B x )
2.3
1 dy = f ( x) , g( y ) dx dy = F( x) , dx
where G(y) and F(x) are functions in y and x respectively. 2. Integrate both sides with respect to x to get:
g( y ) dy = f ( x ) dx
3.
or
G( y ) dy = F( x ) dx .
Example 3
Find the general solution of the following differential equations: 2 dy dy 1 + y (a) (b) ( x 3) = y 2 sec x = dx y dx
(c)
dy x 2 dy (d) + 2 =0 y = e x y dx y dx For (d), find the particular solution given that y = 0 when x = 0 .
Solution
(a) ( x 3) dy =y dx dy dx = y x3
(b) dy 1 + y 2 sec x = y dx 2y d y = cos x d x 1+ y 2 d y = cos x d x 2 1+ y 2 y 2 ln 1 + y = sin x + C y ln 1 + y = 1 ( sin x + C ) . 2
ln y = ln x 3 + C y = eC x 3 y = B ( x 3) ,
(c)
dy x + =0 dx y 2 dy x = 2 dx y y 2 dy = x dx y3 x2 = +C 3 2 3 y 3 = x 2 + A, A = 3C. 2
(d)
2 dy y = e x y dx
2
ye y dy = e x dx 1 y2 e = ex + C 2 e y = 2e x + 2C y 2 = ln(2e x + A)
2
For x = 0 and y = 0, we have 0 = ln(2 + A) A = 1. Hence the particular solution is y 2 = ln(2e x 1).
2.4
2.
3. 4.
A separable variables differential equation will be obtained upon simplification, after which we solve it as in 2.1, 2.2 or 2.3. Replace the new variable by y in the general solution.
Example 4 Using the substitution y = vx , solve the differential equation dy x + y = 2x . dx Solution dy dv Since y = vx, we have = v + x . ----- Step 1 dx dx dy Then x + y = 2 x becomes dx dv x(v + x ) + vx = 2 x ----- Step 2 dx dv v+ x +v = 2 dx dv ----- Step 3 x = 2 2v dx
1 1 1 1 v dv = x dx 2 1 ln 1 v = ln x + C 2 ln 1 v = ln( x 2 ) + A y ln x 2 1 = A x y x 2 1 = e A = B x x 2 xy = B or y =
x2 B B = x . x x
Example 5
Show that the substitution u = x + y reduces the differential equation du 2 = . Hence solve the differential equation. dx 1 u dy 1 + x + y = to dx 1 x y
Solution
du dy = 1+ dx dx
----- Step 1
(1 u ) du = 2 dx
u2 = 2x + C 2 ( x + y)2 ( x + y) = 2x + C 2 2( x + y ) ( x + y ) 2 = 4 x + 2C u ( x + y )2 + 2( x y ) = A
----- Step 4
Example 6
Solve the differential equation 2 y that y = 0 when x = 0 . dy xy 2 = x using the substitution u = y 2 , given dx
Solution
du dy = 2y . dx dx
----- Step 1
dy xy 2 = x becomes dx du ux = x dx du = x(1 + u ) dx
1 du = x dx 1+ u x2 ln 1 + u = +C 2 1+ u = e
x2 2 x2
.eC
2
y 2 = Ae
----- Step 4
x2 2
1.
2.5
d2 y = f ( x) dx 2
d2 y = f ( x) can be solved by direct integration as dx 2 in 2.1, except that we now have to integrate the equation with respect to x twice to d2 y reduce the 2 term to the y term, to obtain the general solution. dx
(a)
(b)
Solution
(a)
(b)
d2 y = 2 ( e x + e x ) 2 dx d2 y 2 dx = 2 ( e x + e x ) dx dx dy = 2 ( e x e x ) + A dx dy dx = 2 ( e x e x ) + A dx dx y = 2 ( e x +e x ) + Ax + B.
3
3.1
3.2
Mathematical Interpretation of Laws of Growth & Decay Example The rate of decay of a radioactive material is proportional to the amount of material present.
Let m be the amount of radioactive material at time t. Then dm m dt dm = km, k R + dt Note that the halflife of a substance is the time taken for half of the amount of substance to decay.
3.3
Mathematical Interpretation of Laws of Cooling Example The rate of cooling of a body is proportional to the difference between the temperature of the body and that of the surrounding.
Let T be the temperature of the body at time t and T0 be the temperature of the surroundings (constant). Then dT (T T0 ) dt dT = k (T T0 ), k R + dt
Example 9 A colony of bacteria is being grown in a shallow dish of area 100 cm2. After t minutes, the area of the colony is x cm2. The growth of the colony is modeled by the dx 1 differential equation = t (100 x) . d t 25 Given that initially, the colony occupies 1 cm2, solve the differential equation giving x in terms of t, and calculate the time, correct to 2 decimal places, that will elapse before the colony has covered half the remaining area of the dish (i.e. x = 50.5 cm2). Solution
Integrating
dx 1 = t (100 x) on both sides w.r.t. x, we get dt 25 1 1 100 x dx = 25 t dt Since x < 100, ln (100 x ) = 1 t2 +C 25 2
2
t 1 = e 50 . eC 100 x t2 50
x = 100 Ae When t = 0 and x = 1, we have 1 = 100 A A = 99. Therefore the particular solution is x = 100 99e
t2 50 .
Remaining area = 99 cm 2 . Half of remaining area = 49.5 cm 2 . Required area = Initial area + Covered area = 49.5 + 1 = 50.5 cm 2 . Now when x = 50.5, we need to solve for t. 50.5 = 100 99e e
t2 50 t2 50
1 2
t2 1 = ln 50 2 t = 50 ln 1 = 5.89 minutes 2
Hence the time that will elapse before the colony has covered half the remaining area of the dish is 5.89 minutes.
Something to ponder on: What can you gather about the size of the colony (i.e. x) after a prolong period of time (i.e. as time t tends to infinitely large value)?
2010 / SH1 / H2 Maths / Differential Equations (Teachers Edition) 10
Example 10
In a small town, there was an outbreak of the SARS (Severe Acute Respiratory Syndrome) virus and the rate of infection can be modeled by the differential equation dy = y (1 y ) , where t is in days and y is the proportion of the population in the town dt who are infected. Given that by the 9th day of the outbreak, 10% of the population were infected, estimate the time taken before 60% of the population becomes infected with the virus, assuming that no preventive measures are taken to curb the spread of the virus.
Solution dy = y (1 y ) dt 1 y (1 y ) dy = dt
y + 1 y dy = dt
ln y ln 1 y = t + C y = et + C 1 y
When y = 0.1 at t = 9 , 0.1 = e9 +C C 11.2 1 0.1
When y = 0.5 ,
Approximately by the 12th day of the outbreak, 60% of the town population will be infected by the virus. Note that it is not necessary to make y the subject in order to solve for the arbitrary constant C and finding out the required t value in this question.
Do you know?
Singapore was among the first nations hit by SARS in 2003. Over two hundred cases of SARS were reported in Singapore and 27 people died from the outbreak.
11
Example 11 The rate at which a substance evaporates is K times the amount of substance that has not yet evaporated where K is a positive constant. If the initial amount of substance was A and the amount which has evaporated at time t is x, write down a differential equation involving x, and solve it to give x in terms of A, K and t.
Sketch the graph of x against t. Show that the time taken for half the substance to 1 evaporate is ln 2 . K Solution d( A x) = K ( A x) dt dx = K ( A x) dt dx = K ( A x) dt
A x dx = K dt
x = A Be Kt
ln ( A x ) = Kt + C
When x =
4
4.1
Steps 1 Enter the equation of the curve. Note that instead of entering 3 equations for the 3 different values of C, we may enter just one equation using the notation { 1, 0, 1} to graph the 3 members of the family of curves.
2 The GC shows 3 solution curves, each belonging to a different value of C.
Screen
Note: When you present your answers on paper, remember to label your graphs clearly, i.e. label any axial intercepts, stationary points and asymptotes.
13
Note: C = 1, 0, 1 is only a suggestion to the possible constants to be used. In general, we should use a variety of constants that can illustrate all possible variations of the family of curves. Example 12 illustrates an example that all possible variations could be obtained with C = 1, 0, 1 without the need for other constants. However, not all family of solutions curves could be obtained by just using C = 1, 0, 1. Example 12 Consider the family of solution curves represented by y = x + Cx 2 , where C is an arbitrary constant..
Sketch, on the same diagram, the solution curves for C = 1, 0, and 1.
C=1
C=0
C = -1
Summary
A first order variables separable differential equation is of the form where f is a function of x only and g is a function of y only. Steps to solve: 1. Bring g( y ) to the other side, i.e. 1 dy = f ( x) , g( y ) dx dy = F( x) , dx dy = f ( x ) g( y ) dx
where G(y) and F(x) are functions in y and x respectively. 2. Integrate both sides with respect to x to get:
g( y ) dy = f ( x ) dx
3.
or
G( y ) dy = F( x ) dx .
14
In solving first order differential equations using a given substitution, adopt the following steps: 1. 2. Differentiate the given substitution with respect to x. dy term in the differential equation by the expression obtained in dx Step 1, and the terms in y are also replaced accordingly by the new variable. Replace the A separable variables differential equation will be obtained upon simplification, after which we solve it. Replace the new variable by y in the general solution. d2 y = f ( x) dx 2 dy = f ( x ) dx . dx
3. 4.
( f ( x ) dx ) dx .
The general solution represents a family of curves, and a particular solution represents one of the curves.
15