Chapter 8 Introduction to Differential Equations

This chapter is designed to provide a brief classification of common or standard forms of elementary differential equations for the purpose of introducing the subject. In general, differential equations can be classified according to a few major categories. These include linear differential equations, non-linear differential equations, and systems of both linear and non-linear equations. Linear differential equations are usually easier to solve using general methods. Non-linear differential equations are more difficult to solve and often involve approximations and numerical methods. Differential equations are also classified according to the highest order of the derivative in the equation, such as first-order or second-order for equations containing a first derivative or second derivative.

8.1 First-Order Differential Equations

• This section includes a list of first-order differential equations and their general solution forms. These include simple differential equations that depend only on x, differential equations that have a real constant coefficient, initial value problems, separable equations, exact equations, linear first-order differential equations, and non-linear equations.

First-order differential equations are equations representing a function that involves the first derivative of the function. Applications of first-order differential equations include modeling, electric circuits, radioactive decay, compound interest, mixing, epidemics, and elementary mechanics.

• First-order differential equations are written in the following forms:

F(x,y,y’) = 0

y’ = f(x,y)

y’ + p(x)y = r(x)

where p and r are given continuous functions. The solution and unknown function is y, and with its derivative y’ satisfies this differential equation.

• First-order differential equations can have a general solution that can involve a constant c and represent a family of solutions. Similar to indefinite integrals, the general solution of a differential equation can represent a family of curves. Similar to definite integrals, a particular solution of a differential equation can represent one of the curves. A particular solution of a differential equation satisfies a specified condition, which may be an initial condition.

• Following is a list of standard differential equations and their solution forms.

(a.) Equations in the form: y’ = f(x) are simple differential equations that depend only on x. A solution to this type of equation has the form:

y = ∫ f(t)dt + c

(b.) Equations in the form: y’ + ay = 0 are differential equations that have a real constant coefficient a.

A solution to this type of equation can be found by inspection. A function y must be found whose derivative y’ is equal to (-a)(y). The solution has the form:

y = ce-ax where c is an arbitrary constant.

This solution represents a family of infinitely many solutions to the differential equation, which forms a family of integral curves.

(c.) Equations in the form: y’ = f(x,y) and y(x0) = y0 or y’ = f(x,y) and y = y0 at x = x0 are called initial value problems.

In these equations, x0 and y0 represent values of the initial condition. The initial condition y(x0) = y0 is used to solve for what is called a particular solution of the differential equation. A particular solution is the general solution with c specified by the initial condition.

In many applications, differential equations describe or represent a physical system or represent a mathematical model of a system where a specified condition must be satisfied by the solution that is inherent in the system. If this condition is an initial condition, such as at time = 0 or position = point (x0,y0), this becomes a problem called an initial value problem.

Initial value problems are more specifically represented in the form:

y’ + p(x)y = r(x) and y(x0) = y0

where p(x) and r(x) are continuous functions on an open interval containing x = x0. A unique function y exists that satisfies this equation and its initial condition y(x0) = y0.

(d.) Equations in the forms: M(x)dx = -N(y)dy, g(y)dy = f(x)dx and (dy/dx) = f(x)g(y) are called separable equations.

Separable equations can be solved by integrating each side separately. For example, a separable equation in the form: (dy/dx) = f(x)g(y) can be rearranged as:

(dy/g(y)) = f(x)dx

and solved by integrating:

∫(dy/g(y)) = ∫ f(x)dx + c

Substitutions can sometimes be used to modify differential equations into a separable form.

(e.) Equations in the form: M(x,y)dx + N(x,y)dy = 0 are called exact equations.

In these equations, M = u/x and N = u/y and therefore, u = Mx = Ny.

Integration can occur as:

u = ∫ M ∂x + f(y) and u = ∫ N ∂y + g(x)

where f(y) and g(x) represent constants of integration.

In general, an exact equation M(x,y)dx + N(x,y)dy = 0 is one where (M dx + N dy) is an exact differential such that:

du = (∂u/∂x)dx + (∂u/∂y)dy

which yields an implicit solution u(x,y) = c.

Equations that are not inherently exact can be modified to an exact form by multiplying the non-exact equation with a function called an integrating factor. An integrating factor is a function that is multiplied to a differential equation to put it into a solvable form.

(f.) Equations in the form: dy/dx + p(x)y = r(x) are called linear first-order differential equations.

A general solution for linear first-order differential equations can be developed as follows:

Integrate dy/dx + p(x)y = r(x) by transforming it using y = u(x)z(x) so that:

dy/dx = u(dz/dx) + z(du/dx)

Substitute into the differential equation:

u(dz/dx) + z(du/dx) + p(x)u(x)z(x) = r(x)

u(dz/dx) + z[(du/dx) + p(x)u(x)] = r(x)

First consider the term z[(du/dx) + p(x)u(x)] to find u:

(du/dx) + p(x)u(x) = 0

Rearrange:

du/u = -p dx

Integrate:

log u = -∫ p dx

u = exp{-∫ p dx}

Substitute back into differential equation u(dz/dx) + z[(du/dx) + p(x)u(x)] = r(x):

exp{-j p dx}(dz/dx) + z[(-pe p dx) + pe-∫ p dx] = r(x)

exp{-∫ p dx}(dz/dx) = r(x)

Rearrange:

dz = r(x) e-∫ pdx dx

z = ∫ r(x) e-∫ pdx dx + c

Therefore:

y = uz = [e-∫ pdx][∫ r(x) e-∫ pdx dx + c]

This is the general solution of a linear first-order differential equation.

(g.) Equations in the form: y’ = f(x,y) and y(x0) = y0 with a non-linear term(s) are called non-linear differential equations.

A general formula does not exist to solve this type of equation. However, approximate solutions and numerical solutions can be applied. For first-order linear equations, a family of solutions can exist that depends on the specification of the arbitrary constant. Whereas for non-linear equations, even though a solution containing an arbitrary constant may exist, there may be other solutions that cannot be obtained by specifying values for the constant.

Approximating solutions for differential equations includes using direction fields, which involve drawing or sketching families of solution curves using the slope y’. Also, approximations are made using iteration methods, such as Picard’s iteration method, which is applied to initial value problems.

Non-linear differential equations can sometimes be changed into linear form by substitution of the dependent variable and solved as linear equations. The Bernoulli equation y’ + p(x)y = g(x)yn is an example of such an equation.

(h.) Equations in the form: dy/dx = f(x,y) are sometimes called homogeneous when the function f does not depend on x and y separately, but only on their ratio y/x or x/y. A so-called homogeneous equation can be written in the form: dy/dx = F(y/x)

8.2 Second-Order Linear Differential Equations

• This section includes second-order linear differential equations, homogeneous second-order linear equations with general and particular solutions, homogeneous equations with constant coefficients, and non-homogeneous linear differential equations.

• Applications of second-order linear differential equations occur in mechanics and electrical engineering, including vibrations and resonance, mechanical vibrations, free vibrations, forced vibrations, and electrical networks.

• A second-order differential equation has the general form:

F(x,y,y’,y") = 0

Within this general form are equations that can be solved for y":

y" = f(x,y,y’)

More specifically, second-order equations can be written in the following forms:

G(x)(d2y/dx2) + P(x)(dy/dx) + Q(x)y = R(x)

(d2y/dx2) + p(x)(dy/dx) + q(x)y = r(x)

where G, P, Q, R, p, q, r are given functions.

• A solution to a second-order linear differential equation on an open interval a < x < b is a function y = h(x) that has derivatives y’ = h’(x) and y”= h”(x), and satisfies the differential equation for all values of x in the interval.

• A second-order linear equation written in the form:

y”+ p(x)y’ + q(x)y = 0

is called a homogeneous second-order linear equation.

This type of equation has a linear combination of solutions referred to as the superposition or linearity principle. Two linear independent solutions for this equation are:

y = y1(x) and y = y2(x)

And they form the solutions where:

y = c1y1 + c2y2

This linear combination (c1y1 + c2y2) with c1 and c2 as arbitrary constants provide the form of a general solution.

When values for c1 and c2 are specified as initial conditions, then a particular solution results. For example, given initial conditions y(x0) and y’(x0) where x0 is a point within a defined interval, then c1 and c2 are specified so that:

y(x0)= c1y1(x0) + c2y2(x0)

y(x0) = c1y1(x0) + c2y2(x0)

where this system has a unique solution for c1 and c2 if:

Image

Therefore, when p(x) and q(x) are continuous on an open interval and x0 is in the interval, then a general solution exists in the interval. More specifically, when an initial condition is specified, a particular or unique solution exists.

• Equations in the form: ay”+ by’ + cy = 0 are called homogeneous equations with constant coefficients.

To solve this type of equation substitute: y erx

a(erx)”+ b(erx)’ + c(erx) = 0

Differentiate:

erx(ar2 + br + c) = 0

where r is a root of the quadratic equation:

Image

When b2 — 4ac > 0, the general solution of the equation is:

y = cxerlx + c2er2x

When b2 — 4ac = 0, r1 = r2 = (-b/2a), the general solution of the equation is:

y = clerlx+ c2erlx= cle-bx/2a+ c2e-bx/2a

When the roots are complex, r1 = λ + iω and r2 = λ - iω, the general solution of the equation is:

y = c1e+iω)x + c2e(λ-iω)x = c1eλx cos ωx + c2eλx sin ωx

• Equations in the form: y”+ p(x)y’ + q(x)y = r(x) are called non-homogeneous linear differential equations.

In these equations, r(x) ≠ 0 and p, q, and r are continuous on a specified interval.

A general solution to this type of equation has the form:

y = yh + yp

where yh is a general solution of the homogeneous equation:

y”+ p(x)y’ + q(x)y = 0

and yp is a particular solution of the non-homogeneous equation:

y”+ p(x)y’ + q(x)y = r(x)

Therefore, the general solution of a non-homogeneous equation combines the solution of the homogeneous equation with the particular solution yp:

y = yh + yp = c1y1 + c2y2 + yp

Methods used to find yp include the method of variation of parameters and the method of undetermined coefficients.

Numerical methods and series methods are commonly used to solve second-order differential equations that have variable coefficients.

8.3 Higher-Order Linear Differential Equations

• This section includes nth-order linear differential equations, nth-order homogeneous linear differential equations, nth-order homogeneous equations with constant coefficients, nth-order non-homogeneous linear differential equations, and nth-order non-homogeneous differential equations with constant coefficients.

• Higher-order linear differential equations are an extension of second-order linear differential equations as far as form and solution methods.

• An nth-order linear differential equation has the general form:

P0(x)(d(n)/dx(n)) + P1(x)(d(n-i)/dx(n-i))+ ...+ Pn-1(x)(dy/dx) + Pn(x)y = r(x)

Or equivalently:

P0(x)y(n) + P1(x)y(n-1) + ... + Pn-1(x)y’ + Pn(x)y = r(x)

where r and Pn are continuous in a specified interval.

If the equation is divided by P0(x) it becomes:

y(n) + p1(x)y(n-1) + ... + pn-1(x)y’ + pn(x)y = r(x)

• The standard form of an nth-order homogeneous differential equation is:

y(n) + p1(x)y(n-1) + ... + pn-1(x)y’ + pn(x)y = 0

where y(n) = dny/dxn is the first term.

• For nth-order homogeneous linear differential equations in the form: y(n) + p1(x)y(n-1) + ... + pn-1(x)y’ + pn(x)y = 0, linear combinations of solutions form a solution, (similar to second-order equations). This is called a basis of solutions and is comprised of n linearly independent solutions.

The general solution to nth -order homogeneous linear differential equation is the linear combination:

y= c1y1 + c2y2 + ...+ cnyn

where c1,...cn are constants and c1, ... , cn satisfy:

Image

When values are specified for c1,...cn, a particular solution results. To obtain a unique solution, it is necessary to specify n initial conditions:

y(x0) = y0, y’(x0) = y0’, ... , y(n-1)(x0) = y0(n-1)

In general, when p0,...p(n-1) are continuous on an open interval and x0 is in that interval, then a general solution can be obtained. If initial conditions are given, then a particular solution can be obtained.

• Equations in the form: a0yn + a1y(n-1) + ... + an-1y’ + any = 0 are called nth-order homogeneous equations with constant coefficients.

Solving this type of equation is similar to solving second-order homogeneous equations with constant coefficients. A solution involving y = erx can be found.

Substituting y = erx into the equation gives:

erx(a0yn + a1y(n-1) + ... + an-1y’ + any) = 0

When roots r are real and unequal, the general solution is:

y = c1er1x + c2er2x + ... cnernx

When the roots are complex, r1 = λ + iω and r2 = λ — iω, the general solution is:

y = c1eλx cos cox + c2eλx sin cox + ...

• Equations in the form:

y(n) + p1(x)y(n-1) + ... + pn-1(x)y’ + pn(x)y = r(x)

with r(x) continuous on the open interval, are called non-homogeneous nth-order linear differential equations.

A general solution exists in the form:

y = yh + yp = c1y1 + c2y2 + ... + cnyn + yp

where yh is a general solution of the homogeneous equation and yp is added as the particular solution of the non-homogeneous equation.

• Equations in the form:

y(n) + a1y(n-1) + ...+ an-1y’ + any = r(x)

are called non-homogeneous nth-order equations with constant coefficients.

To solve this type of equation, the method of undetermined coefficients and the method of variation of parameters can be used. Methods used for constant coefficients often involve sine, cosine, and exponential functions.

• If the coefficients are not constants, solutions often involve numerical methods or series methods. In general, methods used for solving second-order differential equations can often be expanded to higher order differential equations.

8.4 Series Solutions to Differential Equations

• This section briefly describes series solutions for differential equations with variable coefficients, the power series method, and the Frobenius method.

• Series solutions can be applied to solve linear differential equations that have variable coefficients.

Differential equations with variable coefficients can arise in modeling applications and can be in the general form:

P(x)y”+ Q(x)y’ + G(x)y = 0

or y”+ p(x)y’ + q(x)y = 0

where the coefficients P, Q, G, p, and q are polynomials.

Series solution methods for a differential equation with variable coefficients involve solving the equation near a point x0. Using a series solution method generally involves expressing y as an infinite series in powers of (x — x0), where x0 is a specified point.

• The power series method is a general method for solving linear differential equations in the form:

y”+ p(x)y’ + q(x)y = r(x)

(including higher orders) where p(x), q(x), and r(x) are variable.

The power series method provides solutions in the form of the power series:

y(x) = a0 + a1(x -x0) + a2(x - x0)2 + ...

In this method, the power series is substituted along with its derivatives into the differential equation:

y”+ p(x)y’ + q(x)y = r(x)

The coefficient an can therefore be determined, providing p, q, and r are analytic at x = x0.

Note: A function f(x) is said to be analytic if it is differentiable at all points in its domain. A function f(x0) is analytic if it is differentiable at and near point x0. Also, a function that is real and analytic at point x = x 0can be represented in a power series in powers of (x - x0) with a positive radius of convergence.

• The Frobenius method allows the power series to be extended to differential equations in the form:

y”+ [b(x)/(x - x0)]y’ + [c(x)/(x - x0)2]y = 0

where the coefficients are singular (cannot be obtained from a general solution) at (x = x0) rather than analytic, however b(x) and c(x) are analytic at (x = x0).

These equations can have a solution in the form:

y(x) = xr[a0 + a1(x - + a2(x - x0)2 + ...]

where r is a real or complex number that is determined by substituting y(x) into the differential equation.

8.5 Systems of Differential Equations

• This section provides a brief introduction to systems of linear differential equations, including systems of first-order differential equations, systems of linear differential equations with constant coefficients aij, and systems of homogeneous linear differential equations with constant coefficients aij.

Systems of differential equations include linear systems and non-linear systems. Systems of linear differential equations can also be homogeneous or non-homogeneous, and can be solved using methods that include vectors and matrices and phase-plane methods. Systems of higher-order differential equations can sometimes be reduced to first-order equations so that simpler methods can be applied to solve them.

• Applications of systems of differential equations include mechanical systems containing springs or masses, combined networks of circuits, and many other systems in various disciplines of engineering.

• In general, a system of first-order differential equations has the form:

y1’ = f1(t, y1, y2, y3)

y2’ = f2(t, y1, y2, y3)

y3’ = f3(t, y1, y2, y3)

or in more general form:

y1’ = f1(t, y1, ... , yn)

y2’ = f2(t, y1, ... , yn) :

yn’ = fn(t, y1, ... , yn)

In such a system of differential equations, the unknown functions in the equations are solved.

• A system of differential equations in the form:

y1’ = a11y1 + a12y2 + g1

y2’ = a21y1 + a22y2 + g2

is a linear system of differential equations with constant coefficients aij.

This system can also be written in vector form as:

Image

• If this system of linear differential equations with constant coefficients has g = 0, then it becomes a homogeneous linear system of differential equations with constant coefficients aij and can be written:

y1= a11y1+ a12y2

y2= a21y1 + a22y2

In vector form, these equations become:

Image

Solutions to a system of homogeneous linear equations have the form:

y = xeλt

where λ is an eigenvalue of A and x is the eigenvector. The solution to the quadratic equations represented below is :

Image

where eigenvector x ≠ 0, and together with its components x1 and x2 form:

(a11-λ)x1+ a12x2 = 0

a12x2= 0 a12x1+ (a22-λ)x2= 0

• Note that a system of differential equations can be solved using a phase-plane method where solutions to:

y’ = Ay

or equivalently, for two dimensions:

y1= a11y1 + a12y2

y2= a21y1 + a22y2

are found such that y1 = y1(t) and y2 = y2(t) exist as a path or curve of a solution in a y1y2-phase plane. A point P(y1,y2) is a critical point of the system and occurs where the right sides of the system equal zero. Point P can be a node, saddle point, center, or spiral point, and can be stable or unstable. (Please see a textbook on differential equations for a complete explanation of this and other solutions in this chapter.) Phase-plane methods can be applied to non-linear systems using linearization.

8.6 Laplace Transform Method

• This section provides a brief introduction to the Laplace transform method for solving differential equations.

• The Laplace transform method is used to solve differential equations and systems of differential equations and their corresponding initial and boundary value problems. The method involves transforming a complicated problem into a simple equation called a subsidiary equation, solving this equation using algebraic techniques, then transforming the solution of the subsidiary equation back to find the solution of the original problem.

• The Laplace transform of a function f(t) is written:

F(s) = Image(f) = 0 e-st f(t) dt

where differentiation of f with respect to t corresponds to the multiplication of the transform F with s:

Image(f ’(t)) = sImage(f(t)) – f(0)

Image(f“(t)) = s2Image(f(t)) – sf(0) – f (0)

Image(fn)(t)) = snImage(f(t)) – s(n-1)f(0) – ... – sf(n-2)(0) – f(n-1)(0)

• To solve a given differential equation in the form:

y”+ ay’ + by = r(x)

First take the transform and set Image(y) = Y(s) to determine a subsidiary equation that has the form:

(s2 + as + b)Y = Image(r) + sf(0) + f (0) + af(0)

Tables of functions and their Laplace transforms Image(f) can be used to obtain the transform Image(r).

The subsidiary equation is solved for Y(s) algebraically and the inverse transform y(t) = Image-1(Y) is determined to find the solution. This last step often involves using Laplace transform tables.

8.7 Numerical Methods for Solving Differential Equations

• This section provides a brief introduction to the use of numerical methods for solving differential equations including the Euler method, the Improved Euler method, the Runge-Kutta method, and the Adams-Moultan method.

Numerical methods are used to solve various types of differential equations. Numerical procedures involve constructing approximate values of y0, y1, y2,...yn at points x0, x1, x2,...xn. Problems to consider when using numerical methods include convergence and error.

• To demonstrate the concept of numerical methods, consider a first-order initial value problem:

y’ = f(x,y), y(x0) = y0

To find the solution, begin with the Taylor series:

y(x+h) = y(x) + hy’(x) + (h2/2)y"(x) + ...

Then truncate the series after the y’ term. This results in an expression used repeatedly in the Euler method:

yn+1 = yn + hf(xn,yn) = yn + hyn

where n = 0, 1, 2, ... , and h is the step size between points x0, x1, x2,...xn.

If the series is truncated to include the y”term, then the resulting expression is used in the Improved Euler method (also called the Improved Euler-Cauchy method or Heun’s method):

yn+1 = yn + h[f(xn,yn) + f(xn+h, yn+hf(xn,yn))]/2

= yn + h[yn’ + f(xn+h, yn+h yn’)]/2

If the series is truncated to include the h4 term, a more accurate method results called the Runge-Kutta method of fourth-order. This method involves calculating the following:

kn1 = f(xn, yn),

kn2 = f(xn + h/2, yn + hkn1/2) k

n3 = f(xn + h/2, yn + hkn2/2)

kn4 = f(xn + h, yn + hkn3

Then substituting them into the expression:

yn+1 = yn + (h/6)[kn1 + 2kn2 + 2kn3 + kn4]

• Another numerical method called the Adams-Moultan method involves calculating a“predictor”given by:

yn+1 = yn + (h/24)[55yn’ – 59yn-1’ + 37yn-2’ – 9yn-3’]

Then calculating a“corrector”given by:

yn+1 = yn + (h/24)[9yn+1’ + 19yn’ – 5yn-1’ + yn-2’]

where y1, y2, y3 are first calculated using the Runge-Kutta method.

• Second-order ordinary differential equations can be solved using an extension of the Runge-Kutta method called the Runge-Kutta-Nystrom method.

• Note that numerical methods are commonly used to solve partial differential equations.

8.8 Partial Differential Equations

• This section provides a brief introduction to partial differential equations.

Partial differential equations are used to model physical and geometrical systems where there are functions that depend on two or more independent variables. Partial differential equations arise in fluid mechanics, dynamics, elasticity, heat transfer, quantum mechanics, electro-magnetic theory, and many engineering problems. In partial differential equations, the independent variables include time and space coordinates.

• Examples of second-order partial differential equations include:

One-dimensional wave equation:

2u/∂t2 = c2(∂2u/∂x2)

Two-dimensional wave equation:

2u/∂t2 = c2[(∂2u/∂x2) + (∂2u/∂y2)]

One-dimensional heat equation:

∂u/∂t = c2(∂2u/∂x2)

Two-dimensional Laplace equation:

2u = (∂2u/∂x2) + (∂2u/∂y2) = 0

Three-dimensional Laplace equation:

2u = (∂2u/∂x2) + (32u/∂y2) + (∂2u/∂z2) = 0

Two-dimensional Poisson equation:

(∂2u/∂x2) + (∂2u/∂y2) = f(x,y)

• Solutions to partial differential equations are often obtained in a specified region that satisfies initial conditions or boundary conditions where values of the solution u or its derivatives on the boundary curve or surface of the region are set. For example, in wave equations initial conditions may be displacement or velocity at time t = 0. Or in heat equations an initial temperature may be specified.

• Partial differential equations can be solved using a separation of variables method or the product method in which the solutions form products of functions that each depend on one of the variables. For example, the solution form u(x,t) = F(x)G(x) can be used to solve the one-dimensional wave equation or the one-dimensional heat equation, where substituting into the partial differential equation gives an ordinary differential equation for F and G.

Numerical methods are commonly used to solve partial differential equations. Such methods can include replacing the partial derivatives with difference quotients. The following solution forms can also be used to solve these equations:

For the Laplace equation:

ui+1j + uij + 1 + ui-1j + uij-1 - 4uij 0

For the heat equation:

(1/k)[uij+1 – uij] =(1/h2)[ui+1j – 2uij + ui-1j]

For the wave equation:

(1/k2)[uij+1 – 2uij + uij-1] =(1/h2)[ui+1j – 2uij + ui-1j]

where h and k represent the size of the sections in a grid in x- and y-directions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset