Docsity

Mth 351 Sample Problems: Solving Polynomials and Functions using Various Methods, Papers of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Mth 351 Sample Problems Name: ID:
Bent Petersen 351u2002_samples_1.tex July 22, 2002 Time: xx minutes.
Instructions: =⇒
If you do not read the in-
structions, then how will
you know what to do? Read
them now.
Be sure to write your name
in the space above.
•You may use one note-sheet prepared in advance. You must put your name on your note-sheet, but
do not turn in your note-sheet. Your note-sheet must be letter size, 8.5×11 inches, or A4 paper,
21 ×29.7cm, or smaller. You may write on both sides of your note-sheet.
•Note-sheets may not be shared. If you do not bring a note-sheet you will have to do without any
help notes.
•You may not use any books, notebooks nor additional note-sheets.
•You may use a calculator. Calculators and other equipment may not be shared.
•For work-out problems sketch your work neatly. Highlight your answer by drawing a frame around
it. Scratch out irrelevant or incorrect work so it will be clear what you are submitting as a solution.
Give exact answers when possible. Simplify your answer when reasonable to do so. Partial credit
will be assigned only for relevant, clear, correct, legible work. If you do not show some relevant
work or explain your solution, your grade may be 0.
•For multiple-choice problems indicate your choice in the answer box provided. You need not show
any work nor offer any explanations for your answer. If you need to do some work, you may do
it in the space provided, if any, or on the back of the examination sheets, but your work will not
be graded. You will be graded only on the letter you select and put in the provided answer box.
Note this test does not use a scantron.
•Use the backs of the examination sheets for scratch work.
Please note log(x)means the natural logarithm of xon this test.
Problem 1. (25 points if correct, 0 points if wrong). Use the bisection method to estimate the root of the polynomial
p(x) = 3 x4−14 x3+ 24 x2−4x−3in the interval [0,1] with an error of at most 1
8.
A.) 1
2B.) 5
8
C.) 3
4D.) 7
8E.) None of the above.
←Letter corresponding to your answer to problem 1.
Problem 2. Let f(x) = exp(x)−x2. Prove that fhas precisely one real root. Explain why the root must be in the interval
(−1,0).
Problem 3. Let p(x)=2x3−3x2+ 6x+ 5. The polynomial p(x)has a root in the interval [−1,0].(A) Suppose we bisect
the interval. Which half of the interval can we guarantee contains a root. Why? (B) Bisect the subinterval known to contain a root.
Which sub-sub-interval can we now guarantee contains the root? (C) If we use the midpoint of this last interval as an estimate of
the root find an bound for the error that we make.
Problem 4. Show analytically that the polynomial
p(x) = x3−6x2+ 9x−5
has a root in the interval [4,5]. Suppose we bisect the interval. (A) Which half of the interval can we guarantee contains a root?
(B) If we use the midpoint of the subinterval containing the root to estimate the root give an upper bound for the error.
Problem 5. Find two interval of length 1with integer endpoints, each interval guaranteed to contain a root of f(x) =
exp(x)−6x. Be sure to justify your answer (without finding the roots). Use an initial guess x0= 0 and apply Newton’s iteration
once to obtain a new estimate x1for one of the roots.
pf3
pf4
pf5

Partial preview of the text

Download Mth 351 Sample Problems: Solving Polynomials and Functions using Various Methods and more Papers Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Mth 351 Sample Problems Name: ID:

Bent Petersen 351u2002_samples_1.tex July 22, 2002 Time: xx minutes.

Instructions: =⇒ If you do not read the in- structions, then how will you know what to do? Read them now.

Be sure to write your name in the space above.

  • You may use one note-sheet prepared in advance. You must put your name on your note-sheet, but do not turn in your note-sheet. Your note-sheet must be letter size, 8. 5 × 11 inches, or A4 paper, 21 × 29. 7 cm, or smaller. You may write on both sides of your note-sheet.
  • Note-sheets may not be shared. If you do not bring a note-sheet you will have to do without any help notes.
  • You may not use any books, notebooks nor additional note-sheets.
  • You may use a calculator. Calculators and other equipment may not be shared.
  • For work-out problems sketch your work neatly. Highlight your answer by drawing a frame around it. Scratch out irrelevant or incorrect work so it will be clear what you are submitting as a solution. Give exact answers when possible. Simplify your answer when reasonable to do so. Partial credit will be assigned only for relevant, clear, correct, legible work. If you do not show some relevant work or explain your solution, your grade may be 0.
  • For multiple-choice problems indicate your choice in the answer box provided. You need not show any work nor offer any explanations for your answer. If you need to do some work, you may do it in the space provided, if any, or on the back of the examination sheets, but your work will not be graded. You will be graded only on the letter you select and put in the provided answer box. Note this test does not use a scantron.
  • Use the backs of the examination sheets for scratch work.

Please note log(x) means the natural logarithm of x on this test.

Problem 1. (25 points if correct, 0 points if wrong). Use the bisection method to estimate the root of the polynomial

p(x) = 3 x^4 − 14 x^3 + 24 x^2 − 4 x − 3 in the interval [0, 1] with an error of at most 18.

A.)^12 B.)^58

C.)^34 D.)^78 E.) None of the above.

← Letter corresponding to your answer to problem 1.

Problem 2. Let f (x) = exp(x) − x^2. Prove that f has precisely one real root. Explain why the root must be in the interval

Problem 3. Let p(x) = 2x^3 − 3 x^2 + 6x + 5. The polynomial p(x) has a root in the interval [− 1 , 0]. (A) Suppose we bisect

the interval. Which half of the interval can we guarantee contains a root. Why? (B) Bisect the subinterval known to contain a root. Which sub-sub-interval can we now guarantee contains the root? (C) If we use the midpoint of this last interval as an estimate of the root find an bound for the error that we make.

Problem 4. Show analytically that the polynomial

p(x) = x^3 − 6 x^2 + 9x − 5

has a root in the interval [4, 5]. Suppose we bisect the interval. (A) Which half of the interval can we guarantee contains a root? (B) If we use the midpoint of the subinterval containing the root to estimate the root give an upper bound for the error.

Problem 5. Find two interval of length 1 with integer endpoints, each interval guaranteed to contain a root of f (x) =

exp(x) − 6 x. Be sure to justify your answer (without finding the roots). Use an initial guess x 0 = 0 and apply Newton’s iteration once to obtain a new estimate x 1 for one of the roots.

Problem 6. Let p(x) = x^3 + x^2 + 3x − 4. Let x 0 = 1 be an initial guess to a root. (A) Use Newton’s method (twice) to

compute successive approximations x 1 , x 2 to a root. (B) Estimate the error in the root estimate x 1. (C) Given that p(x) has only one real root,. 8663697595... , find the actual errors in x 1 and x 2. How do they compare with your estimate of the error in x 1?

Problem 7. Let a > 0 and let f (x) = x^3 − a. Suppose we decide to estimate the cube root a^1 /^3 by applying Newton’s

method to estimate the positive root of f (x). For n ≥ 0 find an expression for the (n + 1)st^ iterate xn+1 in terms of xn. Simplify.

Problem 8. One of the roots of the polynomial p(x) = x^2 − x − 1 is the golden ratio (1 +

5)/2 = 1. 61803398 · · ·. Use Newton’s method with initial “guess” x 0 = 2 for the root and compute the iterates x 1 , x 2 and x 3 and also the error in each iterate. Is the rate of convergence about what you would expect?

Problem 9. The polynomial

p(x) = x^5 + x + 1

has a root in the interval [− 1 , 0]. Use the midpoint of this interval as an initial guess and apply Newton’s method once. What is your new approximation to the root?

Problem 10. If G(x) = 4 + 3

x then G maps the interval I = [4, 49] into itself and |G′(x)| ≤ 3 / 4 for each x ∈ I. Thus G has a unique fixed point in I. (A) Find the fixed point. (B) If

xn+1 = G(xn), x 0 = 25

does the sequence xn converge to the fixed point? Why?

Problem 11. If F (x) = x^2 − 1 find the fixed point(s) of F. If xn+1 = F (xn) for each n and x 0 = 0 does xn converge to a

fixed point of F?

Problem 12. If G(x) = 12 + 12

x + 1 then G maps the interval [0, 3] into itself. Find the fixed point(s) of G in [0, 3]. If x 0 is any point in [0, 3] and xn+1 = G(xn) can you guarantee that xn converges to a fixed point of G? Explain.

Problem 13. If Pn(x) is the Taylor polynomial centered at a, of degree ≤ n, for the function f , then the error in Pn(x), when

we view Pn(x) as an approximation of f (x), is

f (x) − Pn(x) =

n!

∫ (^) x

a

(x − t)n^ f (n+1)(t) dt =

f (n+1)(ξx) (n + 1)!

(x − a)n+

where ξx is some point between the numbers a and x.

Suppose f is a five times continuously differentiable function and f (1) = 2, f ′(1) = − 2 , f ′′(1) = 4, f (3)(1) = − 8 , and f (4)(1) = − 6.

Part ( AA ): Find the Taylor polynomial P 4 (x) of f of degree ≤ 4 with center at 1.

Part ( BB ): Suppose |f (5)(x)| ≤ 4 for each x ∈ [0, 3].

Find an estimate for the error |f (x) − P 4 (x)| for x ∈ [0, 3].

Problem 14. Let A =

[

]

and let B be a 2 × 2 matrix. If

AB = B + I

A.) S is linearly independent

B.) S spans R^8

C.) S is linearly dependent

D.) S does not span R^8

E.) None of the above.

← Letter corresponding to your answer to problem 21.

Problem 22. The matrix

B =

[

a 1 1 a

]

is invertible if

A.) a 6 = 1

B.) a 6 = − 1

C.) a 6 = 0

D.) never

E.) None of the above.

← Letter corresponding to your answer to problem 22.

Problem 23. Consider the linear system

3 x 1 + 2x 2 + x 3 = 1 x 1 + 2x 2 + 3x 3 = 3 2 x 1 − 2 x 3 = c

Find the value(s) of c for which the system has a solution.

Problem 24. Find the LU decomposition of the Hilbert matrix

H 3 =

1 2

1 3

1 1 4 3

1 4

1 5

Problem 25. Find a Cholesky decomposition H 2 = CT^ C of the Hilbert matrix

H 2 =

[

1 2

1 3

]

Here C is upper triangular.

Problem 26. Consider the linear system

2 x 1 + x 2 = − 2 x 1 + 3x 2 = 1

Use the initial vector [0, 0]T^ and perform 3 Jacobi iterations to obtain an approximate solution. Given the actual solution

[

]T

compute the 2–norm of the error in the approximate solution you obtained.

Problem 27. Consider the linear system

2 x 1 + x 2 = − 2 x 1 + 3x 2 = 1

Use the initial vector [0, 0]T^ and perform 3 Gauss-Seidel iterations to obtain an approximate solution. Given the actual solution [ − 75 , (^45)

]T

compute the 2–norm of the error in the approximate solution you obtained.

Problem 28. Use Newton’s method (just two iterations) with initial guess x 0 = 4 and y 0 = − 6 to estimate a solution to the

nonlinear system

x^2 − 2 x + y = 1 x + xy − 2 y = − 8

Problem 29. (25 points). The polynomial

x^4 + 5x^3 − 19 x^2 − 29 x + 42

has roots 1 and -2. Find the remaining 2 roots.