Docsity

Computational Methods in Engineering - Sample Final Exam Solutions, Exams of Introduction to Sociology

Toggle sidebar
bg1
1
MAE 107 Computational Methods in Engineering
Spring 2008
Sample Final Exam
Guidelines: The exam will be closed book and closed notes, except that one page (both
sides of a standard letter-size page) of handwritten notes is allowed. No calculators or
computers will be allowed. Please write out your solutions neatly, including all
necessary intermediate steps, and indicate clearly all final answers.
1. (20 points) Consider a method for finding the root of the equation
0)(
=
xf .
(a) Derive a method for solving this equation that is similar to Newton’s method
but that uses the first three terms of a Taylor series expansion instead of the first
two terms.
(b) Prove that this method has a cubic rate of convergence.
2. (20 points) Consider the coefficient matrix
21 0
121
01 2
−
=−
−
A
a. Use Gaussian elimination to construct the LU decomposition of A.
b. Use this LU decomposition to construct the inverse of A.
c. Compute the condition number of A using the row (infinity) norm. Is A an
ill-conditioned matrix ?
3. (20 points) Let S(x) represent the collection of cubic splines that passes through
the function values f(x) at the N+1 knots x = x0, x1, …, xN.
a. How many unknown parameters must be determined to uniquely specify
S(x) ?
b. What are the conditions that are imposed on S(x) at all the interior knots in
order to determine these unknown parameters? How many additional
conditions must be imposed at the end knots to uniquely specify S(x)?
Give an example of one choice for these end conditions?
pf2

Partial preview of the text

Download Computational Methods in Engineering - Sample Final Exam Solutions and more Exams Introduction to Sociology in PDF only on Docsity!

MAE 107 Computational Methods in Engineering

Spring 2008

Sample Final Exam

Guidelines: The exam will be closed book and closed notes, except that one page (both sides of a standard letter-size page) of handwritten notes is allowed. No calculators or computers will be allowed. Please write out your solutions neatly, including all necessary intermediate steps, and indicate clearly all final answers.

  1. ( 20 points ) Consider a method for finding the root of the equation

f ( x )= 0.

(a) Derive a method for solving this equation that is similar to Newton’s method but that uses the first three terms of a Taylor series expansion instead of the first two terms. (b) Prove that this method has a cubic rate of convergence.

  1. ( 20 points ) Consider the coefficient matrix

^ − 

= ^ − 

A

a. Use Gaussian elimination to construct the LU decomposition of A. b. Use this LU decomposition to construct the inverse of A. c. Compute the condition number of A using the row (infinity) norm. Is A an ill-conditioned matrix?

  1. ( 20 points ) Let S ( x ) represent the collection of cubic splines that passes through the function values f ( x ) at the N +1 knots x = x 0 , x 1 , …, x (^) N.

a. How many unknown parameters must be determined to uniquely specify S ( x )? b. What are the conditions that are imposed on S ( x ) at all the interior knots in order to determine these unknown parameters? How many additional conditions must be imposed at the end knots to uniquely specify S ( x )? Give an example of one choice for these end conditions?

c. Consider the case with N = 2, such that x 0 = 1, x 1 = 2 and x 2 = 3 and f ( x 0 ) = 0, f ( x 1 ) = 3 and f ( x 2 ) = 1. Is the following function a cubic spline fit to f ( x )? Give the reasons for your answer.

2 3 2 3

13 31 23 5 for 1 2 ( ) 35 51 22 3 for 2 3

x x x x S x x x x x

−^ +^ −^ +^ ≤^ ≤

  1. ( 15 points ) Consider a function f ( x ) known at the three unevenly spaced points

x 0 < x 1 < x 2 , for which x 1 – x 0 = h and x 2 – x 1 = α h, with α > 0.

a. Using a Taylor series, derive a formula that approximates f ′(^ x 1 )with

accuracy O ( h ) for α ≠ 1 and O ( h^2 ) for α = 1.

  1. ( 20 points ) The midpoint rule for numerical integration of the function f ( x ) over the interval [ x 0 , x 1 ] is

1 0 0 2

x (^) h x

∫ f^ x dx^ ≈^ h f^ x +

where h = x 1 (^) − x 0.

(a) Use a Taylor series expansion to derive this rule and to obtain an expression for the error in terms of h and the second derivative of f ( x ). (b) Derive the composite midpoint rule for the integral of f ( x ) over the interval [ a , b ] by dividing the interval into N segments each of length h = ( b – a )/ N and applying the midpoint rule on each segment. (c) Derive the error term associated with the composite midpoint rule.

  1. ( 15 points ) Given the third-order ordinary differential equation and associated initial conditions

2 3 0 , and ( 0 ) 1 , 0 , 2 0

2

2

0

2 2

2 3

3  + = = = =^ − 

x = dx x =

d y dx

dy y y dx

dy dx

d y dx

d y ,

a. Write this differential equation as a system of first-order ordinary differential equations b. Use one step of the explicit Euler method to estimate y at x = h.