• Tidak ada hasil yang ditemukan

3 Higher-order linear equations

N/A
N/A
Protected

Academic year: 2025

Membagikan "3 Higher-order linear equations"

Copied!
13
0
0

Teks penuh

(1)

3 Higher-order linear equations

Here we consider the general n-th order linear ODE, namely,

Pn(x)y(n)+Pn−1(x)y(n−1)+· · ·+P1(x)y0 +P0(x)y=g(x). (3.1) Before looking at the solution of such equations, we need to look at the concept of linear dependence.

3.1 Linear independence of solutions: Wronskian

Defn: The functions y1, . . . , ym are said to be linearly dependent on the in- terval (α, β)if there exist ci not all such that

m

X

i=1

ciyi(x)≡0, α < x < β. (3.2) They are said to be linearly independent if they are not linearly dependent.

The importance of this concept becomes clearer when we consider the homo- geneous equation

Pn(x)y(n)+Pn−1(x)y(n−1)+· · ·+P1(x)y0 +P0(x)y= 0. (3.3) (It is convenient to consider the homogeneous equation rst as it turns out that the solution of the nonhomogeneous equation depends on the solution of the homogeneous equation.)

Theorem: Suppose the functions P0, P1, . . . , Pn in Eq. 3.3 are continuous on the interval (α, β)with Pn(x) never zero on this interval. Ify1, . . . , yn are n linearly independent solutions of the homogeneous equation Eq. 3.3 on the interval (α, β)then any solution of Eq. 3.3 may be written as

y=c1y1+· · ·+cnyn, (3.4) where c1, . . . , cn are arbitrary constants. Moreover, a set of n linearly inde- pendent solutions always exists.

Proof. Omitted.

Three consequences of this theorem are:

(a) Each solution of the homogeneous equation Eq. 3.3 is a linear combi- nation of n linearly independent solutions;

(2)

(b) these n linearly independent solutions are not unique;

(c) the homogeneous equation is guaranteed to have a solution.

A test for the linear independence of n solutions is to calculate a certain determinant.

Defn: If y1, . . . , yn are n solutions of Eq. 3.3, then we dene

W[y1, . . . , yn] =

y1(x) y2(x) · · · yn(x) y10(x) y02(x) · · · yn0(x)

... ... ...

y1(n−1)(x) y(n−1)2 (x) · · · yn(n−1)(x)

. (3.5)

The functionW(x) is known as the Wronskian of the n solutions y1, . . . , yn. The n solutions are linearly independent on the interval (α, β) if and only if their Wronskian is nonzero on this interval.

It may be shown that either the Wronskian is nonzero for all x ∈ (α, β) or identically zero. Thus we may check the value of the Wronskian at any convenient point x0 ∈ (α, β). If the Wronskian is nonzero at x0, then it is nonzero for allx∈(α, β).

Example 15

For the equation y00 +y = 0, it is easily veried that y1(x) = sin(x) and y2(x) = cos(x) are two solutions. Then

W[y1, y2] =

sin(x) cos(x) cos(x) −sin(x)

=−1, (3.6)

so the two solutions are linearly independent. Thus the general solution of the equation is

y(x) =c1sin(x) +c2cos(x). (3.7) If we have initial conditions y(0) = 0 and y0(0) = 1, then we obtain c2 = 0 and c1 = 1. ##

Now we go back to the nonhomogeneous equation. If ya and yp are two solutions of the nonhomogeneous equation, then their dierencez =ya−yp satises the homogeneous equation. Analogously to Theorem 2.3, we then conclude that the general solution of the nonhomogeneous equation is given by

y=yp+c1y1+· · ·+cnyn, (3.8) where yp is any solution of the nonhomogeneous equation (known as a par- ticular solution).

(3)

Exercises

1. By nding constants c1, c2, c3, and c4 which are not all zero such that c1x+c2ex +c3xex+c4(2−3x)ex = 0, show that the functions x, ex, xex, and (2−3x)ex are linearly dependent.

2. Use the Wronskian to show that the functions ex, e2x, and e3x are linearly independent.

3. Use the Wronskian to show that the functions ex, cos(x), and sin(x) are linearly independent.

4. Verify that each of the giveny1 and y2 below are solutions of the given homogeneous dierential equation and use the Wronskian to verify that y1 and y2 are linearly independent.

(a) y1(x) = excos(x), y2(x) = exsin(x), y00−2y0+ 2y= 0. (b) y1(x) = x2, y2(x) = 1/x, x2y00−2y= 0.

(c) y1(x) = 1,y2(x) =√

x, yy00+ (y0)2 = 0. (d) y1(x) = ex, y2(x) = xex, y00−2y0+y= 0.

3.2 Constant coecients case

3.2.1 Homogeneous DEs

Though homogeneous higher-order linear equations always have a general solution (under appropriate conditions), nding these solutions may be dif- cult and it is usually necessary to use numerical methods. However, in the situation where there are constant coecients, the procedure is quite straightforward.

It hinges on assuming that the solutions are of the form y(x) = erx. Example 16

Consider the DE Classify:

y00−5y0+ 6y= 0. (3.9)

Substituting y=erx into this yields r2−5r+ 6

erx = 0

⇒ r2−5r+ 6 = 0 = (r−3)(r−2)

(4)

So we have 2 solns

y1(x) =e3x and y2(x) = e2x

The general solution is then an arbitrary linear combination of these two solutions, namely

y(x) =Ay1(x) +By2(x)

whereA,B are (arbitrary) constants. ##

General Case.

The most general (linear, const coef.) homogeneous DE can be written any(n)+an−1y(n−1)+· · ·+a1y0+a0y= 0, (3.10) wherea0, a1, . . . , an are constants.

Since this is annth-order linear DE, it will have n linearly independent solu- tions.

The solution procedure is as follows

1. Assume the solutions are of the form y=erx.

2. Substitute into the homog. DE. Since theny(j)(x) =rjerx, this gives a polynomial in r, which must be zero.

3. Find the roots r1, r2, . . . , rn of this polynomial.

4. The general solution is y(x) =A1er1x+A2er2x+. . .+Anernx. [Unless some of the roots are double, etc].

What are the A1, A2, etc?

The polynomial which arises, namely

anrn+an−1rn−1+· · ·+a1r+an= 0. (3.11) is called the characteristic equation for the dierential equation. If the n zeros of the characteristic polynomial are r1, . . . , rn, then n solutions are given by

er1x, er2x, . . . , ernx. (3.12) Actually, we have to be careful as the details of the solution depend on the nature of the roots ri (real and distinct; complex conjugates; repeated).

Specically,

Determined by two initial conditions, if given.

(5)

(i) If theri are all real and distinct, then it may be shown that the Wron- skian W[er1x, . . . , ernx] is nonzero so that the general solution of the homogeneous equation is

y(x) = A1er1x+· · ·+Anernx. (3.13) (ii) Suppose we have a zero rj of the form λ+iµ where i = √

−1. Since complex zeros occur in conjugate pairs, there must exist another zero of the formλ−iµ. It can be shown that two linearly independent solutions corresponding to these two complex zeros are given byeλxcos(µx)and eλxsin(µx)

(iii) Suppose we have a zero rj which occurs k times. Then it may be shown that k linearly independent solutions corresponding to this zero are given by

erjx, xerjx, . . . , xk−1erjx. (3.14) Example 17

Consider the general second-order linear ODE with constant coecients a2y00+a1y0+a0y= 0. (3.15) Then the characteristic polynomial is given by a2r2+a1r+a0, with rootsr1 and r2, say. We then have the following conclusions:

(i) If r1 and r2 are real and not equal,

then the general solution is y(x) = Aer1x+Ber2x. (ii) If r1 =λ+iµ and r2 =λ−iµ,

then the general solution is y(x) = Aeλxcos(µx) +Beλxsin(µx). (iii) If r1 =r2,

then the general solution is y(x) = Aer1x+Bxer1x= (A+Bx)er1x.

##

Proof about form of soln for complex conjugate roots.

Suppose we have a 2nd-order ODE with r1 = r2 = λ+iµ, as in (ii) above.

Then our theory tells us that the general solution is λ, µ∈R

y = Aer1x+Ber2x (3.16)

= Ae(λ+iµ)x+Be(λ−iµ)x (3.17)

= eλx

Aeiµx+Be−iµx

(3.18)

= eλx[A(cosµx+isinµx) +B(cosµx−isinµx)] (3.19)

= eλx[(A+B) cosµx+i(A−B) sinµx] (3.20)

≡ eλx[Ccosµx+Dsinµx], (3.21)

(6)

whereC, D must be REAL constants since we want y(x)to be real.

But waithow can that be so ifA, B are also real constants??

Answer: It can't be so! In fact, A, B are not real-valued constants but complex-valued ones. The essential requirement is that y(x) is real (not complex), and if some intermediate constants need to be complex-valued, that's ne.§

3.2.2 Nonhomogeneous DEs

We now turn to the nonhomogeneous equation

a0y(n)+a1y(n−1)+· · ·+an−1y0+any=g(x), (3.22) wherea0, a1, . . . , an are constants.

We shall consider two methods, the method of undetermined coecients and the method of variation of parameters. The rst method is easier to apply, but in practice is only useful when g is a polynomial, exponential function, trigonometric function or combinations of these. In this method we try to nd a particular solution of the same form as g.

For example, suppose g is a polynomial of degreem, that is,

g(x) = b0xm+b1xm−1+· · ·+bm−1x+bm. (3.23) Then one should try a particular solution which is also a polynomial of degree m, namely

yp(x) = A0xm+A1xm−1+· · ·+Am−1x+Am. (3.24) Ifg(x) =Ceαxsin(βx) org(x) =Ceαxcos(βx), then one should try a partic- ular solution of the form

yp(x) =Aeαxcos(βx) +Beαxsin(βx). (3.25) (The case g(x) = Ceαx is covered by taking β = 0.) The most general case may be found in the textbook.

Example 18

Consider the initial value problem given by

y00−3y0+ 2y = 2x2, y(0) =y0(0) = 0. (3.26)

§In fact, sinceiexplicitly appears in Eqns. 3.173.20 theAandB MUST be complex to allow the RHS to be real-valued.

This is in fact the same method we used for 1st-order linear equations when guessing a particular solution. See page 14.

(7)

The characteristic polynomial is r2 −3r+ 2 which has zeros 1 and 2. Thus the general solution of the homogeneous equation is

y(x) = c1ex+c2e2x. (3.27) The right-hand side g(x) is a quadratic so the particular solution to try is

yp(x) =A0x2+A1x+A2. (3.28) Substitution into the equation yields

2A0−3(2A0x+A1) + 2(A0x2+A1x+A2) = 2x2. (3.29) Thus

2A0−3A1+ 2A2 = 0, −6A0+ 2A1 = 0, 2A0 = 2. (3.30) Upon solving, we nd

A0 = 1, A1 = 3, A2 = 72. (3.31) Thus the solution of the nonhomogeneous equation is

y(x) = c1ex+c2e2x+x2+ 3x+72. (3.32) Imposing the two initial conditions shows that the unique solution to the initial value problem is

y(x) = −4ex+12e2x+x2+ 3x+72. (3.33)

##

However, there is a special proviso to the technique given above. If the above recommendations yields a particular solution which contains a solution of the homogeneous equation, then one needs to multiply such a particular solution by xs for some integer s ≥ 1. The value of s should be just large enough so that the particular solution obtained does not contain a solution of the homogeneous equation.

Example 19

Consider the dierential equation given by

y00−4y0+ 4y =e2x. (3.34) For this equation, the homogeneous solution is c1e2x +c2xe2x. Following the above recommendation, one would try yp(x) = Ae2x. However, Ae2x is solution of the homogeneous equation. Taking s= 1 is not enough as Axe2x

(8)

is also a solution of the homogeneous equation. Here we need to take s = 2 and hence use yp(x) = Ax2e2x. ##

Example 20

A dierential equation describing damped forced simple harmonic motion (for example, the motion of a mass on a spring subject to an applied external periodic force and a resistive force) is given by

my¨+γy˙+ky =asin(ωt), (3.35) where t is time, y(t) is the distance from the equilibrium point, m is the mass, γ ≥0is the damping coecient, and k > 0is the spring constant.

(3.36) The characteristic polynomial is mr2+γr+k with zeros

r1, r2 = −γ±p

γ2−4mk

2m . (3.37)

Let us consider the homogeneous equation rst (the situation when there is no forcing term). We see that the solution of the homogeneous equation depends on the sign ofγ2−4mk. We have

y(t) =

Aer1t+Ber2t, γ2−4mk >0;

Ae−γt/(2m)+Bte−γt/(2m), γ2−4mk = 0;

e−γt/(2m)[Asin(µt) +Bcos(µt)], γ2−4mk <0;

(3.38)

(9)

where

µ=

p4mk−γ2

2m >0. (3.39)

It may be veried that in all three cases y(t)→0ast→ ∞. In the rst case no oscillatory behaviour occurs and the system is said to be overdamped. The transition in behaviour occurs when γ = 2√

mk and this value is known as critical damping. The most important case is the third case when γ is small compared to mk (this is the situation in which the damping is small and is called weak damping or underdamping). Note that if know the values of A and B from initial conditions and we letβ = tan−1(A/B), then

sin(β) = A

√A2+B2 and cos(β) = B

√A2+B2. (3.40) Since cos(µt −β) = sin(β) sin(µt) + cos(β) cos(µt), it follows that we can write

y(t) = Re−γt/(2m)cos(µt−β), (3.41) where R=√

A2+B2. As indicated above, this solution of the homogeneous equation exhibits oscillatory behaviour. Although the motion is not periodic, the parameter µ determines the frequency with which the mass oscillates.

Consequently, µis known as the quasi-frequency.

We now consider the third case in more detail. In particular, we consider the nonhomogeneous equation. First, let us look at the situation when γ = 0 (that is, no damping) and µ = ω. Then µ2 = k/m and the solution of the homogeneous equation is

y(t) =c1sin(ωt) +c2cos(ωt). (3.42) Then we look for a particular solution of the form

up(t) = Atcos(ωt) +Btsin(ωt). (3.43) (The particular solution we try out is not up(t) = Acos(ωt) + Bsin(ωt) because this up is a solution of the homogeneous equation.) By substitution into the equation, one may verify that A=−a/(2mω) andB = 0. Thus the solution is

u(t) =Rcos(ωt−β)− a

2mωtcos(ωt). (3.44) This solution is unbounded as t → ∞ and this phenomenon is known as resonance. In practice the spring would probably break.

We now look at the case when γ >0. Then we look for a particular solution of the form

up(t) =Acos(ωt) +Bsin(ωt). (3.45)

(10)

Hence

asin(ωt) = −mω2(Acos(ωt) +Bsin(ωt)) (3.46) +γω(−Asin(ωt) +Bcos(ωt)) (3.47) +k(Acos(ωt) +Bsin(ωt)). (3.48) Thus we require

−mω2A+γωB+kA= 0 and −mω2B−γωA+kB =a. (3.49) Upon solution we nd

up(t) = a

(k−mω2)2+ (γω)2[−γωcos(ωt) + (k−mω2) sin(ωt)]. (3.50) In the undamped case we saw thatup was unbounded. This will not happen in the present case. However, for some values of ω, the maximum may be so large that it causes the system to be destroyed. This is called practical resonance and may arise when γ is small and ω2 is close to k/m. For those interested, the textbook contains a lot more detail about such mechanical vibrating systems. ##

3.3 Method of Variation of Parameters

We now look at the method of variation of parameters. This method may be used for general linear ODEs and is not restricted to just those with constant coecients. For simplicity, we shall consider only the n = 2 case. Suppose we have solved the homogeneous equation so that we have a general solution y(x) =c1y1(x) +c2y2(x). (3.51) In the method of variation of parameters we seek a particular solution of the form

yp(x) = w1(x)y1(x) +w2(x)y2(x), (3.52) wherew1andw2 are functions to be determined. Since we have two functions to determine, we need to specify two conditions. One obvious condition is that yp satisfy the dierential equation. The other condition is chosen so as to `make life easy'. In particular, we impose the condition

w01y1+w02y2 = 0. (3.53) The reason for this choice is that since

yp0 =w1y10 +w2y20 +w01y1+w02y2, (3.54)

(11)

we do not get any second derivatives of w1 and w2 inyp00 if this condition is imposed. With two equations, we can then solve for w01 and w20 and hence nd w1 and w2.

Example 21

We use the method of variation of parameters to solve the equation given in Example 18. Then we seek a particular solution of the form

yp(x) = w1(x)ex+w2(x)e2x. (3.55) Imposing the condition

w01(x)ex+w02(x)e2x = 0 (3.56) means that

yp0(x) = w1(x)ex+ 2w2(x)e2x (3.57) and

y00p(x) =w1(x)ex+ 4w2(x)e2x+w01(x)ex+ 2w02(x)e2x. (3.58) We require yp to satisfy the dierential equation. Substitution into the dif- ferential equation and some algebra yields

w10(x)ex+w20(x)2e2x = 2x2. (3.59) Solving the pair of simultaneous equations in w01 and w20 given by Eq. 3.56 and 3.59 yields

w20(x) = 2x2e−2x and w01(x) =−2x2e−x. (3.60) Integration by using a table of integrals yields

w1(x) = −2e−x(−x2−2x−2) +c1, (3.61) w2(x) = 2e−2x(−x2/2−x/2−1/4) +c2. (3.62) Thus

yp(x) = 2x2+ 4x+ 4 +c1ex−x2−x−1/2 +c2e2x (3.63)

= x2+ 3x+ 7/2 +c1ex+c2e2x. (3.64) If we discard the c1ex and c2e2x terms which are solutions of the homoge- neous equation, we end up with the same particular solution as before. The technique for general n may be found in the textbook. ##

(12)

Exercises

1. Solve the following homogeneous ODEs with given initial conditions.

(a) y00−2y0−5y= 0, y(0) = 0, y0(0) = 3.

(b) y000−3y0 −2y= 0, y(0) =y00(0) = 0, y0(0) = 9. (c) y(4)−y= 0, y(0) = 1, y0(0) =y00(0) =y000(0) = 0. 2. Solve the following second-order linear ODEs.

(a) y00+y0−2y= 2x, y(0) = 0, y0(0) = 1.

(b) y00−a2y=ebx, wherea and b are arbitrary constants.

(c) 2y00−4y0−6y= 3e2x.

(d) y00+ 4y = 4x2+ex, y(0) = 1, y0(0) = 1. (e) y00+ 2y0+y =excos(x).

(f) y00−y0−2y= cosh(2x).

3. (a) For the second-order linear dierential equation

a0x2y00+a1xy0+a2y= 0, (3.65) where a0, a1, and a2 are constants, show that the substitution x=ew transforms the equation into

a0d2y

dw2 + (a1−a0)dy

dw +a2y= 0, (3.66) an equation which has constant coecients.

(b) Use the result of part (a) to solve the dierential equation

2x2y00+ 3xy0−15y=x−3. (3.67) 4. Use the method of variation of parameters to nd the solution of the

following ODEs.

(a) y00+y= sec(x) tan(x). (b) y00−3y0+ 2y= 1/(1 +e−x).

(c) y00−3y0+ 2y= cos(e−x).

(d) (1−2x)y00+ 4xy0−4y= (x−1)2e−x. (Hint: verify that y1(x) =x and y2(x) = e2x are solutions of the corresponding homogeneous equation.) (1−kx)y00+k2xy0−k2y= (x−1)2e−x. (y1(x) =xand y2(x) =ekx)

(13)

5. (a) The equation

x2y00+xy0 + (x2−ν2)y= 0, ν ≥0, (3.68) is an important equation in applied mathematics known as Bessel's equation. By making the substitution y(x) = xcu(x), show that the equation reduces to

x2u00+ (1 + 2c)xu0+ (c2+x2−ν2)u= 0. (3.69) (b) Ifνis not an integer, then the general solution of Bessel's equation

may be written as

y(x) =AJν(x) +BJ−ν(x), (3.70) whereA andB are arbitrary constants, andJν is the Bessel func- tion of orderν. Use the result of part (a) to show that there exist constants C and D such that

A√

xJ1/2(x) +B√

xJ−1/2(x) =Csin(x) +Dcos(x). (3.71)

Referensi

Dokumen terkait

An online pharmacy sells and dispenses prescription medications and over the counter drugs through the Internet.. The medicines and drugs are delivered by a mail-order system to

As the size reduces, the electronic and optical properties of the metal are determined by the type of motion the electrons undergo in the space to which it is confined.2 That is to say,

It is noted in [1] that when the mixed finite element methods are applied to 1.1, taking the so called MINI elements for velocity and pressure which are subject to the inf-sup

Rae Welch: That activity allowed higher-order thinking to happen because the children had to classify and sort the different objects and really think about what it was that was making

Mathematical literacy is defined as ‘an individual’s capacity to identify and understand the role that mathematics plays in the world, to make well-founded judgements and to use and

10 Marks For a BPSK signalling scheme b =±1, consider the following discrete time observation model real case y1 = 2 b+w1 y2 = −4b+w2 wherew1 and w2 are zero-mean independent Gaussian

Explain pros and cons of using Global Positioning System GPS in higher surveying.. What are the application of photogrammetry in higher

In this note we present irreducible homogeneous non-symmetric open convex cones of rank 3 that are linearly isomorphic to the dual cones.. 343], if the irreducibility condition is