0% found this document useful (0 votes)
37 views4 pages

Math Functions

The document presents the proof of the Simpson's formula for a quadratic function f(x)=αx^2+βx+γ over an interval [a,b]. It involves expressing the coefficients α, β and γ in terms of the values of f at points a, b and (a+b)/2 and integrating f(x) using the Simpson's formula.

Uploaded by

Milan Marcetic
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)
37 views4 pages

Math Functions

The document presents the proof of the Simpson's formula for a quadratic function f(x)=αx^2+βx+γ over an interval [a,b]. It involves expressing the coefficients α, β and γ in terms of the values of f at points a, b and (a+b)/2 and integrating f(x) using the Simpson's formula.

Uploaded by

Milan Marcetic
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/ 4

b

Zadatak .

f ( x )= x + x +

f ( x ) dx= 16
a

( ( ) ( ) ( )) (
f a +4 f

a+b
+f b
2

ba ) dokazati .

Napomena :korektno jeda se pie = umesto ~ jer je za kvadratnu funkciju Simpsonova formula
u potpunosti tana.

Reenje.
I Razmatrajmo prvo sluaj a=b .
a samimtim i ceo
je u skladu sa formulom kojutreba da dokaemo , jer je ba=0, pa je i ceo proizvod
integral jednak nuli .

II Dalje razmatranje se svodina sluaj a b .

f ( x ) dx= ( x2 + x + ) dx= x3

2
b + x b + x b =
2 a
a
a

| |

1
( b3a 3 ) + ( b2a2 ) + ( ba )= ( 2 ( b3a3 ) +3 ( b2a 2 )+ 6 ( ba ) )=
3
2
6

1
( 2 ( ba ) ( b 2+ ab+a 2 )+ 3 ( ba ) ( b+ a )+ 6 ( ba ) )=
6

ba
( 2 ( b2+ ab+a 2 ) +3 ( b+ a ) +6 ) .()
6

Za dalji raun nastojim da izrazim , i preko a ,b , f ( a ) , f ( b ) , f


Vrednost funkcije f u taki A ( a , f ( a ) ) je:

f ( a )= a2+ a+ (i)

Vrednost funkcije f u taki B ( b , f ( b ) ) je :

f ( b )= b 2+ b+ (ii)

Vrednost funkcije f u taki C

Iz ( iii ) imamo da je f

( a+2 b ) :

( ))

a+ b
a+b
,f
2
2

f ( x )= x + x +

a+b
a+b
a+ b
f
=
+
+ (iii)
2
2
2

( ) ( ) ( )

je :

a+b
a2 ab b2 a b
=
+ + + + +
2
4 2 4
2 2

( ) (

a+b a2 ab b2 a b
=
+
+
+ + +
2
4
2
4
2 2

( )

Prethodnu jednakost emo pomnoiti sa 4, pa dobijamo :


4f

( a+2 b )=a +2 ab + b +2 a+2 b+ 4


2

a 2+ a+ b+2 + b2 + a+ b+ 2 +2 ab=( u narednim koracima koristimo (i ) , ( ii ) )


f ( a )+ f ( b ) + a+ + b+ +2 ab=
2 f ( a ) +2 f ( b ) ( a22 ab+b 2 )

a+ b
( ba ) =2 f ( a ) +2 f ( b )4 f
2

( i )= =f ( a ) a2a

2 f ( a ) +2 f ( b )4 f
=

2 f ( a ) +2 f ( b ) 4 f
=

( ba )2
ba

4f

( a+2 b )=2 f ( a) +2 f ( b) ( ba)

( a+b2 )

( ba )2

( ii )= =f ( b ) b 2b

b a=f ( b )f ( a ) b2 + a2

f ( b ) f ( a )

2 f ( a ) +2 f ( b ) ( ba )

( )

f ( a )+ f ( b ) + f ( a ) a2 +f ( b ) b2+ 2 ab=

f ( a ) a2a=f ( b ) b 2b

( ba )=f ( b )f ( a ) ( b2a2 )

( a+b2 ) ( ba) ( b+ a)

f ( b ) f ( a ) ( ba )( b+ a )
ba

( ba ) ( f ( b )f ( a ) )( b+ a ) 2 f ( a )+ 2 f ( b )4 f
=

( a+b2 ))

( ba )2
( ba ) f ( b ) ( ba ) f ( a ) 2 ( b +a ) f ( a )2 ( b+a ) f ( b ) +4 ( a+b ) f

( a+b2 )

( ba )2
(b +a2b2 a ) f ( a )+ ( ba2 b2 a ) f ( b ) + 4 ( b+ a ) f

( a+b2 )

( ba )2
(a3 b ) f ( a ) + (3 ab ) f ( b ) +4 ( b+a ) f

( a+b2 )

( ba )2

( i )= =f ( a ) a2a
2 f ( a ) +2 f ( b )4 f
f ( a )a2

( ba )2

( a+b2 ) a (a3 b) f ( a )+ (3 ab) f ( b )+ 4 ( a+b) f ( a+b2 ) =


( ba )2

( ba )2 f ( a )2 a2 f ( a )2 a2 f ( b ) + 4 a2 f

( a+b2 )a (a3 b ) f ( a)a (3 ab) f ( b )4 a ( b+a ) f ( a+b2 )


( ba )2
b

( 22 ab+ a22 a2 + a2+ 3 ab )f (a)+(2 a2 +3 a2 +ab) f (b)+( 4 a2 4 ab4 a2 )f

( ba )2

( a+2 b ) =

b
( 2+ab) f ( a )+ ( a2 +ab ) f ( b )4 abf

( a+2 b )

( ba )2

Vraamo se na ( ) :

( ba )2

( 2 ( b2 +ab+ a2 ) +3 ( b+a ) +6 )
f ( x ) dx= ba
6
a

2 f ( a )+ 2 f ( b )4 f
2 ( b2 +ab+ a2 )

b ( a+b ) f ( a ) +a ( a+ b ) f ( b ) 4 abf

( ba )2
ba

( a+b2 ) +

( a+b2 )

(a3 b ) f ( a ) + (3 ab ) f ( b ) +4 ( b+a ) f
+3 ( b+a )

( ba )2

( a+b2 ) +

( 4 b 2+ 4 ab+4 a2 +3 ( a+b )(a3 b ) +6 ab+ 6 b2 ) f ( a )


( ba )2
ba

b ( a+ b ) f ( a )+ a ( a+b ) f ( b )4 abf
+6

( ba )2

+ ( 4 b 2+ 4 ab +4 a2 +3 ( a+b )(3 ab ) +6 a2 +6 ab ) f ( b )
+
( ba )2

( 8 b 28 ab8 a2 +12 ( a+b )224 ab ) f


+

( ba )2

( a+2 b ) =

( 4 b2 +4 ab+4 a2 +3 (a23 abab3 b2 ) +6 ab+6 b2 ) f ( a )


2

( ba )
ba

2
2
2
2
2
+ ( 4 b + 4 ab+4 a +3 (3 a ab3 abb ) +6 a + 6 ab ) f ( b )

( ba )

(8 b 28 ab8 a2 +12 a2 +24 ab+ 12b 224 ab ) f a+ b


+

( 2 ) =

( ba )2
2

ba 4 b + 4 ab+ 4 a 3 a 9 ab3 ab9 b +6 ab+6 b


f ( a )+
6
( ba )2
2

+ 4 b 2 +4 ab+ 4 a2 9 a23 ab9 ab3 b2 + 6 a2 +6 ab ( )


f b +
( ba )2

[
[

( )]

4 a 8 ab+ 4 b
a+b
f
=
2
2
( ba )

( )]

ba a22 ab+ b2
a22 ab+ b2
a22 ab+b 2 a+b
f
(
a
)
+
f
(
b
)
+
4

f
=
6
2
( ba )2
( ba )2
( ba )2

( )]

2
( ba )2
( ba )2 a+ b
ba ( ba )
(
)
(
)

f a+
f b +4
f
=
6 ( ba )2
2
( ba )2
( ba )2

( ))

ba
a+ b
f ( a ) + f ( b ) +4 f
. td .
6
2

( a+2 b ) =

You might also like