Solution - Manual For Numerical Analysis - VIEWER XDOCS
Solution - Manual For Numerical Analysis - VIEWER XDOCS
and x1 > V2 Further,
yt
2a
and V3 < 21 < sro. By an inductive argument, we have
V2 < 2mt1 < tm <1 < 20.
“Thus, (>) is a decreasing sequence that has a lower bound and must therefore converge. Suppose
= lity, no Zu Then
Pp A
7
Thus, 1
=P 4)
pageh
‘which implies that
a =p 42,
sop= 42. Since ty > V2 or all m,
Jim_ tm = V3.18
m
Exercise Set 2.3,
‘Now cousider the situation when 0 < «ry < /2, which is the situation in part (b). Then we have
0< (29 v3)" =23-200V/2-+2,
Qrov2 < 2h +2 and Va< Be
To complete the problem, we consider the thee possiblies ey > 0
Case I: xp > 2, which by pat (amples that ite = V2.
Case 2: xo = V2, which implies that tm = V2 for all m and that limtm_ao tm = v2.
Case 3: 0 < zo < v2, which implies that v2 < 21 by part (b). Thus,
O< myc VE camp Ste Sony and lim tm = v3.
In any situation, the sequence converges to V3, and rapidly, as we will discover in the Seetion 23.
Suppose thatthe function g has a fixed-point at p, that g € Ca, band that g exists in (a,b). Show
that if |g'(p)| > 1, then the fixed-point sequence will fil 10 converge for any initial choice of po,
except if pm = p for some value of 7,
SOLUTION: Since gis continous st p and l'(p)| > I. by letting e = |/(p)| — 1 there exists a
saumber 6 > 0 such that
We)-s@l<
whenever 0 < |x —p| < 6, Since
lg’) — 1,
Wee)-9'@l>
for any « satisfying 0 < [x — pl < 6, we have
lov) lah,
Lal) > La) — I) — 9) > W@)|- I I -D
Ifpo is chosen so that 0 < |p — pol <6, we have by the Mean Value Theorem that
ter — Pl = la(eo) — a(p)| = lo’(E) Ilo — a,
for some £ between po and p. Thus, 0 < |p ~ | <5 and
ter —Pl = 198) |lp0 — P| > leo — PI.
‘This means that when an approximation gets close top, but is not equal top, the succeeding terms of
the sequence move away from p.Solutions of Evatioas of One Variable 1»
Exercise Set 2.3, page 71
1. Let fw
~ 6 and py = 1. Use Newton's method to find p>.
SOLUTION: Let f(z) 1. Then f(x) = 2x, and Newton's method becomes
With pp = 1, we have
m=
and
~ Se 7200714,
3. Let f(x) =x? ~6, With pp = 3 and py ~ 2, find py for (a) the Secant method and (b) the method of
False Position.
SOLUTION: The formula for both the Secant method and the method of False Position is
— £00n1)\Pu-1 = Pua)
Pee Pet" lpn) — Fn-2)
The Secant method
With »p = and pr = 2, we have f(7») = 9-6 =3 and f(p1) =4—6 = 2. The Secaut method
sives
= Side
me Fox) — Fee)
and f(p2) = 24? 6 = 024, Then we have
py LeaNra— Pr) _ gg (0224-2) _g, -1.006 _ 5 yg
= Fon)— Fin) 4 Coma) 4 ae
The method of Flee Position
With pp = 3 and p1 = 2, we have f(pp) = 3 and J(p:) =—2. As in the Secant method (part (a)),
p= 24 and f(p2) = ~0.24. Since f(y) < Oand f(p2) <0 the method of False Postion requires,
‘reassignment of py. Then p, is changed to py $0 that py = 3, with f(p1) = 3,and pp = 2.4, with
‘S{gn) = 0.24. We calculate ps by
— 5, Slealm—m) 44 (0224-3) _, 0.
PsP "Fm)— Fn) 4 on A ag
€ Since V6 2.44949, the approximation (a) is better.20 Exercise Set 2.3,
5. ¢. Apply Newion’s method to find a solution to ~ cos:r = 0 inthe interval [0, 7/2] that is aceurate
towithia 10-4
SOLUTION: With f¢
‘Newton's method is
coor, We have f(x) = 1 sin, and the sequence generated by
com Pp
Tsing
For po = 0, we have p; = 1, pp = 0.75036, py = 0.73911, and the suficiently accurate
Pa = 0.73909.
«. Apply the Seeant method fo finda solution to x — cos.x = 0 in the interval {0,/2| that is accurate
to within 10-4
SOLUTION: The Secant method approximations are generated by the sequence
Pa = Po —
1
Pa = Pra
(oa = ©057m-1) (Pa — 008 ma)
Using the endpoints ofthe intervals as yy and py, we have the entries inthe following tables.
Forthe Secant method: For the method of False Position:
n nm
oo oo
1 L.sro7o6s 1 Lsvo796a
2 ost101ss 2 06110155
3 0.7282005, 3 0,7232605
4 0.7395671 4 07372659
5 0,739084 5 O7S8S77S
6 0.7300851 6 0.7390615
7 0.739085
9. c. Apply the method of False Postion to find a solution to: —eos.r = O in the interval (0, x /2] that is
accurate to within 1
SOLUTION: The method of False Postion approximations are generated using tis same formula as
in Exercise 7, but incorporate the additional bracketing test
13. Apply Newton's method to find a solution, accurate to within 10~4, to the value of «that produces
the closest point on the graph of y = 1” to the point (1,0)
SOLUTION: The distance between an arbitrary point (2) on the graph of y ~ c* andthe point
(1,0) is
d(x) = ye 1)? + (2? —0) = Vt Be
‘Because a derivative is needed to find the critical points of dit is easier to work with the square of
this function,
Sa) = (dle)? = 428 2244,Solutions of Equations of One Variable a
16.
19,
2.
‘whose minimum will occu tthe same value of asthe minimum of d(x). To minimize f() we
need: so that
O= f(x) = 49 422-2
Applying Newton's method fo find he root of this equation with po ~ 1 gives ps
point on the graph of y = 2? that is closest to (1, 0) has the approximate coordinates:
(o.ssorss,o-trstn)
580755. The
‘Use Newton's method to solve for roots of
SOLUTION: Newton's method with py ~ § gives pis ~ 1.895488 and with py
‘9 = 1.895489. With py = 10x, the sequence does not converge in 200 iterations.
Sx gives
‘The results do not indicate the fast convergence usually associated with Newton's method because the
function and its derivative have the same roots. As we approach a root, we are dividing by numbers
‘ith small magnitude, which increases the round-off error.
Explain why the iteration equation forthe Secaut method should not be used inthe algebraically
esuivaleat form
$(0n-1)Pe=2~ H(Pn-2)Pn—a
Tl0m-1)~ Sn-2)
SOLUTION: This formula incorporates the subtraction of nearly equal numbers in both the
‘numerator and denominator when py and py are uearly equal. The form given in the Secant
Algorithm subtracts a correction from a result that should dominate the calculations. This is always
the preferred approach.
‘Use Maple to determine how many iterations of Newtoa’s method with pp
root of f(z) cto within 10-10,
15/Aare needed to find
SOLUTION: We first define f(r) and f(x) with
>£:=x-2e08 (x) “x:
fen ost) —
and >Ep:=x->(D) (£) (x);
Ip 2+ —sin(z)—1
‘We wish to use 100-digit rounding arithmetic so we set
spigits po
efor n from 1 to 7 do
> pl:sevalf (pO-£ (0) /£p (po) );2 Exercise Set 2.3,
Py = -T398085133321'516064165531208767387340401341175890075746406
1568063577312846548835475945903761069317065319,
hich is accurate to 10-1
23, The function defined by f(r) = In (2? + 1) —e cow x has an infinite aumber of zeros.
Approximate, to within 10-*,
(2) the only negative 210,
(@) the four smallest positive zeros, and
(@ the 25th smallest positive zero,
SOLUTION: The key to this problem i recognizing the behavior of ¢°4*, When is negative, this
term goes to ero, so f(z) is dominated by In (x2 + 1). However, when xis positive, "dominates
the calculations, and /(c) willbe zero approximately when tis term makes no contibuton; that is,
when eos re = 0. This oceurs when 1 = 1/2 for a positive integer n. Using this information to
determine initial approximations produces the following results
For part (a), we can use pp = —0.5 to find the sufficiently accurate ps = ~0.4341431
For past (b), we can use:
0.510 give py ~ 04506567; pp — 1.510 give py — L.TAA7381;
Po = 25 to give ps = 2.238319; and po = 35 to give pe = 3.709042.
In general, a reasonable initial approximation forthe nth postive rot is ~ 0.5. To salve part (4),
wwe let py = 24.5 to produce the suiciently aecurate approximation pz
Graphs for vatious parts ofthe region are shown below.
600
400
200
26, Determine the minimal annual interest rte at which an amount P = $1500 per month can be
invested to accumulate an amount A = $750, (00 at the end of 20 years based on the annuity due
equation
Fiasar-Solutions of Equations of One Variable 2B
28.
Let Fle
SOLUTION: This is simply a rootfinding problem where the function is given by
1500. y(12)(20)
eon — 280 Fr sry —]
‘Notice that » and i have been adjusted because the payments are made monthly rather than yearly.
‘The approximate solution to this equation can be found by any method in this section. Newton's
method is a bit cumbersome for this problem. since the derivative of f is complicated. The Secant
teh won bes iel choice The ial sal nr appoint 67%
fi
Pras
A drug administered toa patient produces a concentration in the blood stream given by
e(t) = Ate~‘/* mg/mL, t hours after A units have been administered, The maximum safe
concentration is! mg/mL,
8) What amount should be injected to reach this safe level, and when does this cur?
bb) When should an additional amount be administered, ift is administered when the level drops to
025 mg/mL?
©, Assuming 75% ofthe original amount is administered in the second injestion, when should a third
injection be given”
SOLUTION: The maximum concentration occurs when
w=a(-Je
This happens when t = 3 hours, and since the concentration at this time will be e(3) = Site, we
need to administer A — Le unit
For part (b) ofthe problem, we need to determine ¢ so that
0
oas-a=(ejie
This occurs when is 11 hours and 5 minutes; that is, when t = 11.083 hows
The solution to part (c) requires finding ¢ so that
Ge) te! 40.75 () (611.083) e~(t-1.08578,
This occurs after 21 hours and 14 minutes,
0.25 = e(t
gett 7. 52
a. Use the Maple commands solve and feoLve 0 try to find al roots off.
SOLUTION: First define the funetion by
pf pKco3" (Bextl)-74957 (2030 5
f
a 90H) _ 7g
psolve (£ (x)=0,x) 5
(3/7)
“in @T/25)Exercise Set 2.3,
>fsolve(E (x)=0,x)
feolve(g(*e+!) — 7 5128)
0.)
‘The procedure solve gives the ext ston, nd fool ve fis bose he neptive ai ian
asymplote forthe gapiof (2)
Plot f(t ind intial approximations to oot off.
SOLUTION: Using the Maple command >plot ({£ (x) },x=10.5..11.5) ; produces the
following graph.
«. Use Newton's method to find roots off to within 10.
SOLUTION: Define (x) using
>£psax->(D) (£) (x);
Sp 2+ 83%") In(a) — 145 In(5)
Digits = 18
wall
>for i from 1 to 5 do
>pl:zevalf (po-£ (po) /£p(po)) :
perr:sabs(pl-p0) ;
>p0:=pli
30a;
‘The results are given in the following table
Dy be peal
11,0007380401552508 .0007380401552503
111,0094380350662827 0002001041889676
‘11.0004386442681488 2016978339 10-*
TLOoONBSEAADSITIG «2772 10-2
11, 0094386442681716 0Solutions of Equations of One Variable 2s
4. Find the exact solutions of f(x) = 0 algebraically.
SOLUTION: We have 34"! = 7.52%, Taking the natural logarithm of both sides gives
(r+1)In3=n7-+2rIn5,
‘Thus,
eln3 — 2rln5 =In7 —in3,
1?
2(3ln3—2In5) In,
and
n7/3 In7/8__ 3/7
5 In 27/25. ‘In 27/25"
This agrees with par),
Exercise Set 2.4, page 82
1, a. Use Newton’s method to find a solution accurate to within 10~° for x? — 2re~* + e~™* = 0,
where Oo <1
SOLUTION: Since .
2 are pe
Ste)
and
Sa) = Br — De + Dee — 2e™,
the iteration formula is
S(Pn-a)
FOr.
Pa =Pa-
Pat
Boga — 2ePat + Dpy pe Pont — Det
With pp = 0.5,
i= 0.5 ~ (0.01134878)/(-0.3422805) = 0.5331965,
[567135 is accurate to-within 10
Continuing inthis manner, pry =
3. a, Repest Exercise I(a) using the modified Newton-Raphson method described in Eq. (2.11). Is there
‘an improvement in speed or accuracy ver Exercise 1?
SOLUTION: Since
See
L@
and10.
- a. Show that the sequence yn — 1/n converges linearly to p
Exercise Set 24
the iteration forma is
my flea Ons)
Pe PI Fas) Ln)" Ons)
With py = 0.5, we have f(po) = 0.011348781, f"(po) = ~0.342280542, f"(pp) = 5.201100744
and
(0.01134878)(—0.512280542)
(COsiaN06 12)? — (O.ULLSASTSI)(5.201T09744)
=0.5680137.
05 —
Continuing inthis manner, py = 0.567143 is accurate to within 10-*
‘and determine the number of tems
sequited t have [py — n| <5 10-2
SOLUTION: Since
tig Pm —al yg Wt py
8. pa ple nT
we have linear convergence. To have py ~ pl < 5 x 10-%, we need 1/n < 0.05, which implies that
n>,
3. Show that (a) the sequence pm = 10?" converges quadratically to zero, but that (b) pa = LO-"*
does not converge to 2er0 quadratically, regardless of the size of k > 1.
SOLUTION:
a. Since
bas -0| wo oe
a) ER, Gone Te 0
en = OF
the sequence is quadratically convergent.
b, However, for any k > 1,
tome rome
Boney A goa = ag me
diverges. So the sequence p,, = 10-"* does not converge quadratically for any positive value of k
Show that the fixed-point method
mf(x)
To
az)
has o/(p) = 0, fp isa zero of f of maltiplicity
SOLUTION: If f has a zero of multiplicity r at p, then a function q exists with
S(@)=(2—p)"a(2), where lim af) #0.Solutions of Equations of One Variable cy
2.
since
Si(2) = mle — pale) + (4 — pI (2),
wehave
is) =e 40) n(x ~ p) ale) .
Fe) ~*~ mle pyr-tqla) + (2 PPT)
which reduces to
m(x~ pale)
ingle) +(e pate)"
Differentiating this expression and evaluating at x = p gives
ae) =2—
ma(n)(matp)]
[nato)
If f'" is continous, Theorem 2.8 implies that this sequence produces quadratic convergence once We
are lose enough tothe solution p.
ge) =
‘Suppose that f has m continuous derivatives. Show that f has a zero of multiplicity m at p if and
only if
O= 0) =F) == FM), but FW) #0.
‘SOLUTION: If f has a zero of multiplicity m at p, then f can be written as
fle) =(e— pr)" ale),
for # p, where
Thus,
F(a) = mle — By" "ale) + (ep) (a)
and f"(p) = 0. Also,
ie
and J"(p) =0.
In general, for k You might also like