Use Newton's Method to approximate the positive root of 2cosx=x4 correct to six decimal places.
Rewrite the equation in Standard Form
2cosx−x4=0
Therefore, let f(x)=2cosx−x4. Then,
f′(x)=2ddx(cosx)−ddx(x4)f′(x)=2(−sinx)−4x3f′(x)=−2sinx−4x3
Using Approximation Formula
xn+1=xn−f(xn)f′(xn)xn+1=xn−2cosxn−x4n−2sinxn4x3nxn+1=xn+2cosxn−x4n2sinxn+4x3n
To find the initial approximation x1, we graph y=2cosx and y=x4.
Based from the graph, it appears that they intersect at a point in x-coordinate where they are very close to -1 and 1. We have x1=1 and x1=−1 as the initial approximation.
So we get
x2=x1+2cosx1−x412sinx1+4x31x2=1+2cos(1)−(1)42sin(1)+4(1)3x2=−1+2cos(−1)−(−1)42sin(−1)+4(−1)x2≈1.014184x2≈−1.014184x3=1.014184+f(1.014184)f′(1.014184)x3=−1.014184+f(−1.014184)f′(−1.014184)x3≈1.013958x3≈−1.013958x4=1.013958+f(1.013958)f′(1.013958)x4=−1.013958+f(−1.013958)f′(−1.013958)x4≈1.013958x4≈−1.013958
Since x3 and x4 agree to six decimal places, therefore x≈1.013958 and x≈−1.013958
No comments:
Post a Comment