0% found this document useful (0 votes)
141 views15 pages

Newton Raphson Method:: Find Roots of The Equation

The document contains the work of a student named Hafisa Ayesha Nawaz with roll number M13-CE. It shows the use of the Newton Raphson method to find the roots of 7 different equations in 7 parts. For each equation, it lists the initial guesses, function values, derivatives, and iteratively calculates the root. The roots converge within few iterations for each equation.

Uploaded by

laila khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views15 pages

Newton Raphson Method:: Find Roots of The Equation

The document contains the work of a student named Hafisa Ayesha Nawaz with roll number M13-CE. It shows the use of the Newton Raphson method to find the roots of 7 different equations in 7 parts. For each equation, it lists the initial guesses, function values, derivatives, and iteratively calculates the root. The roots converge within few iterations for each equation.

Uploaded by

laila khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Name: Hafisa Ayesha Nawaz Roll No.

M13-CE

QUESTION: 34 FIND ROOTS OF THE EQUATION

PART 1: X³-x+1=0

NEWTON RAPHSON METHOD:


x f(x) xn f(xn) g(xn) xn+1

-2 -5 -1.5 -0.87500 5.75000 -1.34783


-1 1 -1.34783 -0.10068217309 4.44991 -1.32520
0 1 -1.32520 -0.00205836192 4.26847 -1.32472
1 1 -1.32472 -9.2437776E-07 4.26463 -1.32472
2 7 -1.32472 -1.86517468E-13 4.26463 -1.32472
3 25 -1.32472 0 4.26463 -1.32472

turn on sheet
Roll No. M13-CE-35

x=(x-1)⅓

ITERATION METHOD
xn+1

-1.35721
-1.32909
-1.32481
-1.32472
-1.32472
-1.32472
Part 2: x³+x+1=0
NEWTON RAPHSON METHOD:
x f(x) xn f(xn) g(xn) xn+1

-2 -9 -0.50000 0.37500 1.75000 -0.71429


-1 -1 -0.71429 -0.07872 2.53061 -0.68318
0 1 -0.68318 -0.00204 2.40020 -0.68233
1 3 -0.68233 0.00000 2.39672 -0.68233
2 11 -0.68233 0.00000 2.39671 -0.68233
-0.68233 0.00000 2.39671 -0.68233
-0.68233 0.00000 2.39671 -0.68233

turn on sheet
x=-x³-1

ITERATION METHOD
xn+1

-0.87500
-0.63557
-0.68114
-0.68233
-0.68233
-0.68233
-0.68233
PART 3: x³+x-1=0

NEWTON RAPHSON METHOD:


x f(x) xn f(xn) g(xn) xn+1

-2 -11 0.5 -0.375 1.75 0.714286


-1 -3 0.71429 0.07872 2.53061 0.68318
0 -1 0.68318 0.00204 2.40020 0.68233
1 1 0.68233 0.00000 2.39672 0.68233
2 9 0.68233 0.00000 2.39671 0.68233
0.68233 0.00000 2.39671 0.68233

turn on sheet
x=1-x³

ITERATION METHOD
xn+1

0.87500
0.63557
0.68114
0.68233
0.68233
0.68233
Part 4: Sinx-5x+2=0

NEWTON RAPHSON METHOD:


x f(x) xn f(xn) g(xn) xn+1

-2 11.0907 0.5 -0.020574 -4.122417 0.495009


-1 6.15853 0.49501 -0.00001 -4.12004 0.49501
0 2 0.49501 0.00000 -4.12003 0.49501
1 -2.1585 0.49501 0.00000 -4.12003 0.49501
2 -7.0907 0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501
0.49501 0.00000 -4.12003 0.49501

turn on sheet
x=(sinx+2/5)

ITERATION METHOD
xn+1

0.49589
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
0.49501
Part 5: Cosx-x+2=0

NEWTON RAPHSON METHOD:


x f(x) xn f(xn) g(xn) xn+1

-2 3.58385 1.5 0.570737 -1.997495 1.785726


-1 3.5403 1.78573 0.00099 -1.97699 1.78623
0 3 1.78623 0.00000 -1.97688 1.78623
1 1.5403 1.78623 0.00000 -1.97688 1.78623
2 -0.4161 1.78623 0.00000 -1.97688 1.78623
3 -1.99 1.78623 0.00000 -1.97688 1.78623
4 -2.6536 1.78623 0.00000 -1.97688 1.78623

turn on sheet
x=cosx+2

ITERATION METHOD
xn+1

2.07074
1.78672
1.78623
1.78623
1.78623
1.78623
1.78623
3
3
3
3
3
3
3
3
Part 6: xlog₁₀x-1.2=0

NEWTON RAPHSON METHOD:


x f(x) xn f(xn) g(xn) xn+1

0.5 -1.3505 2.75 0.008165 0.873627 2.740654


1 -1.2 2.74065 0.00001 0.87215 2.74065
1.5 -0.9359 2.74065 0.00000 0.87215 2.74065
2 -0.5979 2.74065 0.00000 0.87215 2.74065
2.5 -0.2051 2.74065 0.00000 0.87215 2.74065
3 0.23136 2.74065 0.00000 0.87215 2.74065
2.74065 0.00000 0.87215 2.74065
2.74065 0.00000 0.87215 2.74065
2.74065 0.00000 0.87215 2.74065
2.74065 0.00000 0.87215 2.74065
2.74065 0.00000 0.87215 2.74065

turn on sheet
x=10^(1.2/x)

ITERATION METHOD
xn+1

2.73126
2.74064
2.74065
2.74065
2.74065
2.74065
2.74065
2.74065
2.74065
2.74065
2.74065
Part 7: eˣ-lnx=10

NEWTON RAPHSON METHOD:


x f(x) xn f(xn) g(xn) xn+1

0.5 -7.6581 2.25 -1.32319 9.0432914 2.396318


1 -7.2817 2.39632 0.10873 10.56535 2.38603
1.5 -5.9238 2.38603 0.00059 10.45111 2.38597
2 -3.3041 2.38597 0.00000 10.45049 2.38597
2.5 1.2662 2.38597 0.00000 10.45049 2.38597
2.38597 0.00000 10.45049 2.38597
2.38597 0.00000 10.45049 2.38597
2.38597 0.00000 10.45049 2.38597

THE END
x=ln(10+lnx)

ITERATION METHOD
xn+1

2.38056
2.38637
2.38597
2.38597
2.38597
2.38597
2.38597
2.38597

ND

You might also like