Answers
Reference answers and worked solutions.
Given
f(x)=x3−2x−5
a) Equation is nonlinear because highest power of x is 3.
b) Sign-change intervals:
f(2)=8−4−5=−1
f(3)=27−6−5=16
So root lies in [2,3].
Again,
f(2.09)=2.093−2(2.09)−5≈−0.050671
f(2.10)=2.103−2(2.10)−5≈0.061
So narrower interval is [2.09,2.10].
c) Graph of cubic crosses x-axis near
x≈2.09
Given
f(x)=x3−7
a)
f(1)=1−7=−6,f(2)=8−7=1
Since f(1)f(2)<0, root exists in [1,2].
b) Interval is suitable because f(x) is continuous and signs at endpoints are opposite.
c) Bisection table with TOL=0.005:
| Iteration | a | b | c=2a+b | f(c) |
|---|
| 0 | 1.000000 | 2.000000 | 1.500000 | -3.625000 |
| 1 | 1.500000 | 2.000000 | 1.750000 | -1.640625 |
| 2 | 1.750000 | 2.000000 | 1.875000 | -0.408203 |
| 3 | 1.875000 | 2.000000 | 1.937500 | 0.273193 |
| 4 | 1.875000 | 1.937500 | 1.906250 | -0.073090 |
| 5 | 1.906250 | 1.937500 | 1.921875 | 0.098644 |
| 6 | 1.906250 | 1.921875 | 1.914062 | 0.012427 |
Final interval:
[1.90625, 1.9140625]
Approximate root:
x≈21.90625+1.9140625=1.91015625≈1.910
Given
x3+x−6=0
a) Two possible fixed-point forms:
x=36−x
x=6−x3
Use
xn+1=36−xn
because it converges near root.
b) Suitable initial guess:
x0=1.5
c) Iteration table:
| Iteration | xn | xn+1 | Error ∣xn+1−xn∣ |
|---|
| 0 | 1.500000 | 1.650964 | 0.150964 |
| 1 | 1.650964 | 1.632291 | 0.018672 |
| 2 | 1.632291 | 1.634624 | 0.002333 |
Since error <0.005, stop.
Approximate root:
x≈1.6346
Given
f(x)=x3−4x−9
a)
f(2)=8−8−9=−9
f(3)=27−12−9=6
So root lies in (2,3).
b) Choose
x0=2,x1=3
c) Secant formula:
xn+1=xn−f(xn)−f(xn−1)f(xn)(xn−xn−1)
Five iterations:
| Iteration | xn−1 | xn | xn+1 | f(xn+1) |
|---|
| 1 | 2.000000 | 3.000000 | 2.600000 | -1.824000 |
| 2 | 3.000000 | 2.600000 | 2.693252 | -0.237227 |
| 3 | 2.600000 | 2.693252 | 2.707193 | 0.011956 |
| 4 | 2.693252 | 2.707193 | 2.706524 | -0.000072 |
| 5 | 2.707193 | 2.706524 | 2.706528 | -0.000000 |
Approximate root:
x≈2.706528
Given
f(x)=x3−2x2+3
a) Stopping criterion:
∣xn+1−xn∣<εor∣f(xn+1)∣<ε
b)
f′(x)=3x2−4x
Newton-Raphson formula:
xn+1=xn−3xn2−4xnxn3−2xn2+3
c) Take x0=−1.5.
| Iteration | xn | f(xn) | f′(xn) | xn+1 |
|---|
| 0 | -1.500000 | -4.875000 | 12.750000 | -1.117647 |
| 1 | -1.117647 | -0.894362 | 8.217993 | -1.008817 |
| 2 | -1.008817 | -0.062111 | 7.088407 | -1.000055 |
| 3 | -1.000055 | -0.000385 | 7.000550 | -1.000000 |
| 4 | -1.000000 | -0.000000 | 7.000000 | -1.000000 |
| 5 | -1.000000 | 0.000000 | 7.000000 | -1.000000 |
Root after six iterations:
x≈−1
System:
3x+y−z=4
2x−4y+5z=−3
x+2y+3z=10
a) Augmented matrix:
3211−42−1534−310
b) Upper triangular form:
R2←R2−32R1,R3←R3−31R1
3001−31435−13173104−317326
R3←R3+145R2
3001−3140−131714754−3171493
c) Back substitution:
z=75/1493/14=2531=1.24
y=2568=2.72
x=2521=0.84
So
x=0.84,y=2.72,z=1.24
System:
0.2x+3y+z=8
4x+y−z=7
2x+5y+2z=10
a) Partial pivoting is required because first pivot 0.2 is very small. Dividing by it may cause large round-off error.
b) Row interchange:
R1↔R2
Largest absolute value in first column becomes pivot.
c) Start:
0.2423151−128710R1↔R240.22135−1127810
Eliminate first column:
R2←R2−201R1,R3←R3−21R1
4001205929−1202125720153213
Second pivot: 29>2059, so swap
R2↔R3
Then
R3←R3−9059R2
4001290−125−905372131861
Back substitution gives
z=−53305≈−5.7547
y=53246≈4.6415
x=−5345≈−0.8491
Given
10x+y−z=11
2x+10y+z=12
−2x+3y+10z=14
a) Iterative form:
x=1011−y+z
y=1012−2x−z
z=1014+2x−3y
b) Diagonal dominance:
∣10∣>∣1∣+∣−1∣=2
∣10∣>∣2∣+∣1∣=3
∣10∣>∣−2∣+∣3∣=5
So system is diagonally dominant. Gauss-Seidel will converge.
c) With x0=y0=z0=0:
| Iteration | x | y | z |
|---|
| 0 | 0.000000 | 0.000000 | 0.000000 |
| 1 | 1.100000 | 0.980000 | 1.326000 |
| 2 | 1.134600 | 0.840480 | 1.374776 |
| 3 | 1.153430 | 0.831836 | 1.381135 |
| 4 | 1.154930 | 0.830901 | 1.381716 |
After four iterations:
x≈1.15493,y≈0.83090,z≈1.38172
IUS Preps - Your Academic Success Partner