0% found this document useful (0 votes)
38 views6 pages

Further Math 2 of 2

The document describes using Newton's method to find the roots of three functions: f(x)=3x^2 + 5x -5, f(x)=3x^2 + 5x -5, and f(x)=2x^3 - 3x^2 + 5x - 1. For each function, Newton's method is applied iteratively starting from different initial values of x to converge on the root. The document also uses Simpson's rule and the trapezoidal rule to numerically evaluate the integral of another function from -30 to 30 and compares the errors between the two methods. Simpson's rule results in less error compared to the trapezoidal rule for this problem.

Uploaded by

Aung Kaung Myat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views6 pages

Further Math 2 of 2

The document describes using Newton's method to find the roots of three functions: f(x)=3x^2 + 5x -5, f(x)=3x^2 + 5x -5, and f(x)=2x^3 - 3x^2 + 5x - 1. For each function, Newton's method is applied iteratively starting from different initial values of x to converge on the root. The document also uses Simpson's rule and the trapezoidal rule to numerically evaluate the integral of another function from -30 to 30 and compares the errors between the two methods. Simpson's rule results in less error compared to the trapezoidal rule for this problem.

Uploaded by

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

By Newton Method,

❑ ❑
f (x ¿¿❑)=3❑ + 5❑ −5 x−2 ¿

f ' (x ¿¿❑)=9❑ +10❑❑−5 ¿

f (x ¿¿❑)
x n+1=x n − ¿
f ' (x ¿¿❑), n=0 , 1, 2 , … , n+1 ¿

( ¿n )
❑n+1=❑n−f ¿
f ' (¿n )¿
❑ ❑
3❑❑ +5 ❑❑ −5 x−2
❑n+1=❑n− ❑
9❑❑ +10 ❑❑−5
For x=−2 ,
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=0 ,❑❑=❑n − ❑ =−2.363636
9❑❑ +10❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x−2
n=1 ,❑❑=❑n− ❑ =−2.277552
9❑❑ +10 ❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x −2
n=2 ,❑❑=❑n− ❑ =−2.271276
9❑❑ + 10❑❑−5
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=3 ,❑❑=❑n− ❑ =−2.271244
9❑❑ +10❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x −2
n=4 ,❑❑ =❑n− ❑ =−2.271244
9❑❑ + 10❑❑−5
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=5 ,❑❑=❑n− ❑ =−2.271244
9❑❑ + 10❑❑−5
❑ ❑
3 ❑❑ +5❑❑ −5 x−2
n=6 ,❑❑=❑n − ❑ =−2.271244
9❑❑ +10❑❑−5
The root x is -2.271244.

For x=0 ,

1
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=0 ,❑❑=❑n − ❑ =−0.400000
9❑❑ +10❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x−2
n=1 ,❑❑=❑n− ❑ =−0.319577
9❑❑ +10 ❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x −2
n=2 ,❑❑=❑n− ❑ =−0.318118
9❑❑ + 10❑❑−5
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=3 ,❑❑=❑n− ❑ =−0.318117
9❑❑ +10❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x −2
n=4 ,❑❑ =❑n− ❑ =−0.318117
9❑❑ + 10❑❑−5
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=5 ,❑❑=❑n− ❑ =−0.318117
9❑❑ + 10❑❑−5
The root x is −0.318117.

For x=1 ,
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=0 ,❑❑=❑n − ❑ =0.928571
9❑❑ +10❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x−2
n=1 ,❑❑=❑n− ❑ =0.922732
9❑❑ +10 ❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x −2
n=2 ,❑❑=❑n− ❑ =0.922694
9❑❑ + 10❑❑−5
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=3 ,❑❑=❑n− ❑ =0.922694
9❑❑ +10❑❑−5
❑ ❑
3❑❑ + 5❑❑ −5 x −2
n=4 ,❑❑ =❑n− ❑ =0.922694
9❑❑ + 10❑❑−5
❑ ❑
3❑❑ +5❑❑ −5 x−2
n=5 ,❑❑=❑n− ❑ =0.922694
9❑❑ + 10❑❑−5
The root x is 0.922694 .

2
WL 3 2
y= (2 x −3 x +5 x−1)
EI
Since y is deflection so , y is Zero .
WL
( 2 x 3 −3 x 2 +5 x−1 )=0
EI

( 2 x 3−3 x 2+5 x−1 ) =0

Let f ( x )=2 x 3−3 x 2+ 5 x −1

f ( x )=−1
f ( 1 ) =2−3+5−1=3
Since , f ( 0 ) . f (1 )< 0
Choose , x l=0 ,∧xu =1

x l+ xu 0+1
x m= = =0.5
2 2
f ( x l ) =f ( 0 )=−1

f ( x m ) =f ( 0.5 )=2 ( 0.5 )3−3 ( 0.5 )2+5 ( 0.5 )−1

¿ 0.25−0.75+0.25−1=1

Since f ( x l ) . f ( x m ) < 0 , theroot lies ∈tjhe lower −interval .

Set x l=0 ,∧xu =0.5

x l+ xu 0+0.5
x m= = =0.25
2 2
f ( x l ) =f ( 0 )=−1
3 2
f ( x m ) =f ( 0.25 )=2 ( 0.25 ) −3 ( 0.25 ) +5 ( 0.25 )−1=0.09345

Since f ( x l ) . f ( x m ) < 0 , theroot lies ∈tjhe lower −interval .

Set x l=0 ,∧xu =0.25

x l+ xu 0+0.25
x m= = =0.125
2 2
f ( x l ) =f ( 0 )=−1

3
f ( x m ) =f ( 0.125 )=2 ( 0.125 )3−3 ( 0.125 )2+5 ( 0.125 )−1=−0.418

Since f ( x l ) . f ( x m ) > 0 , theroot lies ∈tjhe upper −interval .

Set x l=0.125 ,∧xu =0.25

x l+ xu 0.125+0.25
x m= = =0.1875
2 2
f ( x l ) =f ( 0.125 )=−0.418
3 2
f ( x m ) =f ( 0.1875 )=2 ( 0.1875 ) −3 ( 0.1875 ) +5 ( 0.1875 )−1=−0.155

Since f ( x l ) . f ( x m ) > 0 , theroot lies ∈tjhe upper −interval .

Set x l=0.1875 ,∧xu =0.25

x l+ xu 0.1875+0.25
x m= = =0.21875
2 2
th
After 5 iteration ,the root x approximatrly equals ¿ 0.21875.

x
y=30 cash( )
30
dy
dx
=30 sinh ( )
x 1
.
30 30

¿ sinh ( )
x
30
aqswedrftgedrftg ¿ a=−30 ¿ b=30


30
The length of the curve= ∫ 1+
−30
( )
dy 2
dx
dx

4

f ( x )= 1+sinh 2
x
30


¿ cosh 2
x
30
( ∴ 1+ sinh2=cosh 2 )

x
Let u=
30
1
du= dx
30
30 du=dx
If x=30∧u=1
If x=−30∧u=−1
1
¿ ∫ √ cosh ( u ) du
−1

¿ 30 ¿
¿ 30 ¿
¿ 70.5121 ( Correct ¿4 significant figures )


30
x
∫ 1+ sin
2
30
dx=8 intervals .
−30

Since a=−30 , b=30 nad n=8

b−a 30−( 30 )
Width of intervals , d= = =7.5
n 2


x x
y=f ( x )= 1+ sin2
30
-30 1.5431
-22.5 1.2947
-15 1.1276
-7.5 1.0314
0 1
7.5 1.0314
15 1.1276
22.5 1.2947
30 1.5431

By Trapezoidal Rule ,

5
√ { }
30
x 1
( 1.5431+1.5431 ) +1.2947+1.1276+ 1.0314+1+1.0314
∫ 1+ sinh
2
30
dx ≈ 7.5 . 2
−30
+1.1276+1.2947

≈ 70.8788
By Simpson ’ s Rule ,

√ { }
30
x 1 1
∫ 1+ sinh
2
30
dx ≈ 7.5 ×
3 2
( 1.5431+ 1.5431 )+ 1.2947+1.1276+1.0314 +1+¿ 1.0314+1.1276+ 1.2947
−30

≈ 70.5135

Checking error :
Error ¿ Trapezoidal Rule ,
Error=70.8788−70.5121
¿ 0.3667
Error ¿ Simpson ’ s Rule ,
Error=70.5135−70.5121
¿ 0.0014
While both methods entail some level of error, Simpson's rule notably minimizes this
error. Graphical expression methods pose challenges in accurately representing dimensions
and interpreting results, particularly with higher numbers. In contrast, Simpson's rule emerges
as a more suitable approach, offering a lower margin of error and enhanced practical
applicability.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy