Docsity

Solutions for Engineers: Logistic & Exact Equations, Exercises of Engineering

Partial preview of the text

Download Solutions for Engineers: Logistic & Exact Equations and more Exercises Engineering in PDF only on Docsity!

ORDINARY DIFFERENTIAL EQUATIONS

FOR ENGINEERS

— THE LECTURE NOTES FOR MATH-

Contents

vi ORDINARY DIFFERENTIAL EQUATIONS FOR ENGINEERS

4 Integrating Factors. 21

8 Finding a Particular Solution for Inhomogeneous Equation 59

3.3 Laplace Transforms for f (t) = {sin(bt) and cos(bt)}

5. SERIES SOLUTION OF LINEAR DIFFERENTIAL EQUATIONS

2 ORDINARY DIFFERENTIAL EQUATIONS FOR ENGINEERS

With the replacements of the variables y, y′, · · · , y(n)^ in 1.1 by the functions ϕ(x), ϕ′(x), · · · , ϕ(n)(x), the EQ. (1.1) becomes an identity over x ∈ (I). In other words, the right hand side of Eq. (1.1) becomes to zero for all x ∈ (I). For example, one can verify that y = e^2 x^ is a solution of the ODE y′^ = 2y, x ∈ (−∞, ∞),

and y = sin(x^2 ) is a solution of the ODE

xy′′^ − y′^ + 4x^3 y = 0, x ∈ (−∞, ∞).

1.3 Order n of the DE

An ODE is said to be order n, if y(n)^ is the highest order derivative occurring in the equation. The simplest first order ODE is y′^ = g(x). Note that the expression F on the right hand side of an n-th order ODE: F [x, y, y′,... , y(n)] = 0 can be considered as a function of n + 2 variables (x, u 0 , u 1 ,... , un). Namely, one may write

F (x, u 0 , u 1 , · · · , un) = 0.

Thus, the equations

xy′′^ + y = x^3 , y′^ + y^2 = 0, y′′′^ + 2y′^ + y = 0

which are examples of ODE’s of second order, first order and third order respectively, can be in the forms:

F (x, u 0 , u 1 , u 2 ) = xu 2 + u 0 − x^3 , F (x, u 0 , u 1 ) = u 1 + u^20 , F (x, u 0 , u 1 , u 2 , u 3 ) = u 3 + 2u 1 + u 0.

respectively.

1.4 Linear Equation:

If the function F is linear in the variables u 0 , u 1 ,... , un, which means every term in F is proportional to u 0 , u 1 ,... , un, the ODE is said to be linear. If, in addition, F is homogeneous then the ODE is said to be homogeneous. The first of the above examples above is linear are linear, the second is non-linear and the third is linear and homogeneous. The general n-th order linear ODE can be written

an(x) d

ny dxn^ +^ an−^1 (x)^

dn−^1 y dxn−^1 +^ · · ·^ +^ a^1 (x)^

dy dx +a 0 (x)y = b(x).

INTRODUCTION 3

1.5 Homogeneous Linear Equation:

The linear DE is homogeneous, if and only if b(x) ≡ 0. Linear homo- geneous equations have the important property that linear combinations of solutions are also solutions. In other words, if y 1 , y 2 ,... , ym are solu- tions and c 1 , c 2 ,... , cm are constants then

c 1 y 1 + c 2 y 2 + · · · + cmym

is also a solution.

1.6 Partial Differential Equation (PDE)

An equation involving the partial derivatives of a function of more than one variable is called PED. The concepts of linearity and homo- geneity can be extended to PDE’s. The general second order linear PDE in two variables x, y is

a(x, y) ∂ (^2) u ∂x^2 +^ b(x, y)^

∂^2 u ∂x∂y +^ c(x, y)^

∂^2 u ∂y^2 +^ d(x, y)^

∂u ∂x +e(x, y) ∂u∂y + f (x, y)u = g(x, y).

Laplace’s equation ∂^2 u ∂x^2

∂^2 u ∂y^2

is a linear, homogeneous PDE of order 2. The functions u = log(x^2 +y^2 ), u = xy, u = x^2 − y^2 are examples of solutions of Laplace’s equation. We will not study PDE’s systematically in this course.

1.7 General Solution of a Linear Differential

Equation

It represents the set of all solutions, i.e., the set of all functions which satisfy the equation in the interval (I).

For example, given the differential equation

y′^ = 3x^2.

Its general solution is y = x^3 + C

where C is an arbitrary constant. To select a specific solution, one needs to determine the constant C with some additional conditions. For instance, the constant C can be determined by the value of y at x = 0. This condition is called the initial condition, which completely

INTRODUCTION 5

The general first order ODE in normal form is

y′^ = F (x, y).

If F and ∂F∂y are continuous one can show that, given a, b, there is a unique solution with y(a) = b. Describing this solution is not an easy task and there are a variety of ways to do this. The dependence of the solution on initial conditions is also an important question as the initial values may be only known approximately. The non-linear ODE yy′^ = 4x is not in normal form but can be brought to normal form

y′^ = 4 x y

by dividing both sides by y.

2. The Approaches of Finding Solutions of ODE

2.1 Analytical Approaches

Analytical solution methods: finding the exact form of solutions; Geometrical methods: finding the qualitative behavior of solutions; Asymptotic methods: finding the asymptotic form of the solution, which gives good approximation of the exact solution.

2.2 Numerical Approaches

Numerical algorithms — numerical methods; Symbolic manipulators — Maple, MATHEMATICA, MacSyma.

This course mainly discuss the analytical approaches and mainly on analytical solution methods.

8 ORDINARY DIFFERENTIAL EQUATIONS FOR ENGINEERS

1.1 Linear homogeneous equation

Let us first consider the simple case: q(x) = 0, namely, dy dx

  • p(x)y = 0. (2.1)

To find the solutions, we proceed in the following three steps:

Assume that the solution exists and in the form y = y(x); Find the necessary form of the function y(x). In doing so, by the definition of the solution, one substitute the function y(x) in the Eq., and try to transform the EQ. in such a way that its LHS of EQ. is a complete differentiation (^) ddx [.....], while its RHS is a known function. Verify y(x) is indeed a solution.

In the step #2, with the chain law of derivative, one may transform Eq. (2.1) into the following form:

y′(x) y

d dx ln |y(x)| = −p(x).

Its LHS is now changed a complete differentiation with respect to x, while its RHS is a known function. By integrating both sides, we derive

ln |y(x)| = −

∫ p(x)dx + C,

or y = ±C 1 e−^

∫ p(x)dx,

where C, as well as C 1 = eC^ > 0, is arbitrary constant. As C=0, y(x) = 0 is a trivial solution, we derive the necessary form of solution:

y = Ae−^

∫ p(x)dx. (2.2)

As the final step of derivation, one can verify the function (2.2) is indeed a solution for any value of constant A. In summary, we deduce that (2.2) is the form of solution, that contains all possible solution. Hence, one can call (2.2) as the general solution of Eq. (2.1).

1.2 Linear inhomogeneous equation

We now consider the general case: dy dx

  • p(x)y = q(x).

FIRST ORDER DIFFERENTIAL EQUATIONS 9

We still proceed in the three steps as we did in the previous subsection. However, now in the step #2 one cannot directly transform the LHS of Eq. in the complete differential form as we did for the case of homoge- neous Eq. For this purpose, we multiply the both sides of our differential equation with a factor μ(x) ̸= 0. Then our equation is equivalent (has the same solutions) to the equation

μ(x)y′(x) + μ(x)p(x)y(x) = μ(x)q(x).

We wish that with a properly chosen function μ(x),

μ(x)y′(x) + μ(x)p(x)y(x) = d dx

[μ(x)y(x)].

For this purpose, the function μ(x) must has the property

μ′(x) = p(x)μ(x), (2.3)

and μ(x) ̸= 0 for all x. By solving the linear homogeneous equation (2.3), one obtain

μ(x) = e

∫ p(x)dx. (2.4)

With this function, which is called an integrating factor, our equation is now transformed into the form that we wanted:

d dx

[μ(x)y(x)] = μ(x)q(x), (2.5)

Integrating both sides, we get

μ(x)y =

∫ μ(x)q(x)dx + C

with C an arbitrary constant. Solving for y, we get

y =

μ(x)

∫ μ(x)q(x)dx +

C

μ(x) = yP (x) + yH (x) (2.6)

as the general solution for the general linear first order ODE

y′^ + p(x)y = q(x).

In solution (2.6):

the first part, yP (x): a particular solution of the inhomogeneous equation,