ENGI 9420 Engineering Analysis Assignment 3 Solutions

Similar documents
ENGI 9420 Lecture Notes 3 - Numerical Methods Page 3.01

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n

x x x Using a second Taylor polynomial with remainder, find the best constant C so that for x 0,

THE SOLUTION OF NONLINEAR EQUATIONS f( x ) = 0.

MATHEMATICS 9740 (HIGHER 2)

ENGI 4430 Advanced Calculus for Engineering Faculty of Engineering and Applied Science Problem Set 4 Solutions [Numerical Methods]

CALCULUS BASIC SUMMER REVIEW

ENGI Series Page 6-01

TEMASEK JUNIOR COLLEGE, SINGAPORE JC One Promotion Examination 2014 Higher 2

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

PAPER : IIT-JAM 2010

Mathematics Extension 1

Matrix Algebra 2.2 THE INVERSE OF A MATRIX Pearson Education, Inc.

Chapter 2 The Solution of Numerical Algebraic and Transcendental Equations

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

Chapter 4. Fourier Series

U8L1: Sec Equations of Lines in R 2

( ) ( ) ( ) ( ) ( + ) ( )

AH Checklist (Unit 3) AH Checklist (Unit 3) Matrices

SOLUTION SET VI FOR FALL [(n + 2)(n + 1)a n+2 a n 1 ]x n = 0,

Calculus 2 Test File Spring Test #1

Algebra II Notes Unit Seven: Powers, Roots, and Radicals

Section A assesses the Units Numerical Analysis 1 and 2 Section B assesses the Unit Mathematics for Applied Mathematics

x x x 2x x N ( ) p NUMERICAL METHODS UNIT-I-SOLUTION OF EQUATIONS AND EIGENVALUE PROBLEMS By Newton-Raphson formula

CS537. Numerical Analysis and Computing

(c) Write, but do not evaluate, an integral expression for the volume of the solid generated when R is

A) is empty. B) is a finite set. C) can be a countably infinite set. D) can be an uncountable set.

CS321. Numerical Analysis and Computing

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

CHAPTER 10 INFINITE SEQUENCES AND SERIES

VICTORIA JUNIOR COLLEGE Preliminary Examination. Paper 1 September 2015

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

A widely used display of protein shapes is based on the coordinates of the alpha carbons - - C α

7.) Consider the region bounded by y = x 2, y = x - 1, x = -1 and x = 1. Find the volume of the solid produced by revolving the region around x = 3.

Mathematics: Paper 1

Complex Analysis Spring 2001 Homework I Solution

Subject: Differential Equations & Mathematical Modeling-III

6.003 Homework #3 Solutions

Mon Feb matrix inverses. Announcements: Warm-up Exercise:

Notes on iteration and Newton s method. Iteration

a for a 1 1 matrix. a b a b 2 2 matrix: We define det ad bc 3 3 matrix: We define a a a a a a a a a a a a a a a a a a

Calculus 2 Test File Fall 2013

Calculus 2 - D. Yuen Final Exam Review (Version 11/22/2017. Please report any possible typos.)

L 5 & 6: RelHydro/Basel. f(x)= ( ) f( ) ( ) ( ) ( ) n! 1! 2! 3! If the TE of f(x)= sin(x) around x 0 is: sin(x) = x - 3! 5!

A.1 Algebra Review: Polynomials/Rationals. Definitions:

NBHM QUESTION 2007 Section 1 : Algebra Q1. Let G be a group of order n. Which of the following conditions imply that G is abelian?

Castiel, Supernatural, Season 6, Episode 18

Theorem: Let A n n. In this case that A does reduce to I, we search for A 1 as the solution matrix X to the matrix equation A X = I i.e.

3 Show in each case that there is a root of the given equation in the given interval. a x 3 = 12 4

Fundamental Concepts: Surfaces and Curves

Chapter 2: Numerical Methods

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

Math 312 Lecture Notes One Dimensional Maps

Northwest High School s Algebra 2/Honors Algebra 2 Summer Review Packet

Mathematics Extension 2

(a) (b) All real numbers. (c) All real numbers. (d) None. to show the. (a) 3. (b) [ 7, 1) (c) ( 7, 1) (d) At x = 7. (a) (b)

Mathematics 3 Outcome 1. Vectors (9/10 pers) Lesson, Outline, Approach etc. This is page number 13. produced for TeeJay Publishers by Tom Strang

U8L1: Sec Equations of Lines in R 2

Solutions to Final Exam Review Problems

Mathematics Extension 2

e to approximate (using 4

Section 1 of Unit 03 (Pure Mathematics 3) Algebra

1 1 2 = show that: over variables x and y. [2 marks] Write down necessary conditions involving first and second-order partial derivatives for ( x0, y

ENGI Series Page 5-01


Math 155 (Lecture 3)

Similarity Solutions to Unsteady Pseudoplastic. Flow Near a Moving Wall

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =

Taylor expansion: Show that the TE of f(x)= sin(x) around. sin(x) = x - + 3! 5! L 7 & 8: MHD/ZAH

FUNCTIONS (11 UNIVERSITY)

Summary: CORRELATION & LINEAR REGRESSION. GC. Students are advised to refer to lecture notes for the GC operations to obtain scatter diagram.

MT5821 Advanced Combinatorics

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim

Root Finding COS 323

The Riemann Zeta Function

Honors Calculus Homework 13 Solutions, due 12/8/5

Series: Infinite Sums

Subject: Differential Equations & Mathematical Modeling -III. Lesson: Power series solutions of Differential Equations. about ordinary points

AP Calculus BC Review Applications of Derivatives (Chapter 4) and f,

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

Chimica Inorganica 3

*X203/701* X203/701. APPLIED MATHEMATICS ADVANCED HIGHER Numerical Analysis. Read carefully

( ) ( ) ( ) notation: [ ]

Fourier Series and the Wave Equation

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

After the completion of this section the student should recall

Physics 116A Solutions to Homework Set #1 Winter Boas, problem Use equation 1.8 to find a fraction describing

MATH 31B: MIDTERM 2 REVIEW

Ma 530 Infinite Series I

National Quali cations SPECIMEN ONLY

NATIONAL JUNIOR COLLEGE SENIOR HIGH 1 PROMOTIONAL EXAMINATIONS Higher 2

MATH CALCULUS II Objectives and Notes for Test 4

We will conclude the chapter with the study a few methods and techniques which are useful

Analytic Continuation

LINEAR ALGEBRA. Paul Dawkins

TEACHER CERTIFICATION STUDY GUIDE

MID-YEAR EXAMINATION 2018 H2 MATHEMATICS 9758/01. Paper 1 JUNE 2018

Transcription:

ENGI 9 Egieerig Aalysis Assigmet Solutios Fall [Series solutio of ODEs, matri algebra; umerical methods; Chapters, ad ]. Fid a power series solutio about =, as far as the term i 7, to the ordiary differetial equatio d y π + y = sec, < d [This ODE is also i Assigmet Questio.] You may quote the Maclauri series epasio for sec : sec 6 8 5 6 77 = + + + + + ( < π ) 7 86 This ODE is aalytic for all i ( π + π ),. Therefore = is ot a sigular poit. Attempt a simple power series solutio: = = ( ) y= a y = a = = y = + + a = a + + + Substitute the series for y, y" ad sec ito the ODE: 6 8 5 6 77 ( a+ ( + )( + ) + a ) = + + + + + 7 86 = Matchig coefficiets: : a + a = a = a a a a a : + = = 6 : + = = = ( ) = + a a a a a a : 5 5 + = 5 = = 6 = a a a a a a

ENGI 9 Assigmet Solutios Page of 8. (cotiued) 5 5 5 7 5 : 7 6a 7 + a5 = a7 = a5 = a = 5 a 6 : 8 7a 6 8 + a6 = 7 : 6 5a + a = a = a = a = 5 a 6 6 ( 5 ) ( 56 ) 6 6 8 56 7 6 56 7 7 a = a = a = + a The leadig coefficiets a ad a are arbitrary costats, which are also the iitial values y ad The geeral solutio is y respectively. Rewrite them as A ad B respectively. 6 = ( + 7 + ) 5 7 + B( 6 + 5 + ) 6 8 + ( + + + ) y A 7 Upo recogizig the presece of factorial fuctios, we ca write the geeral solutio as y = 6 A + +!! 6! + 5 7 B + +!! 5! 7! 6 8 5 56 + + + +! 6! 8! Oe ca recover the complemetary fuctio quicly, upo recogizig the Maclauri series for the sie ad cosie fuctios: 6 8 5 56 y = Acos + Bsi + + + +! 6! 8! The particular solutio turs out to be the Maclauri series epasio for si + ( cos ) l cos A brief Maple worsheet provides this Maclauri series epasio.

ENGI 9 Assigmet Solutios Page of 8. Use the method of Frobeius to fid the geeral solutio of the ordiary differetial equatio d y dy + ( + ) + ( ) y = d d as a series about =, as far as the fourth o-zero term. d y dy + ( + ) + ( ) y = P d d F Q R Q R F = ( + ), = ad = are all aalytic. P P P Therefore = is a regular sigular poit of this ODE. + r + r = = y a ( r)( r + r ) = y= a y = a + r = + + Substitute the series ito the ODE: + r + + r + a( + r)( + r ) + a + r = = + r + + r+ + r a( r) a a = = = + + + = Adjust the ide of summatio, such that the epoet of is +r i all cases. The ODE becomes + r a ( + r)( + r ) + ( + r) = + a ( ( + r ) + r + ) = = + r + r ( r )( r ) a ( ( r) ) a = = r ( r )( r+ ) a + + r ( + r )( + r+ ) a + ( ( + r) ) a = + + + + + = This equatio must be true for all values of. Therefore the coefficiet of every power of must be zero. But a caot be idetically zero. r r+ = r = or

ENGI 9 Assigmet Solutios Page of 8. (cotiued) Case r = : This value of r is a positive iteger, so that the series becomes a ordiary power series. ( + )( + + ) a + ( ( + ) ) a = > ( + ) a = a ( + ) Employig this recurrece relatio to fid a to a, ( + ) 6 a = a = a + 5 ( + ) ( + ) ( + ) + 5 6 6 a = a = a = + a 7 5 7 6+ 6 a = a = a = a 6 7 7 9 8+ 9 a = a = a = + a 8 9 + 6 6 5 y = a = a + + 5 7 9 = Case r = /: ( )( + ) a + ( ( ) ) a = > a ( ) = a ( ) > ( ) a = a ( ) = a = > This series is therefore fiite, with oly oe term: y = a / The fuctio y ( ) is clearly idepedet of the fuctio Therefore the geeral solutio is y. A 5 = + ( 6 + 6 + ) y B 5 7 9 (where A ad B are arbitrary costats).

ENGI 9 Assigmet Solutios Page 5 of 8. Fid the etire series solutio (usig the method of Frobeius, adapted to a first order ODE) about = of the ordiary differetial equatio dy y + = d P=, Q=, F = Q F = ad = are both aalytic P P Therefore = is a regular sigular poit of this ODE. + r + r = = y= a y = a + r Substitute the series ito the ODE: r y + + y = a + r+ = = r a r The leadig term ( = ) is ( + ) 5 If r = the a + = a = The ODE the becomes 5 ( 5 + a + ) = a = > 5 = + this is a particular solutio. y = a = 5 = If r = the a ( r+ ) = r = ( a caot be zero) = 5 a = a = ecept for =, where a is arbitrary, (relabel it as A ) ad for = 5, where 5a 5 = a5 = 5 y = a = A + + + + + + + = 5 which icludes the case r =. Therefore the geeral solutio is 5 A = + y [Note that this ODE is liear. It is easy to verify that the solutio above is correct.]

ENGI 9 Assigmet Solutios Page 6 of 8. I Chapter of the lecture otes, dimesioal aalysis is used to derive the fuctioal form of the Plac legth L i terms of the uiversal costats G, h ad c. P I the study of the steady flow of icompressible fluid through a pipe, it is ow that the volume of liquid issuig per secod from a pipe, Q, depeds o the coefficiet of viscosity η (measured i the uits g m - s - ), the radius a of the pipe (measured i metres) ad the pressure gradiet p/l set up alog the pipe (measured i the uits N m - m - or, equivaletly, g m - s - ). Use a similar dimesioal aalysis to derive the fuctioal form for Q i terms of η, a ad p/l. z y p Q = η a, where is a costat of proportioality that caot be determied l by dimesioal aalysis aloe. Q is a volume per uit time (m s - ). Coductig the dimesioal aalysis, y z y z z z LT ML T [ L] ML T + M L + = = T y z M R + R L R+ R T R ( ) R R R + R =, y =, z = Therefore Q a p = η l which is Poiseuille s formula. By methods beyod the scope of this course, it ca be show that = π. 8 Plai tet output from the liear system reductio program is available at this li.

ENGI 9 Assigmet Solutios Page 7 of 8 5. Fid the itersectio of the three plaes + y + z = + 5y + z + = + y + z = Where the three plaes all meet, all three equatios must be true simultaeously. Form ad reduce the augmeted matri that is equivalet to this triple of simultaeous liear equatios. A b R R = 5 R R + Upo reachig this triagular form, oe ca see that ra A = ra [A b] = so that there is a uique solutio. R R 9 R R R + R Geometrically, the three plaes itersect each other i a sigle poit. From this reduced echelo form, we ca read the uique solutio (, y, z ) = ( 9,, ) 6. By reducig the appropriate liear system to echelo form, show that the itersectio of the three plaes + y + z + = + y + z + = + y + z + = y ( ) z is the lie = =. The liear system for (, y, z) correspodig to the simultaeous equatios of the three plaes is

ENGI 9 Assigmet Solutios Page 8 of 8 6 (cotiued) y z Plae Plae Plae R R R R At this poit, oe ca see that (row ) = (row ), so that row will cacel dow to a row of all zeroes ad ra A = ra [A b] = <. There are therefore ifiitely may solutios. More precisely, oe ca detect a oe-parameter family of solutios. Completig the row reductio, R R R+ R This is the reduced row echelo form for [A b]. There are leadig oe s for ad y oly. z is therefore a free parameter (call it t ). Readig the solutios from this echelo form, z = t; y + t = y = t ; t = = t+ (, y, z) = ( t+, t, t) = (,, ) + (,, ) t This oe vector equatio is also a set of three simultaeous scalar equatios for, y, z i terms of t. Mae t the subject of all three equatios, the t ( ) y z = = = which is the equatio of a lie. Geometrically, a oe parameter family of solutios should geerate a oe-dimesioal object (the lie).

ENGI 9 Assigmet Solutios Page 9 of 8 7. Fid the value of the determiat ad, if it eists, the iverse matri, for the matri A = Form the augmeted matri [ ] A I = Trasform the matri to reduced echelo form: R R R + R R R The left matri is ow i triagular form. The oly row operatio so far that has chaged the value of the determiat is the row iterchage. The value of the determiat of the origial matri A is therefore ( ½) =. No-zero determiat A - eists. Resumig the row reductio: R

ENGI 9 Assigmet Solutios Page of 8 7. (cotiued) R R R+ R R R R R + R = I A R R The oly row operatios that chaged the value of the determiat were oe row iterchage ad two cacellig row multiplicatios (the first by a factor of ½ ad the secod by a factor of ). All other row operatios were of the type (from oe row subtract or add a multiple of aother row), which do ot affect the value of the determiat. Therefore the determiat of the origial matri A is the determiat of the echelo form I. But det I =. Therefore det A =. Also, the fact that the reduced echelo form of A is the idetity matri allows us to coclude that A is ivertible ad that the iverse is the right-had matri i the reduced echelo form of the augmeted matri. Therefore det A ad A = = [Oe may chec the aswer, usig A A = A A = I.]

ENGI 9 Assigmet Solutios Page of 8 7. (cotiued) Additioal Note: It is possible to use a cofactor epasio to evaluate the determiat ad iverse of the matri A = However, this is a much slower method tha row reductio (Gaussia elimiatio) to echelo form. The details of this alterative method are o a separate web page. 8. I Assigmet, Questio 5, fid, correct to the earest millimetre, the iitial head H of water eeded i the coical ta i order for the ta to drai completely i eactly oe miute, usig (a) the method of bisectio (or a graphical zoom-i, i which case provide setches or screeshots) ad eplai your choice of iitial values. The time T required to drai the coical ta of head H completely was foud i assigmet to be ( ) H T = H + H + g A ta of head cm was foud to drai i approimately 6 s. The fuctioal form for T (H) ivolves a higher power tha the square. It is therefore certai that a ta of head 6 cm will require more tha 6 secods to drai. I the bisectio method, tae as startig values H = ad H = 6. [et page]

ENGI 9 Assigmet Solutios Page of 8 8 (a) (cotiued) H T. 5.68 6..95 5. 66. 7.5.77.5 5.9868.5 59.97.6 5 6.95.59 75 6.59.59 75 6.78. 88 6.6.8 59 6.666.5 97 6.7.9 68 6.7. 59.9975 At this poit oe ca deduce that, correct to the earest millimetre, a draiage time of eactly oe miute will occur whe H =. cm A alterative to tabular bisectio is a sequece of graphical zooms, as illustrated here.

ENGI 9 Assigmet Solutios Page of 8 8 (a) (cotiued) This process of graphical zooms ca be cotiued, i order to fid the solutio to greater precisio: from which H =. cm, correct to four decimal places. T (.) = 6. s (b) Newto s method ad eplai your choice of iitial value. As i part (a), we ca deduce that the required value of H is somewhere i (, 6). The o-liear fuctio suggests that the value is closer to tha it is to 6. Therefore select H = as a iitial guess. + = f f ( ) ( ), where f = (.5 +.5 +.5 ) g.5.5.5 ( 5 5 ) f = + + g f ( ) f ' ( ) f / f '. 9.79595.967.9679.9679 +.58576.58 +.7587.587 +.6757.99666 +.586.7 Therefore, correct to oe decimal place, H =. cm [A Ecel spreadsheet file for this solutio is available here. Oe may eperimet with differet startig values.]

ENGI 9 Assigmet Solutios Page of 8 9. Why should Newto s Method ot be used to fid a root of e = ta, (ecept whe the iitial guess is very ear the true value)? Demostrate the problem by usig Newto s Method to try to fid the first positive root, with iitial guesses of.99 ad.. The fuctio ta has a ifiite umber of ifiite discotiuities. It is quite possible for the taget lie from a value of to cross oe or more such discotiuities before reachig its ais itercept. Newto s Method ca thus become very ustable, jumpig from ear oe root to ear some other root. Graph of y = e ta Also ote the proimity to the first positive root of two turig poits (where f ' () = ). Usig Newto s Method ayway, with the startig values.99 ad.: f ( ) + =, where f = e ta f = e sec f ( )

ENGI 9 Assigmet Solutios Page 5 of 8 9 (cotiued) f( ) f '( ) f / f '.99.67558 -.656 -.859.89 7.6 6.5855.875.7579.5566 -.988 -.66.7855.598 6.595.685.5867.55.565.788 5 -.596 -.55578 -.9775.697 6 -.6 -.8669 -.9695.896 7 -.9577 -.665 -.956865.695 8 -.96. -.9568. 9 -.96. -.9568. Note that the method has coverged o the wrog root! f( ) f '( ) f / f '..687 -.777 -.6.6.57966.75.899.965-8.97757-77.756.565.5868 -.777-6.67.6789.879 -.6-5.7966.58 5.5 -.987 -.97.698 6.95 -.595 -.668.98 7.67 -.76 -.97. 8.67. -.96. 9.67. -.96. ad =.6... is the first positive root. Note how two startig values so close together have coverged to very differet roots. This is a illustratio of how ustable Newto s Method is i this case. [A Ecel spreadsheet file for this solutio is available here. Oe may eperimet with differet startig values.]

ENGI 9 Assigmet Solutios Page 6 of 8. Use the stadard fourth order Ruge-Kutta method, with a step size of h =., to fid the value at =.6 of the solutio of the iitial value problem dy ( y y), y. d = = Show your calculatios for the costats,,, ad for y i the first iteratio. You may submit output from a spreadsheet program (such as Ecel) for the other steps. y For this ODE, the RK algorithm becomes = f, y = y y = y y ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) (, ) ( ) ( )(( ) ) = f + h, y + h = + h y + h y + h = f + h, y + h = + h y + h y + h = f + h y + h = + h y + h y + h h y+ = y + ( + + + ) 6 with startig values = ad y =.. I the first iteratio, =... = =. +.. +.. +. =.6 =. +.. +..6. +..6 =.6 =. +.. +..6. +..6 =.8. y(.) = y = + ( +.6 +.6.8) =.9996 6 Secod iteratio: = (.) (.9996) ((.9996) ) =.8 ( ) ( ) = (. +.) (.9996 +.. )( ) (.) = y =.9996 +. 6 =. +..9996 +..8.9996 +..8 =.7 =. +..9996 +..7.9996 +..7 =..9996 +.. =..8 +.7 +.. =.98978

ENGI 9 Assigmet Solutios Page 7 of 8 (cotiued) y Fial iteratio: = (.) (.98978) ((.98978) ) =. ( ) ( ) = (. +.) (.98978 +..9 7 )( ) (.6) = y =.98978 +. 6 =. +..98978 +...98978 +.. =.986 =. +..98978 +..986.98978 +..986 =.9 77 7.98978 +..9 77 =.9. +.986 +.9 77.9 =.9866 Therefore, correct to four decimal places, y(.6) =.99 A directio field plot from Maple cofirms the behaviour of the solutio to this iitial value problem: [A Ecel spreadsheet file for this solutio is available here.] [A Maple worsheet, from which the plot above was derived, is available here.]

ENGI 9 Assigmet Solutios Page 8 of 8 (cotiued) Note that the ODE is Beroulli: dy + y = y d P R ( ) h / h = P d = d = e = e y h / / e R d = e d = e h h + / / w = = e e R d + C = e e + C y The geeral solutio is y = / + Ae + The iitial coditio y () =. leads to A =. The eact value of y (.6) is.9 866 8... The RK value is correct to seve decimal places! Retur to the ide of assigmets