ENGI Second Order Linear ODEs Page Second Order Linear Ordinary Differential Equations

Similar documents
ENGI 9420 Lecture Notes 1 - ODEs Page 1.01

Second-Order Linear ODEs

Second-Order Linear ODEs

dx n a 1(x) dy

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation

Chapter 3 Higher Order Linear ODEs

ENGI 3424 First Order ODEs Page 1-01

MAT187H1F Lec0101 Burbulla

17.2 Nonhomogeneous Linear Equations. 27 September 2007

Higher-order ordinary differential equations

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

IV Higher Order Linear ODEs

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

4.2 Homogeneous Linear Equations

ENGI 4430 PDEs - d Alembert Solutions Page 11.01

2. Higher-order Linear ODE s

2. Determine whether the following pair of functions are linearly dependent, or linearly independent:

The Corrected Trial Solution in the Method of Undetermined Coefficients

ODE. Philippe Rukimbira. Department of Mathematics Florida International University PR (FIU) MAP / 92

Goals: Second-order Linear Equations Linear Independence of Solutions and the Wronskian Homogeneous DEs with Constant Coefficients

Consider an ideal pendulum as shown below. l θ is the angular acceleration θ is the angular velocity

Advanced Eng. Mathematics

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

APPLIED MATHEMATICS. Part 1: Ordinary Differential Equations. Wu-ting Tsai

Differential Equations

2. Second-order Linear Ordinary Differential Equations

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

Introductory Differential Equations

NORMAL MODES, WAVE MOTION AND THE WAVE EQUATION. Professor G.G.Ross. Oxford University Hilary Term 2009

Chapter 3. Reading assignment: In this chapter we will cover Sections dx 1 + a 0(x)y(x) = g(x). (1)

Applications of Second-Order Differential Equations

Math 3313: Differential Equations Second-order ordinary differential equations

Chapter 2 Second-Order Linear ODEs

Applications of Linear Higher-Order DEs

SECOND-ORDER DIFFERENTIAL EQUATIONS

MA22S3 Summary Sheet: Ordinary Differential Equations

SPS Mathematical Methods. Date for Quiz No. 3: 2nd April 2015.

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

Ordinary Differential Equations (ODEs)

Basic Theory of Linear Differential Equations

Differential Equations 2280 Sample Midterm Exam 3 with Solutions Exam Date: 24 April 2015 at 12:50pm

REFERENCE: CROFT & DAVISON CHAPTER 20 BLOCKS 1-3

A Brief Review of Elementary Ordinary Differential Equations

6 Second Order Linear Differential Equations

Higher Order Linear ODEs

Step 1. Step 2. Step 4. The corrected trial solution y with evaluated coefficients d 1, d 2,..., d k becomes the particular solution y p.

Math 308 Week 8 Solutions

Linear Second Order ODEs

Quintic beam closed form matrices (revised 2/21, 2/23/12) General elastic beam with an elastic foundation

MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

MATH 2250 Final Exam Solutions

Math 2142 Homework 5 Part 1 Solutions

2.3 Linear Equations 69

Table of contents. d 2 y dx 2, As the equation is linear, these quantities can only be involved in the following manner:

MB4018 Differential equations

Linear DifferentiaL Equation

4 Differential Equations

3.4.1 Distinct Real Roots

Math Assignment 5

Diff. Eq. App.( ) Midterm 1 Solutions

California State University Northridge MATH 280: Applied Differential Equations Midterm Exam 2

General elastic beam with an elastic foundation

APPLICATIONS OF SECOND-ORDER DIFFERENTIAL EQUATIONS

MA 266 Review Topics - Exam # 2 (updated)

MATH 1231 MATHEMATICS 1B Calculus Section 2: - ODEs.

CHAPTER 2. Techniques for Solving. Second Order Linear. Homogeneous ODE s

Ordinary Differential Equations

Ma 221 Final Exam Solutions 5/14/13

Math K (24564) - Lectures 02

17.8 Nonhomogeneous Linear Equations We now consider the problem of solving the nonhomogeneous second-order differential

DIFFERENTIAL EQUATIONS

Structural Dynamics Lecture Eleven: Dynamic Response of MDOF Systems: (Chapter 11) By: H. Ahmadian

B Ordinary Differential Equations Review

Ordinary Differential Equations (ODEs)

3.3. SYSTEMS OF ODES 1. y 0 " 2y" y 0 + 2y = x1. x2 x3. x = y(t) = c 1 e t + c 2 e t + c 3 e 2t. _x = A x + f; x(0) = x 0.

Second order linear equations

Homework Solutions: , plus Substitutions

Math 211. Substitute Lecture. November 20, 2000

McGill University Math 325A: Differential Equations LECTURE 12: SOLUTIONS FOR EQUATIONS WITH CONSTANTS COEFFICIENTS (II)

Second-Order Homogeneous Linear Equations with Constant Coefficients

Monday, 6 th October 2008

AMATH 351 Mar 15, 2013 FINAL REVIEW. Instructor: Jiri Najemnik

Ex. 1. Find the general solution for each of the following differential equations:

Work sheet / Things to know. Chapter 3

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Chapter 2: Complex numbers

=================~ NONHOMOGENEOUS LINEAR EQUATIONS. rn y" - y' - 6y = 0. lid y" + 2y' + 2y = 0, y(o) = 2, y'(0) = I

ENGI 2422 First Order ODEs - Separable Page 3-01

Introduction to First Order Equations Sections

Nonhomogeneous Linear Differential Equations with Constant Coefficients - (3.4) Method of Undetermined Coefficients

كلية العلوم قسم الرياضيات المعادالت التفاضلية العادية

A( x) B( x) C( x) y( x) 0, A( x) 0

Title: Solving Ordinary Differential Equations (ODE s)

Thursday, August 4, 2011

SECOND-ORDER LINEAR DIFFERENTIAL EQUATIONS

UNDETERMINED COEFFICIENTS SUPERPOSITION APPROACH *

CIV-E1060 Engineering Computation and Simulation Examination, December 12, 2017 / Niiranen

Second Order ODE's (2A) Young Won Lim 5/5/15

Second Order Linear Equations

Transcription:

ENGI 344 - Second Order Linear ODEs age -01. Second Order Linear Ordinary Differential Equations The general second order linear ordinary differential equation is of the form d y dy x Q x y Rx dx dx Of the second (and higher) order ordinary differential equations, the linear equations with constant coefficients will command most of our attention in this chapter: d y dx dy Q y R x dx Contents:.1 Complementary Function. articular Solution (Variation of arameters).3 articular Solution (Undetermined Coefficients).4 Higher Order Linear Ordinary Differential Equations.5. Numerical Methods

ENGI 344.1 Complementary Function age -0.1 Complementary Function The homogeneous equation associated with the ODE d y dx dy dx Q y d y dx 0 dy Q y Rx is dx The principle of superposition of solutions of the homogeneous equation is valid because it is linear. That is, if y = u(x) and y = v(x) are both solutions of the homogeneous ODE, then so also is any linear combination of these functions: y = c 1 u(x) + c v(x), where c 1 and c are any constants. Adding any solution of the homogeneous ODE to a particular solution of the original ODE generates another solution of the original ODE. Thus the general solution (abbreviated as G.S.) of d y dy dx dx Q y Rx can be partitioned into two parts: the complementary function (C.F., which is the general solution of the associated homogeneous ODE) and a particular solution (.S.). If y e x then Substituting y e x into the homogeneous ODE: from which the auxiliary equation (A.E.) follows: + + Q = 0 [The choice of y e x as a trial solution to the homogeneous ODE is justified later, on page -09, when a more general method for finding the complementary function is introduced.]

ENGI 344.1 Complementary Function age -03 The solution of the auxiliary equation + + Q = 0 is Distinct roots ( 1 ) the complementary function is [The case of equal roots will be dealt with later, on page.08.] Example.1.1 Solve the differential equation The auxiliary equation is y" + 3y' 4y = 0 The complementary function (which is also the general solution) is Checking the solution:

ENGI 344.1 Complementary Function age -04 Example.1. Solve y" y' + y = 0 In general, when the roots of the auxiliary equation are a complex conjugate pair of values, = a ± bj, then the complementary function is C ax jbx jbx ax cos sin y x e c e c e e c bx c bx 1 3 4 (where the arbitrary constants are related by c3 c1 c and c j c c ) 4 1 or y C (x) = A e ax cos(bx ) c c where A c c, cos and sin or y C (x) = A e ax sin(bx ) c3 c4 where A c3 c4, sin and cos c c c c 3 4 3 4 c3 c4 c3 c4 3 4 3 4 Note that, for an auxiliary equation of this type, with real coefficients, where the solution is constrained to be real, the arbitrary constants c 3 and c 4 are both real, but c 1 and c often are not. For this reason, the forms involving the trigonometric functions are usually preferred to the complex exponential form.

ENGI 344.1 Complementary Function age -05 Example.1.3 A spring, that is not at its natural length, experiences a restoring force R that is proportional to the extension s beyond the natural length and is directed towards the equilibrium position. In the absence of friction, this would lead to undamped simple harmonic motion. Let us suppose that there is also a friction force D that is proportional to the speed and acts in the opposite direction to the velocity. Restoring force proportional to displacement Friction (drag) proportional to speed Newton s second law of motion: Therefore the ODE governing the motion of the spring is

ENGI 344.1 Complementary Function age -06 Example.1.3 (continued) Suppose that m = 1 kg, b = 6 kg s 1, c = 5 kg s and that the spring begins at its equilibrium position, but moving at m s 1 to the right, so that s(0) = 0 and v(0) =, then the ODE becomes Note that if b = 0 (no friction at all), then the system is totally undamped and exhibits simple harmonic motion: s(t) = A sin (kt ) where k c m.

ENGI 344.1 Complementary Function age -07 The General Spring roblem Case 1: b c 4 m m d s b ds c s 0 dt m dt m λ = Case : λ = b c 4 m m or or Case 3: b c 4 m m λ =

ENGI 344.1 Complementary Function age -08 Complementary Function when the Auxiliary Equation has Equal Roots 1 the ODE becomes y" λ y' + λ y = 0 One solution to this equation is y C1 e x We require another solution that is independent of this one (so that there will be two distinct arbitrary constants of integration in the complementary function). Try f x C xe x [This second form arises naturally from the operator method, on page.09.] Then f '(x) = and f "(x) = Example.1.4 Solve y" 6y' + 9y = 0

ENGI 344.1 Complementary Function age -09 The Operator Method The homogeneous ordinary differential equation with constant coefficients, d y dy Q y 0 dx dx can also be written, using differential operators, in the form d d k1 k y 0 dx dx Justification: The second order ODE can therefore be re-written as a linked pair of first order linear ordinary differential equations [the method of reduction of order, section 1.4]: d k1 dx 0, (A) where dy k y. dx (B) Solution:

ENGI 344.1 Complementary Function age -10 Operator Method (continued)

ENGI 344.1 Complementary Function age -11 Operator Method (continued) Summary for the Complementary Function: ODE: y" + y' + Q y = 0 A.E.: λ + λ + Q = 0 λ real and distinct y A e B e C 1x x λ real and equal y Ax B e x C λ complex conjugate pair ax yc e C cos bx D sin bx, where a Re, b Im

ENGI 344. Variation of arameters age -1. articular Solution (Variation of arameters) The method of variation of parameters is a general method for finding the particular solution of a linear ODE. If the complementary function for the ODE d y dy dx dx y x C y x C y x Q y Rx is, (so that, C 1 1 1 solutions to the homogeneous ODE), then the particular solution is y x y x is a basis for the space of all y x u x y x v x y x, 1 where the functions u(x) and v(x) need to be determined. We need two constraints in order to pin down the functional forms of u(x) and v(x). u x y x v x y x be a particular solution of the An obvious constraint is that 1 ODE. We have considerable freedom as to what the other constraint will be. y u y v y 1 Impose our free constraint,

ENGI 344. Variation of arameters age -13 Define the Wronskian function W(x) to be W y, x det y1 y y 1 y 1 y together with the associated determinants 0 y y1 0 W1 det yr and W det y1r R y y 1 R then Cramer s rule yields solutions for u' and v' : W1 W u and v. W W Therefore a particular solution is y u y1 v y, where W x W x y x R x y x R x 1 u x dx, v x dx, W x y y y 1 y 1 Note that we can ignore the arbitrary constants of integration in both integrals, because Ay 1 and By are both solutions of the homogeneous ODE and can therefore be absorbed into the complementary function. Example..1 Find the general solution of the ODE x y y 3y x e.

ENGI 344. Variation of arameters age -14 Example..1 (continued) articular Solution by Variation of arameters:

ENGI 344. Variation of arameters age -15 Example..1 (continued)

ENGI 344. Variation of arameters age -16 Example.. Find the general solution of: y" + y = tan x

ENGI 344. Variation of arameters age -17 Example.. (continued)

ENGI 344. Variation of arameters age -18 Example..3 Use the variation of parameters method to find the particular solution, then find the complete solution of the initial value problem y" y' + y = e x, y(0) = 0, y'(0) = 1

ENGI 344. Variation of arameters age -19 Example..3 (continued) Note that a complete solution requires additional information (often in the form of initial conditions). Two pieces of information are needed in order to evaluate both arbitrary constants of integration. However, do not substitute these conditions into the complementary function; wait until the general solution has been obtained.

ENGI 344. Variation of arameters age -0 The method of variation of parameters may also be used to find the particular solution of a linear second order ODE whose coefficients are not constant. However, general methods for finding the complementary functions in these cases are beyond the scope of this course. Example..4 Verify that the complementary function for the ODE d y dy x 5x 8 y 3x dx dx 4 is yc Ax B x and hence find the general solution of the ODE. 4 yc Ax B x y C The particular solution is y x u x y x v x y x where y x and y x 4 1 1

ENGI 344. Variation of arameters age -1 Example..4 (continued) [This example appeared in the journal note A seldom used formula for ODEs, George, G.H., Mathematical Gazette, vol. 9, #54, pp. 344-348]

ENGI 344.3 Undetermined Coefficients age -.3 articular Solution (Undetermined Coefficients) The general solution to d y dy Q y Rx dx dx is the sum of the complementary function and any one solution (the particular solution) that we can find to the original inhomogeneous ODE. The method of variation of parameters to find the particular solution is powerful, but it can involve an unnecessary level of effort. In some cases, an alternative method (undetermined coefficients) is available that is often faster to use. If the function R(x) does not contain any part of the complementary function, then assume that the particular solution y (x) is of the same form as R(x). Example.3.1 (same as Example..1) Find the general solution of the ODE x y y 3y x e. A.E.: C.F.:.S.: R(x) contains neither 3x e nor x e. R x is the sum of a quadratic function and x e. Therefore try the sum of a quadratic function and a multiple of where all four coefficients are to be determined. x e,

ENGI 344.3 Undetermined Coefficients age -3 Example.3.1 (continued) x y ax bx c d e Matching coefficients: G.S.: yx y x y x Therefore C

ENGI 344.3 Undetermined Coefficients age -4 General Method: d y dx dy dx Q y Rx If the function R x does not contain any part of the complementary function, then y x is of the same form as R x. assume that the particular solution kx If Rx e If then try, y ce kx, with c to be determined. R x = (a polynomial of degree n), then try y = (a polynomial of degree n), with all (n + 1) coefficients to be determined. If R(x) = (a multiple of cos kx and/or sin kx), then try y ccos k x d sin k x, with c and d to be determined. This method can be extended to cases where R x = (a sum and/or product of the functions above). But: if part (or all) of y is included in the complementary function y C, then multiply y by x and try again. As seen above in Example.3.1, the method of undetermined coefficients can be used in Example..1 x. It can also be used in Example..3 Rx R x x e However, in Example.., Rx tan x e. x, which does not fall into any of these categories. The method of undetermined coefficients cannot be used in this case to find y cos x ln sec x tan x ). the particular solution (which was

ENGI 344.3 Undetermined Coefficients age -5 Example.3. Consider a model of the simple series RLC circuit, where the constants R, L, C are the resistance, inductance and capacitance respectively, E(t) is the applied electromotive force, t is the time and it is the resulting current. Examine the voltage drops around the circuit: R : L : dq C : and note that i. dt

ENGI 344.3 Undetermined Coefficients age -6 Example.3. (continued) articular solution If E(t) = E o (constant), then Suppose that the e.m.f. is sinusoidal, so that E(t) = E o sin ωt, then 1 de Eocos t L dt L.S.: Try i asint bcost i b sint a cost i a sint b cost R 1 i i i L LC br a ar b L LC L LC Eo 0 sint cost L a sint b cost b R a a L LC RC a b 1 LC ar a 1 Eo 1 LC L RC LC L ar RC C a1 LC Eo RC LC RC LC L a Eo RC LC EoC RC L RC 1 LC RC 1 LC LC EoC RC EoC 1 LC 1 1 1 b RC RC LC RC LC

ENGI 344.3 Undetermined Coefficients age -7 Example.3. (continued) Therefore the particular solution is i o RC 1 LC E C RC sint 1 LC cost which is a steady-state sinusoidal response to the sinusoidal electromotive force, but with RC a phase difference of arccos RC 1 LC. The total current is then Rt sin 1 cos L D D E C RC t LC t it e A sin t B cos t L L RC 1 LC transient steady state As a specific example, if E(t) = 17 sin t, R = 10 Ω, C = 1 mf and L = 10 H, then it can be shown that t sin 8 cos8 sin 4cos 6 1 i t e A t B t t t 10 6t The transient current, i t e A sin 8t B cos8t C, dies away very quickly. Its magnitude falls to under 1% of the total current permanently in less than a second. The values of the two arbitrary constants can be found from the initial conditions, but, given that the complementary function becomes negligible in a very short time, one often does not try to evaluate them. Example.3.3 Find the complete solution of the initial value problem x y y y e, y 0 y 0 1

ENGI 344.3 Undetermined Coefficients age -8 Example.3.3 (continued)

ENGI 344.4 - Higher Order ODEs age -9.4 Higher Order Linear Ordinary Differential Equations The n th order ordinary differential equation n n1 n d y d y d y d y dy a a an an an y n 1 n 1 n 1 dx dx dx dx dx (where the coefficients a are all constant) can be solved as follows. i Form the auxiliary equation n n 1 n a a a a 1 a Find all n values for. 1 n n1 n 0 Rx Form the complementary function e, e,, e 1x x nx y C, which will be a linear combination of (except for repeated roots). Complex conjugate pairs can be re-written in terms of sine and cosine functions. Find a particular solution y (by inspection, undetermined coefficients, or variation of parameters, as extended to this higher order equation). Write down the general solution y yc y. n initial and/or boundary conditions will be needed at this stage to evaluate all of the n arbitrary constants of integration. Example.4.1 Find the general solution of 5 4 3 d y d y d y d y dy 3 4 4 5 4 3 dx dx dx dx dx 8x Auxiliary equation: 5 4 3 3 4 4 0

ENGI 344.4 - Higher Order ODEs age -30 Example.4.1 (continued)

ENGI 344.4 - Higher Order ODEs age -31 Example.4. A thin uniform beam of length L experiences a transverse deflection y(x) at location x (0 < x < L) due to a transverse force per unit length W(x). From the elementary theory of beams, the governing differential equation is EI 4 d y dx 4 W x where EI is the flexural rigidity of the beam, E is Young s modulus and I is the moment of inertia of the beam about its central axis. If the beam has uniform elastic properties and a uniform cross section along its length, then its flexural rigidity EI is constant. The initial conditions are: y 0 a the deflection at x = 0, 0 b 0 0 y the slope at x = 0, EI y c the bending moment at x = 0 and EI y d the shear at x = 0. Find the deflection for a cantilever beam with uniform load W(x) = W (constant). For a cantilever beam, the deflection and slope are zero at the fixed end (x = 0), while the bending moment and the shear are zero at the free end (x = L ).

ENGI 344.4 - Higher Order ODEs age -3 Example.4. (continued)

ENGI 344.5 - Numerical Methods age -33.5. Numerical Methods [not examinable] An initial value problem with an nth order ordinary differential equation can be re-written as a linked set of n first order initial value problems. Where analytical solutions are difficult or impossible, extensions of numerical methods, such as the Euler and RK4 methods, can be applied to obtain approximate solutions to these initial value problems at particular values of the independent variable. A more general case for initial value problems involving second order ODEs, d y dy x, y Qx, y y Rx, y0 a, y0 b, dx dx transforms into the linked pair of first order initial value problems dy z, y 0 a dx and dz R x Q x, y y x, y z, z 0 b dx This pair of problems can be solved sequentially (as in the operator method on pages.09, 0 x, y f x. Otherwise analytical to.11) if the coefficients Qx y and solutions are mostly beyond the scope of this course. Symbolic algebra software, such as Maple, may be able to provide exact solutions or numerical approximations. Example.5.1 Use software to estimate the value of y(0.5) given that d y dy y y sin x, y 0 0, y0 1. dx dx Using Maple software, the commands > with(detools): > DEplot(diff(y(x),x$)+y(x)*y(x)*diff(y(x),x)+y(x)-sin(x),y(x), x=-3..1, [[y(0)=0,d(y)(0)=1]], y=-6..3, stepsize=.05, linecolour=[blue]); produce the plot

ENGI 344.5 - Numerical Methods age -34 Example.5.1 (continued) which does not resemble any standard function. Zooming in (to x=0..0.5, y=0..0.5 and enhancing slightly), we can see that our estimate is y 0.5 0.495 The Maple worksheet is on the course web site, at "www.engr.mun.ca/~ggeorge/344/ demos/ex51.mws" The further sequence of Maple commands > ode1 := diff(y(x),x$)+y(x)*y(x)*diff(y(x),x)+y(x)-sin(x); > ic1 := y(0) = 0, D(y)(0) = 1; > dsol1 := dsolve({ode1, ic1}, numeric, range=0..1); > dsol1(0.5); produces y(0.5) =.494 671...

ENGI 344.5 - Numerical Methods age -35 Example.5. Find the general solution of the ordinary differential equation d y dy x 6x 1y 4 dx dx and find the complete solution given the additional information y y 1, 1 1. This is an example of a dimensionally homogeneous ODE (also known as a Cauchyt Euler ODE). A change of variables x e will convert the ODE into a form with constant coefficients, which can be solved exactly using the methods in the earlier sections of this chapter. The sequence of Maple commands > with(detools): > ode1 := x^*diff(y(x),x$) - 6*x*diff(y(x),x) + 1*y(x) - 4; > ic1 := y(1) =, D(y)(1) = 1; > dsolve(ode1); produces the general solution y(x) = x^3 _C + x^4 _C1 + The additional command > dsolve({ode1, ic1}); produces the complete solution y(x) = x^3 + x^4 + The Maple worksheet is available at "www.engr.mun.ca/~ggeorge/344/demos/ex5.mws" One can easily verify that this complete solution is correct:

ENGI 344.5 - Numerical Methods age -36 Example.5. (continued) The exact solution (not examinable except possibly as a bonus question) is obtained as follows: t dx t Let x e e x dt dy dy dt dy dx t dy 1 dy dy dy By the chain rule, e x dx dt dx dt dt dt x dt dx dt d y d dy d dy dx 1 d t dy 1 t d y t dy e e e dx dx dx dt dx dt x dt dt x dt dt 1 d y dy d y d y dy x x dt dt dx dt dt d y dy Any Cauchy-Euler ODE of the type x bx cy r x, dx dx (where b and c are constants) therefore transforms into the ODE d y dy dy d y dy b cy r x b 1 cy r x dt dt dt dt dt In this case, b = 6, c = 1 and r(x) = 4. d y dy The equivalent ODE is 7 1y 4 dt dt 7 1 0 3 4 0 3, 4 A.E.: 3t 4t t t C.F.:.S.: C 3 4 C 3 4 y t Ae Be A e B e y x Ax Bx r x is a constant. Therefore try y x c y x y x 0 0 1c 4 c y x Substituting into the ODE: 3 4 Therefore the general solution is yx Ax Bx Applying the conditions y1, y1 1 4 3 The complete solution is therefore yx x x 0 0 quickly leads to A 1, B 1..

ENGI 344.5 - Numerical Methods age -37 Example.5.3 (same as Example 5.11.) Find the general solution (as a power series about x = 0) to the ordinary differential equation d y xy 0 dx The sequence of Maple commands > with(detools): > ode := diff(y(x),x$) + x*x*y(x); > dsolve(ode); produces the exact general solution 1 x 1 x yx _ C1 x BesselJ, _ C x BesselY, 4 4 where the Bessel functions J x and Y x are beyond the scope of this course. Converting the exact solution into a power series, > Order := 15; > dsolve(ode, y(x), series); produces 1 1 1 1 yx y0 D y0 x y0 x D y0 x y0 x D y0 x 1 0 67 1440 1 1 1 y 0 x D y0 x 13 Ox 15 88704 4640 Letting A y 0 B y 0 this solution can be re-written as and 1 4 1 8 1 1 yx A1 x x x 1 67 88704 1 5 1 9 1 13 Bx x x x 0 1440 4640 4 5 8 9

ENGI 344.5 - Numerical Methods age -38 [Space for Additional Notes] END OF CHATER