Paper-26-20-2009. 100KB Jun 04 2011 12:03:13 AM

ACTA UNIVERSITATIS APULENSIS

No 20/2009

A CERTAIN CLASS OF QUADRATURES WITH HAT FUNCTION
AS A WEIGHT FUNCTION

Zlatko Udovičić

Abstract. We consider the quadrature rules of “practical type” (with five
knots) for approximately computation of the integral
Z

1

−1

(1 − |x|) f (x)dx.

We proved that maximal algebraic degree of exactness for this type of formulas is
equal to five. At the end we gave numerical result.

2000 Mathematics Subject Classification: 65D30.
1. Introduction
Central role in the process of construction of the continuous, piecewise linear
approximation of the given function f (·) plays the so called hat function. Hat
function is defined in the following way:

1 − |x|, x ∈ [−1, 1],
h(x) =
0,
otherwise.
Thereat, the problem of calculation of the integral
Z 1
h(x)f (x)dx.
−1

is unavoidable. In this paper we are investigating a certain class of quadratures
(the so called quadratures of “practical type”) for approximate computation of the
previous integral. The paper was motivated by results recently published in [1]
and [2], where the same class of quadratures was considered, but without weight
function.


251

Z. Udovičić - A certain class of quadratures with hat function as a weight function

We say that quadrature formula
Z 1
5
X
h(x)f (x)dx =
Ai f (xi ) + R[f ]
−1

(1)

i=1

is of “practical type” if the following conditions hold:

1. coefficients Ak , 1 ≤ k ≤ 5 are symmetric, i.e. A1 = A5 and A2 = A4 .

2. nodes xk , 1 ≤ k ≤ 5 are symmetric and rational numbers from the interval
[−1, 1], i.e. x1 = −r1 , x2 = −r2 , x3 = 0, x4 = r2 and x5 = r1 , for some
r1 , r2 ∈ (0, 1] ∩ Q, r2 < r1 (as usuall, Q denotes the set of rational numbers).
Hence, quadratures of “practical type” have the following form:
Z 1
h(x)f (x)dx = A(f (−r1 ) + f (r1 )) +
−1

B(f (−r2 ) + f (r2 )) + Cf (0) + R[f ],

(2)

for some r1 , r2 ∈ (0, 1] ∩ Q, r2 < r1 .
Quadrature rule (1) has algebraic degree of exactness equal to m, m ∈ N, if and
only if R[p] = 0 whenever p(·) is a polynomial of degree not greater than m and
there exists the polynomial q(·), of degree m + 1, such that R[q] 6= 0. Our aim
is construction of the quadrature rules of “practical type” with maximal algebraic
degree of exactness.
We will finish this section with some well known facts from the theory of numerical integration.
Lemma 1 Quadrature rule (1) (i.e. (2)) has algebraic degree of exactness equal to

m, m ∈ N if and only if R[xk ] = 0 for all k ∈ {0, 1, . . . , m − 1}.
Lemma 2 Quadrature rule (2) is exact for every odd function f (·) (i.e. R[f ] = 0
for every odd function f (·)).
From the previous lemmas follows that algebraic degree of exactness of the formula (2) have to be odd.
Finally, with the choice
s

350 ± 35518
x1245 = ±
, x3 = 0
798
(expressions for the coefficients Ak , 1 ≤ k ≤ 5, are much more complicated, so we
omit them here) formula (1) attains maximal algebraic degree of exactness (which is
equal to nine), but this formula obviously is not of “practical type”. Hence, algebraic
degree of exactness of the formula (2) can not be greater than seven.
252

Z. Udovičić - A certain class of quadratures with hat function as a weight function

2.Main result

Let us determine the coefficients A, B and C such that formula (2) has maximal
algebraic degree of exactness.
From the condition that formula is exact for f (x) = 1 (i.e. exact for any polynomial of zero degree) simply follows
C = 1 − 2(A + B).
Then formula (2) becomes
Z 1
h(x)f (x)dx = A (f (−r1 ) − 2f (0) + f (r1 )) +
−1

B (f (−r2 ) − 2f (0) + f (r2 )) +
f (0) + R[f ]

(3)

and in accordance with the previous, this formula has algebraic degree of exactness
equal to one. Furthermore, conditions that the last formula is exact for f (x) = x2
and f (x) = x4 give the following system of linear equations
2r12 A + 2r22 B =
2r14 A + 2r24 B =


1
6
1
.
15

which has the solution
A=

2 − 5r12
2 − 5r22
and B =
.
2
2
2
60r1 (r1 − r2 )
60r22 (r22 − r12 )

(4)


Hence, with this choice of the coefficients A and B formula (3) has algebraic
degree of exactness equal to five. Therein (in formula (3))
R[x6 ] =

1
2r2 − 5r12 r22 + 2r22
− 1
.
28
30

It is natural to ask is it possible to choose rational nodes r1 and r2 such that
formula (3) has algebraic degree of exactness equal to six, i.e. seven. Negative
answer to this question gives the following lemma.
Lemma 3 There is no numbers r1 , r2 ∈ (0, 1] ∩ Q such that
2r12 − 5r12 r22 + 2r22
1
= .
30

28
253

(5)

Z. Udovičić - A certain class of quadratures with hat function as a weight function

Proof: Let us assume contrary, i.e. that r1 = ab and r2 = dc , for some a, b, c, d ∈ N
such that (a, b) = 1 and (c, d) = 1. Putting this in equality (5), after simplification,
gives
14(2a2 d2 − 5a2 c2 + 2b2 c2 ) = 15b2 d2 ,
(6)
from which follows that b2 d2 ≡ 0(mod 14), i.e. bd ≡ 0(mod 14). There are four cases
which can occur.

The case b ≡ 0(mod 14). Putting b = 14k for some k ∈ N, after simplification,
equality (6) becomes
a2 (2d2 − 5c2 ) = 14k 2 (15d2 − 28c2 ).
Since (a, b) = 1, it has to be 2d2 − 5c2 ≡ 0(mod 14), so it also has to be
2d2 − 5c2 ≡ 0(mod 7). Furthermore, because of 2d2 − 5c2 = 7d2 − 5(c2 + d2 ),

it also has to be c2 + d2 ≡ 0(mod 7), and direct checking verify that the last
relation is impossible unless c ≡ 0(mod 7) and d ≡ 0(mod 7), which together
with an assumption (c, d) = 1. gives the contradiction.
The case b ≡ 0(mod 7) ∧ d ≡ 0(mod 2). Putting b = 7k1 and d = 2k2 for some
k1 , k2 ∈ N, after simplification, equality (6) becomes
5a2 c2 = 2(4a2 k22 − 105k12 k22 + 49c2 k12 ),
and from this follows that it has to be a ≡ 0(mod 2) (it can not be c ≡ 0(mod 2)
because of d ≡ 0(mod 2)). Furthermore, putting a = 2l for some l ∈ N the last
equality boecomes
2l2 (5c2 − 8k22 ) = 7(7k12 c2 − 15k12 k22 ).
It can not be l ≡ 0(mod 7) (because of b ≡ 0(mod 7), a = 2l and (a, b) = 1), so
it has to be 5c2 − 8k22 ≡ 0(mod 7). Direct checking verify that the last relation
is impossible unless c ≡ 0(mod 7) and k2 ≡ 0(mod 7). This fact, together with
d = 2k2 and (c, d) = 1 gives the contradiction.
The cases b ≡ 0(mod 2) ∧ d ≡ 0(mod 7) and d ≡ 0(mod 14), because of symmetry of
the relation (6) can be proved analogue. This completes the proof. ◮
Let us estimate the error of the formula (3), under assumption that the coefficients A and B are given by the equalities (4). Let H5 (·) be Hermite’s interpolating
polynomial which interpolates the function f (·) through the points ±r1 , ±r2 and 0,
where the node 0 has multiplicity two. Then (see for example [3], p. 55),
f (x) − H5 (x) =


f (vi) (ξ(x)) 2 2
x (x − r12 )(x2 − r22 ),
6!
254

Z. Udovičić - A certain class of quadratures with hat function as a weight function

and the error of the formula (3) is given by
Z 1
f (vi) (ξ(x)) 2 2
h(x)
R[f ] =
x (x − r12 )(x2 − r22 )dx
6!
−1
1 (vi)
=
f (η)(η 2 − r12 )(η 2 − r22 ),
6 · 6!


for some η ∈ [−1, 1], assuming f (·) ∈ C 6 [−1, 1]. Let

Φ(η) = (η 2 − r12 )(η 2 − r22 ).
It is easy to check that
r

)

r12 + r22

max |Φ(η)| = max |Φ(0)| , Φ(
) , |Φ(1)|


2
η∈[−1,1]


2
2 2
2
2
2 2 (r1 − r2 )
, (1 − r1 )(1 − r2 ) ,
= max r1 r2 ,
4
(

so the error of the formula (3) can be estimated in the following way


2
2 2
M6
2 2 (r1 − r2 )
2
2
|R[f ]| ≤
max r1 r2 ,
, (1 − r1 )(1 − r2 ) ,
6 · 6!
4


where M6 = maxx∈[−1,1] f (vi) (x) .

(7)

3.Numerical result

Estimation (7) naturally imposes the following problem


2
2 2
2
2
2 2 (r1 − r2 )
, (1 − r1 )(1 − r2 ) → min .,
F (r1 , r2 ) = max r1 r2 ,
4

(8)

where r1 , r2 ∈ (0, 1] ∩ Q, r2 < r1 . It is obvious that, for fixed r1 ∈ (0, 1] ∩ Q, the
function F (·, ·) attains its minimum in one of the intersection points among three
(r2 −r2 )2
curves r12 r22 , 1 4 2 and (1 − r12 )(1 − r22 ).

(r2 −r2 )2
1. Curves r12 r22 and 1 4 2 (r1 is fixed) intersect each other at r2 = ±(1 ± 2)r1 ,
and since r2 ∈
/ Q we will not consider this case.
(r2 −r2 )2

2. Similarly, curves 1 4 2 and (1 − r12 )(1 − r22 ) (r1 is fixed) intersect each other
q

/ Q we will not
at r2 = ± 3r12 − 2 ± 2 2(r12 − 1), and again because of r2 ∈
consider this case.
255

Z. Udovičić - A certain class of quadratures with hat function as a weight function
3. Finally, curves
r12 r22 and (1 − r12 )(1 − r22 ) (r1 is still fixed) intersect each other
p
at r2 = 1 − r12 , and we will look for the nodes r1 and r2 among “rational
points” from the unit circle.
In the following table we give some admissible values of the nodes r1 and r2 for
which the function F (·, ·) attains its local minimums. The corresponding rational
numbers are round off to the six decimal places.
r1

r2

F (r1 , r2 )

4
= 0.8
5

3
= 0.6
5

0.230400

21
= 0.724138
29

20
= 0.689655
29

0.249406

55
= 0.753425
73

48
= 0.657534
73

0.245424

72
= 0.742268
97

65
= 0.670103
97

0.247403

377
= 0.746535
505

336
= 0.665347
505

0.246715

987
= 0.744906
1325

884
= 0.667170
1325

0.246988

1292
= 0.745528
1733

1155
= 0.666474
1733

0.246885

6765
= 0.745290
9077

6052
= 0.666740
9077

0.246924

17711
= 0.745381
23761

15840
= 0.666639
23761

0.246909

23184
= 0.745346
31105

20737
= 0.666677
31105

0.246915

At the end, let us say that, by using any of the given choices for the nodes r1 and
r2 , the error (7) can be estimated in the following way
|R[f ]| ≤ 0.6 · 10−4 · M6 .
256

Z. Udovičić - A certain class of quadratures with hat function as a weight function

References
[1] Constantinescu, E., A certain class of quadratures, Acta Univ. Apulensis
Math. Inform., No. 7, (2004), 119-116.
[2] Constantinescu, E., A certain class of quadratures, Gen. Math. 10, No. 1-2
(2002), 75-84.
[3] Milovanović G., Numerička analiza II deo, Naučna knjiga, Beograd, 1998 (in
Serbian).
Zlatko Udovičić
Faculty of Sciences, Department of Mathematics
University of Sarajevo
Zmaja od Bosne 33-35, 71000 Sarajevo, Bosnia and Herzegovina
email: [email protected]

257

Dokumen yang terkait

AN ALIS IS YU RID IS PUT USAN BE B AS DAL AM P E RKAR A TIND AK P IDA NA P E NY E RTA AN M E L AK U K A N P R AK T IK K E DO K T E RA N YA NG M E N G A K IB ATK AN M ATINYA P AS IE N ( PUT USA N N O MOR: 9 0/PID.B /2011/ PN.MD O)

0 82 16

ANALISIS FAKTOR YANGMEMPENGARUHI FERTILITAS PASANGAN USIA SUBUR DI DESA SEMBORO KECAMATAN SEMBORO KABUPATEN JEMBER TAHUN 2011

2 53 20

EFEKTIVITAS PENDIDIKAN KESEHATAN TENTANG PERTOLONGAN PERTAMA PADA KECELAKAAN (P3K) TERHADAP SIKAP MASYARAKAT DALAM PENANGANAN KORBAN KECELAKAAN LALU LINTAS (Studi Di Wilayah RT 05 RW 04 Kelurahan Sukun Kota Malang)

45 393 31

FAKTOR – FAKTOR YANG MEMPENGARUHI PENYERAPAN TENAGA KERJA INDUSTRI PENGOLAHAN BESAR DAN MENENGAH PADA TINGKAT KABUPATEN / KOTA DI JAWA TIMUR TAHUN 2006 - 2011

1 35 26

A DISCOURSE ANALYSIS ON “SPA: REGAIN BALANCE OF YOUR INNER AND OUTER BEAUTY” IN THE JAKARTA POST ON 4 MARCH 2011

9 161 13

Pengaruh kualitas aktiva produktif dan non performing financing terhadap return on asset perbankan syariah (Studi Pada 3 Bank Umum Syariah Tahun 2011 – 2014)

6 101 0

Pengaruh pemahaman fiqh muamalat mahasiswa terhadap keputusan membeli produk fashion palsu (study pada mahasiswa angkatan 2011 & 2012 prodi muamalat fakultas syariah dan hukum UIN Syarif Hidayatullah Jakarta)

0 22 0

Pendidikan Agama Islam Untuk Kelas 3 SD Kelas 3 Suyanto Suyoto 2011

4 108 178

ANALISIS NOTA KESEPAHAMAN ANTARA BANK INDONESIA, POLRI, DAN KEJAKSAAN REPUBLIK INDONESIA TAHUN 2011 SEBAGAI MEKANISME PERCEPATAN PENANGANAN TINDAK PIDANA PERBANKAN KHUSUSNYA BANK INDONESIA SEBAGAI PIHAK PELAPOR

1 17 40

KOORDINASI OTORITAS JASA KEUANGAN (OJK) DENGAN LEMBAGA PENJAMIN SIMPANAN (LPS) DAN BANK INDONESIA (BI) DALAM UPAYA PENANGANAN BANK BERMASALAH BERDASARKAN UNDANG-UNDANG RI NOMOR 21 TAHUN 2011 TENTANG OTORITAS JASA KEUANGAN

3 32 52