Docsity

Mathematics Homework: Exercises from Section 2.4 and Section 3.1, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Department of Mathematics Fall 2008
MATH 4364, Section 24266 MW 5:30-7:00PM
A. Caboussat
Partial Answers Homework 3
Section 2.4 Exercise 7
Setting pn=n−k, we have
|pn+1 −pn|
|pn−p|=
1
(n+1)k
1
nk
=n
n+ 1 k
→1,
when n→ ∞.
Section 2.4 Exercise 10
We assume that f(p) = f′(p) = . . . =f(m−1)(p) = 0 and set
g(x) = x−mf(x)
f′(x).
Thus
g′(x) = 1 −m+mf(x)f′′(x)
(f′(x))2.
For m= 1. the conclusion is clear. For m= 2, by using l’Hospital rule, we obtain:
g′(p) = 1 −m+mf(p)f′′(p)
(f′(p))2
= 1 −m+mf′(p)f′′(p) + f(p)f′′′(p)
2f(p)f′(p))
= 1 −m+mf′′(p)f′′(p) + 2f′(p)f′′′(p)
2(f′(p)f′′′(p) + f′′(p)f′′ (p))
= 1 −m+m1
2= 0.
For m > 2, we have to apply another times the L’hospital rule.
Another way to solve this problem is as follows. If pis a zero of multiplicity m, we can write f(x) = (x−p)mq(x),
where q(p)6= 0. Therefore
f(x) = (x−p)mq(x)
f′(x) = m(x−p)m−1q(x)(x−p)mq′(x)
and
g(x) = x−mf(x)
f′(x)=x−m(x−p)mq(x)
m(x−p)m−1q(x)(x−p)mq′(x)=x−m(x−p)q(x)
mq(x)(x−p)q′(x).
Differentiating once:
pf3
pf4

Partial preview of the text

Download Mathematics Homework: Exercises from Section 2.4 and Section 3.1 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Department of Mathematics Fall 2008 MATH 4364, Section 24266 MW 5:30-7:00PM A. Caboussat

Partial Answers Homework 3

Section 2.4 Exercise 7

Setting pn = n−k, we have

|pn+1 − pn| |pn − p|

1 (n+1)k 1 nk

n n + 1

)k → 1 ,

when n → ∞.

Section 2.4 Exercise 10

We assume that f (p) = f ′(p) =... = f (m−1)(p) = 0 and set

g(x) = x − m

f (x) f ′(x)

Thus

g′(x) = 1 − m + m

f (x)f ′′(x) (f ′(x))^2

For m = 1. the conclusion is clear. For m = 2, by using l’Hospital rule, we obtain:

g′(p) = 1 − m + m

f (p)f ′′(p) (f ′(p))^2

= 1 − m + m

f ′(p)f ′′(p) + f (p)f ′′′(p) 2 f (p)f ′(p))

= 1 − m + m

f ′′(p)f ′′(p) + 2f ′(p)f ′′′(p) 2(f ′(p)f ′′′(p) + f ′′(p)f ′′(p))

= 1 − m + m

For m > 2, we have to apply another times the L’hospital rule.

Another way to solve this problem is as follows. If p is a zero of multiplicity m, we can write f (x) = (x−p)mq(x), where q(p) 6 = 0. Therefore

f (x) = (x − p)mq(x) f ′(x) = m(x − p)m−^1 q(x)(x − p)mq′(x)

and

g(x) = x − m

f (x) f ′(x)

= x − m

(x − p)mq(x) m(x − p)m−^1 q(x)(x − p)mq′(x)

= x − m

(x − p)q(x) mq(x)(x − p)q′(x)

Differentiating once:

g′(x) = 1 − m [q′(x)(x − p) + q(x)] [mq(x) + (x − p)q′(x)] − q(x)(x − p) [mq′(x) + q′(x) + (x − p)q′′(x)] (mq(x)(x − p)q′(x))^2

Using q(p) 6 = 0, it is easy to see that g′(p) = 0.

Section 2.4 Exercise 13

Let

g(x) = x −

f (x) f ′(x)

f ′′(x) 2 f ′(x)

f (x) f ′(x)

In order to prove the cubic convergence, we follow the demonstration of Theorem 2.8 and we have to prove that

f (p) = 0 ⇒ g′(p) = g′′(p) = 0.

which is tedious, but straightforward to check in this particular case. Following Example 1 of the text, we assume that a sequence {pn} converges to zero with order 3, i.e. for instance

|pn+1| |pn|^3

This leads to

|pn| ≃ 0. 5 |pn− 1 |^3 ≃ (0.5)(0.5)^3 |pn− 2 |^9 = (0.5)^4 |pn− 2 |^9 ≃ ... ≃ (0.5)(

n−1)/ 2 |p 0 |^3

n .

The convergence is much fast than the linear and quadratic methods exhibited in Table 2.7.

Section 2.5 Exercise 1

A possible output is as follows:

p( 1) = 0. p( 2) = 0. p( 3) = 0. p( 4) = 0.25360716 / phat( 4) = 0. p( 5) = 0.25855038 / phat( 5) = 0. p( 6) = 0.25726564 / phat( 6) = 0. p( 7) = 0.25759899 / phat( 7) = 0. p( 8) = 0.25751245 / phat( 8) = 0. p( 9) = 0.25753491 / phat( 9) = 0. p( 10) = 0.25752908 / phat( 10) = 0. p( 11) = 0.25753060 / phat( 11) = 0.

Section 3.1 Exercise 20

a. The interpolating polynomial can be written as

P 1 (x) = f [0] + f [0, 0 .5]x.

This gives P 1 (0.25) = 1. 324360635350064 (f (0.25) = 1.284025416687741).

b. The interpolating polynomial can be written as

P 2 (x) = f [0.5] + f [0. 5 , 1](x − 0 .5).

This gives P 2 (0.75) = 2. 183501549579587 (f (0.75) = 2.117000016612675).

c. The interpolating polynomial can be written as

P 3 (x) = f (0)

(x − 1)(x − 2) (0 − 1)(0 − 2)

  • f (1)

(x − 0)(x − 2) (1 − 0)(1 − 2)

  • f (2)

(x − 0)(x − 1) (2 − 0)(2 − 1)

This gives

P 3 (0.25) = 1. 152774290676084 (f (0.25) = 1.284025416687741) P 3 (0.75) = 2. 011915204905606 (f (0.75) = 2.117000016612675).

d. The linear interpolations are better since they rely on points that are closer to each other.