MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

Similar documents
Solutions of Sample Problems for Third In-Class Exam Math 246, Spring 2011, Professor David Levermore

Ordinary dierential equations

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Chapter 6. Systems of First Order Linear Differential Equations

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence

Math 334 Fall 2011 Homework 11 Solutions

Math Final Exam Solutions

Challenge Problems. DIS 203 and 210. March 6, (e 2) k. k(k + 2). k=1. f(x) = k(k + 2) = 1 x k

Ordinary differential equations. Phys 750 Lecture 7

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

Announcements: Warm-up Exercise:

Math 315: Linear Algebra Solutions to Assignment 6

Solutions to Assignment 1

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients

Math 106: Review for Final Exam, Part II. (x x 0 ) 2 = !

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page

Differential Equations

MATH 2050 Assignment 9 Winter Do not need to hand in. 1. Find the determinant by reducing to triangular form for the following matrices.

KEY. Math 334 Midterm III Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

Chapter 2. First Order Scalar Equations

t + t sin t t cos t sin t. t cos t sin t dt t 2 = exp 2 log t log(t cos t sin t) = Multiplying by this factor and then integrating, we conclude that

MATH 5720: Gradient Methods Hung Phan, UMass Lowell October 4, 2018

Distance Between Two Ellipses in 3D

Math 23 Spring Differential Equations. Final Exam Due Date: Tuesday, June 6, 5pm

10. State Space Methods

Ordinary Differential Equations

on the interval (x + 1) 0! x < ", where x represents feet from the first fence post. How many square feet of fence had to be painted?

MATH 31B: MIDTERM 2 REVIEW. x 2 e x2 2x dx = 1. ue u du 2. x 2 e x2 e x2] + C 2. dx = x ln(x) 2 2. ln x dx = x ln x x + C. 2, or dx = 2u du.

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:

MA 214 Calculus IV (Spring 2016) Section 2. Homework Assignment 1 Solutions

Math 116 Second Midterm March 21, 2016

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t

Let us start with a two dimensional case. We consider a vector ( x,

EXERCISES FOR SECTION 1.5

Math 115 Final Exam December 14, 2017

Concourse Math Spring 2012 Worked Examples: Matrix Methods for Solving Systems of 1st Order Linear Differential Equations

LAPLACE TRANSFORM AND TRANSFER FUNCTION

SMT 2014 Calculus Test Solutions February 15, 2014 = 3 5 = 15.

Math 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11.

PROBLEMS FOR MATH 162 If a problem is starred, all subproblems are due. If only subproblems are starred, only those are due. SLOPES OF TANGENT LINES

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

KEY. Math 334 Midterm III Winter 2008 section 002 Instructor: Scott Glasgow

Chapter #1 EEE8013 EEE3001. Linear Controller Design and State Space Analysis

2. Nonlinear Conservation Law Equations

An Introduction to Malliavin calculus and its applications

dt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.

Chapter 3 Boundary Value Problem

ODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004

Ordinary Differential Equations

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

New Seven-Step Numerical Method for Direct Solution of Fourth Order Ordinary Differential Equations

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!

System of Linear Differential Equations

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

Multi-scale 2D acoustic full waveform inversion with high frequency impulsive source

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

MA 366 Review - Test # 1

Robotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1.

Math 10B: Mock Mid II. April 13, 2016

Let ( α, β be the eigenvector associated with the eigenvalue λ i

Review - Quiz # 1. 1 g(y) dy = f(x) dx. y x. = u, so that y = xu and dy. dx (Sometimes you may want to use the substitution x y

Lecture 20: Riccati Equations and Least Squares Feedback Control

Solutions from Chapter 9.1 and 9.2

Exam 1 Solutions. 1 Question 1. February 10, Part (A) 1.2 Part (B) To find equilibrium solutions, set P (t) = C = dp

( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is

Some Basic Information about M-S-D Systems

!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)

4.6 One Dimensional Kinematics and Integration

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

After the completion of this section the student. Theory of Linear Systems of ODEs. Autonomous Systems. Review Questions and Exercises

6.2 Transforms of Derivatives and Integrals.

Theory of! Partial Differential Equations!

CHAPTER 2 Signals And Spectra

MA Study Guide #1

Linear Dynamic Models

t 2 B F x,t n dsdt t u x,t dxdt

Numerical Dispersion

Sections 2.2 & 2.3 Limit of a Function and Limit Laws

Continuous Time. Time-Domain System Analysis. Impulse Response. Impulse Response. Impulse Response. Impulse Response. ( t) + b 0.

= ( ) ) or a system of differential equations with continuous parametrization (T = R

On Volterra Integral Equations of the First Kind with a Bulge Function by Using Laplace Transform

Undetermined coefficients for local fractional differential equations

Theory of! Partial Differential Equations-I!

Chapter #1 EEE8013 EEE3001. Linear Controller Design and State Space Analysis

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

y = (y 1)*(y 3) t

Linear Response Theory: The connection between QFT and experiments

Math 1b. Calculus, Series, and Differential Equations. Final Exam Solutions

Math 527 Lecture 6: Hamilton-Jacobi Equation: Explicit Formulas

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes

AP Calculus BC 2004 Free-Response Questions Form B

Then. 1 The eigenvalues of A are inside R = n i=1 R i. 2 Union of any k circles not intersecting the other (n k)

(1) (2) Differentiation of (1) and then substitution of (3) leads to. Therefore, we will simply consider the second-order linear system given by (4)

Notes for Lecture 17-18

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Transcription:

MATH 28A, SUMME 2009, FINAL EXAM SOLUTION BENJAMIN JOHNSON () (8 poins) [Lagrange Inerpolaion] (a) (4 poins) Le f be a funcion defined a some real numbers x 0,..., x n. Give a defining equaion for he Lagrange Inerpolaing Polynomial for f over x 0,..., x n. Soluion: P n (x) = n k=0 f(x k) n i=0,i k ( x x i x k x i ). (b) (4 poins) Le f(x) = 2e x and le x 0 =, x = 4, and x 2 = 7. Wrie an expression for he Lagrange inerpolaing polynomial for f over x 0, x, x 2. Soluion: P 2 (x) = 2e (x 4)(x 7) + ( 4)( 7) 2e4 (x )(x 7) + (4 )(4 7) 2e7 (x )(x 4). You can also simplify (7 )(7 4) 2e o ge: 8 (x2 x + 28) 2e4 9 (x2 8x + 7) + 2e7 8 (x2 x + 4) = x 2 ( e 2e4 + e7 ) + 9 9 9 x( e + 6e4 e7 ) + 28e 4e4 + 4e7, bu his is no required o ge full credi. 9 9 9 9 9 9 (2) (8 poins) [Improper Inegrals] (a) (4 poins) Conver he inegral cos x dx ino a form o which numerical inegraion x echniques can be applied. [Hin: Afer you deal wih he, consider he limi of he expression you ge before doing furher compuaions.] soluion: Use he variable subsiuion: =. Then d = dx, so cos x dx = x x 2 x 0 cos d = cos d. The fracion wih in he denominaor keeps his inegral 0 from being proper, bu since cos is bounded beween 0 and for all 0, we { have lim 0 cos cos = 0. We can hus define f() = if 0 ; we will have 0 if = 0 cos x dx = f()d, and numerical inegraion echniques can be applied o he x 0 laer. (b) (4 poins) Use Simpson s rule o approximae he value of his inegral, afer applying he conversion in par (a). [You may receive parial credi for correcly saing Simpson s rule.] soluion: Simpson s rule says: b b a f(x) dx (f(a) + 4f ( a+b a 6 2 we have 0 f() d 6 (f(0) + 4f( 2 ) + f()) = cos 2 + cos 6. ) + f(b)). In his case, () (8 poins) [Gaussian Quadraure] (a) (4 poins) Explain where he consans c i and r i come from in he Gaussian Quadraure approximaion formula n i= c if(r i ). soluion: The r i are he roos of he n h Legendre polynomial, and c i = n k=,k i where x,..., x n are equally spaced poins in [, ] (b) (4 poins) Use Gaussian Quadraure wih n = 2 o approximae he inegral 4 0 x dx. Hin: see he able. x x k x i x k dx Dae: Augus, 2009.

2 BENJAMIN JOHNSON oos r 2,j Coefficiens c 2,j soluion: To apply Gaussian quadraure, we firs need o change he bounds of inegraion o [, ]. We can do his wih he formula b b a f(x) dx = a 2 f((b a)+b+a ) d 2 or by using he variable subsiuion = x. Eiher way we ge ha 4 2 0 x dx = 2 (2 + 2) d. The esimae is hen 2 2 j= c 2,jf(r 2,j ) = 2(( 2 + 2) + ( 2 + 2) ). Using (a + b) + ( a + b) = a + a 2 b + ab 2 + b + ( a) + ( a) 2 b ( a)b 2 + b = 6a 2 b + 2b, we ge 2(( 2 + 2) + ( 2 + 2) ) = 2(6( 2 )2 2 + 2 2 ) = 2(6 + 6) = 64. (4) (0 poins) [Big Oh s] Fill in he blank wih an answer of he form O(h k ) or O(n k ) for he correc consan k. (a) O(h ) The local runcaion error for he Taylor mehod of order (b) O(h 4 ) The local runcaion error for a unge Kua mehod of order 4 (c) O(h 2 ) The local runcaion error for an Adams Bashforh explici 2 sep mulisep mehod (d) O(h 8 ) The local runcaion error for an Adams Moulon implici 7 sep mulisep mehod (e) O(h ) The local runcaion error for Euler s Mehod (f) O(h 2 ) The local runcaion error for he Midpoin Mehod (g) O(h 2 ) The local runcaion error for he Implici Trapezoid Mehod (h) O(h 2 ) The local runcaion error for Huen s Mehod (i) O(n ) The number of arihmeic operaions required o perform Gaussian Eliminaion on an n n marix. (j) O(n 2 ) The number of arihmeic operaions required o perform backwards subsiuion using an upper-riangular n n marix () (2 poins) [IVP s and Soluion Mehods] (a) (4 poins) Wha is an iniial value problem for firs order differenial equaions? Soluion: I is a problem of he form: Find y() given ha y () = f(, y) for a b, and ha y(a) = α. We are ypically given he parameers f, a, b, and α. (b) (4 poins) Wha is he common goal of Euler s Mehod, he Taylor mehods, and he unge Kua mehods? Explain how his differs from he goal of he adapive mehods like unge-kua-fehlberg and he variable sep size mulisep mehods. Soluion: The firs se of mehods seeks o approximae he soluion funcion y() of an iniial value problem a n + equally spaced nodes 0,... n in he relevan inerval [a, b]. By conras, he goal of he adapive mehods is o approximae y() for a single value of, using as few funcion evaluaions as possible.

MATH 28A, SUMME 2009, FINAL EXAM SOLUTION (c) (4 poins) Give wo examples of unge-kua mehods for solving iniial value problems. [Naming he mehods is no sufficien. You also need o define hem.] soluion: Any wo of he following mehods would suffice: The Midpoin Mehod: w 0 = α, w i+ = w i + hf( i + h 2, w i + h 2 f( i, w i )) The Modified Euler Mehod: w 0 = α, w i+ = w i + h 2 [f( i, w i ) + f( i+, w i + hf( i, w i ))] Huen s Mehod: w 0 = α, w i+ = w i + h 4 [f( i, w i ) + f( i + 2 h, w i + 2 hf( i, w i ))] There are also oher more complicaed examples. (6) (6 poins) [Sabiliy] Consider he following mulisep mehod for approximaing he soluion o an iniial value problem: w 0 = α, w = α, w 2 = α 2, w i+ = 2w i w i + h 4 [w i 2 + w i ]. (a) ( poins) Wha is he characerisic polynomial of his mehod? soluion: P (λ) = λ 2λ 2 + λ (b) ( poins) Is i a sable mehod? Jusify your answer. soluion: No, i is no sable. For a mehod o be sable, all of is roos mus have absolue value a mos one, and all roos wih absolue value mus be simple roos. This polynomial has as a roo wih mulipliciy 2, violaing he second of hese condiions. (7) (6 poins) [Linear Sysems] Use Gaussian Eliminaion wih backwards subsiuion o solve he linear sysem: x + 0x 2 + 9x = 4 0x + 26x 2 + 26x = 0 x + 4x 2 + 66x = 27 soluion: For he Gaussian Eliminaion par: 0 9 4 0 6 8 2 0 9 42 Then for backwards subsiuion: 7x = 7 x = ; 6x 2 + 8x = 2 6x 2 + 8 = 2 x 2 = ; and x + 0x 2 + 9x = 4 x 0 + 9 = 4 x =. 0 9 4 0 26 26 0 4 66 27 0 9 4 0 6 8 2. 0 0 7 7 2 2 2 (8) ( poins) [Inverses and Deerminans] Le A = 2 2. 2 (a) (4 poins) Compue he inverse of A, if i exiss. Oherwise, explain why i does no exis. soluion: We use Gaussian Eliminaion wih backwards subsiuion: 2 0 0 2 0 0 2 0 0 0 7 2 0 2 0 0 0 7 2 0 2 0 0 0 7 0 0 0 7 7 7 For backwards subsiuion, we ge

4 BENJAMIN JOHNSON b = /7 =, b /7 2 = /7 =, and b /7 = = 7. Then /7 b 2 = 2 ( )b 2+ = = 7/ =, b 7 7 7 22 = ( )b 2 2 + = = 49/ = 7, and 7 7 7 b 2 = 0 ( )b 0 = =. Finally, 7 7 b = 2b 2 b = + 2 = 7, b 2 = 0 2b 22 b 2 = 0 + 4 =, and b = 0 2b 2 b = 0 0 + 2 =. So A = mehods. 7 7 7. You can also ge he same correc answer by oher (b) (4 poins) Compue he deerminan of A. [ soluion: I will expand across he firs row of A. The de(a) = de 2 [ ] [ ] 2 2 2 de + de = 7 2 + = 2 (c) ( poins) Is A posiive definie? Explain how you deermined your answer. ] soluion: No, [ A is no ] posiive definie. One way o see his is ha he leading principle 2 sub-marix has a negaive deerminan. 2 (9) (2 poins) [LU Facorizaion] (a) (4 poins) Wha does i mean for a marix A o have an LU facorizaion? soluion: I means ha A can be wrien as LU where L is a lower riangular marix wih s along he diagonal and U is an upper riangular marix. (b) (4 poins) Explain how an LU facorizaion can help o more efficienly solve a linear sysem of he form Ax = b. soluion: If we have A = LU, hen we can solve Ax = b by firs solving Ly = b (for y) and hen solving Ux = y (for x). This is more efficien for large n n marices because solving he riangular marix equaions using forward or backward subsiuion requires only O(n 2 ) operaions, compared o O(n ) for Gaussian Eliminaion or mos oher direc mehods. (c) (4 poins) Compue he LU facorizaion for he marix A = 0 9 0 26 26 4 66 soluion: In problem 7, we carried ou Gaussian Eliminaion for his marix. The marix U is he las marix of ha procedure, and we ge L from he row operaions. U = 0 9 0 6 8 ; and L = 0 0 2 0 0 0 7 4 (0) (0 poins) [Vecor Norms] (a) (4 poins) Lis all he condiions for a funcion o be considered a vecor norm for n. soluion: : n saisfying (i) x 0 for every x n (ii) x = 0 iff x = 0 (he zero vecor)

MATH 28A, SUMME 2009, FINAL EXAM SOLUTION (iii) αx = α x for every α and x n (iv) x + y x + y for every x, y n (b) ( poins) Give a leas hree examples of vecor norms for n. For each example, you mus define he norm funcion. soluion: For example, (i) x = n j= x j n (ii) x 2 = j= x2 j (iii) x = max n j= x j (c) ( poins) For each of your hree examples in par (b),compue soluion: (i) x = 2 + + 4 + = 4 (ii) x 2 = 2 2 + 2 + 4 2 + 2 = 4 + 9 + 6 + 2 = 4 = 6 (iii) x = max{2,, 4, } = () (9 poins) [Marix Norms] (a) ( poins) Lis all he condiions for a funcion o be considered a marix norm for. [The symbol M n n refers o he se of all n n marices wih real enries.] M n n soluion: : M n n saisfying (i) A 0 for every A M n n (ii) A = 0 iff A = 0 (he zero marix) (iii) αa = α A for every α and A M n n 2 4. (iv) A + B A + B for every A, B M n n (v) AB A B for every A, B M n n (b) ( poins) Explain how o ge a naural marix norm from a vecor norm. soluion: Given a vecor norm, he associaed naural marix norm is defined o be A = max x: x = Ax. An alernaive and equivalen definiion is ha (c) ( poins) Compue A = max x 0 2 4 6 2 4 7 4 2 Ax x. soluion: Since [a ij ] = max n i= n j= a ij, he answer is 4 + + + 7 = 7. BONUS ( poins) In wha governmenal deparmen did Erwin Fehlberg work? and during wha decade? Answer in a complee senence wih proper grammar, spelling, and puncuaion. Soluion: Fehlberg worked for NASA in he 960 s.