American Journal of Computational Mathematics, 2012, 2, 217-222 http://dx.doi.org/10.4236/ajcm.2012.23028 Published Online September 2012 (http://www.SciRP.org/journal/ajcm)
A Cubic Spline Method for Solving a Unilateral Obstacle Problem El Bekkey Mermri1, Abdelhafid Serghini2, Abdelmajid El Hajaji3*, Khalid Hilal3 1
Department of Mathematics and Computer Science, Faculty of Science, University Mohammed Premier, Oujda, Morocco 2 MATSI Laboratory, ESTO, University Mohammed Premier, Oujda, Morocco 3 Department of Mathematics, Faculty of Science and Technology, University Sultan Moulay Slimane, Beni-Mellal, Morocco Email: *
[email protected] Received May 4, 2012; revised June 13, 2012; accepted June 23, 2012
ABSTRACT This paper, we develop a numerical method for solving a unilateral obstacle problem by using the cubic spline collocation method and the generalized Newton method. This method converges quadratically if a relation-ship between the penalty parameter and the discretization parameter h is satisfied. An error estimate between the penalty solution and the discret penalty solution is provided. To validate the theoretical results, some numerical tests on one dimensional obstacle problem are presented. Keywords: Obstacle Problem; Spline Collocation; Nonsmooth Equation; Generalized Newton Method
1. Introduction Let be a bounded open domain in R n with smooth boundary , and let be an element of H 1 with 0 on . Set
K v H 01 v a.e. in .
We consider the following variational inequality problem: Find u K such that u v u dx f v u dx 0, v K ,
(1)
where f is an element of L2 . This problem is called a unilateral obstacle problem. It is well known that problem (1) admits a unique solution u, and if L2 , then u is an element of H 2 (see [1,2]). There are several alternative solution methods of the obstacle problem; see, e.g., [1,3-5]. Numerical solution by penalty methods have been considered, e.g. by [4,6]. In this paper we develop a numerical method for solving a one dimentional obstacle problem by using the cubic spline collocation method and the generalized Newton method. First, problem (1) is approximated by a sequence of nonlinear equation problems by using the penalty method given in [2,7]. Then we apply the spline collocation method to approximate the solution of a boundary value *
Corresponding author.
Copyright © 2012 SciRes.
problem of second order. The discret problem is formulated as to find the cubic spline coefficients of a nonsmooth system Y Y , where : R m R m . In order to solve the nonsmooth equation we apply the generalized Newton method (see [8-10], for instance). We prove that the cubic spline collocation method converges quadratically provided that a property coupling the penalty parameter and the discretization parameter h is satisfied. Numerical methods to approximate the solution of boundary value problems have been considered by several authors. We only mention the papers [11,12] and references therein, which use the spline collocation method for solving the boundary value problems. The present paper is organized as follows. In Section 2, we present the penalty method to approximate the obstacle problem by a sequence of second order boundary value problems. In Section 3 we construct a cubic spline to approximate the solution of the boundary problem. Section 4 is devoted to the presentation of the generalized Newton method. In Section 5 we show the convergence of the cubic spline to the solution of the boundary problem and provide an error estimate. Finally, some numerical results are given in Section 6 to validate our methodology.
2. Penalty Problem Let be an element of H 1 with 0 on . AJCM
218
EL B. MERMRI ET AL.
Assume that is an element of L2 , then the solution u of problem (1) is an element of H 2 and can be characterized as (see [1], for instance): a.e. on , u f 0 u f u 0 a.e. on , a.e. on , u 0 u 0 on
(2)
in (3) on .
where is a sequence of Lipschitz functions which tend to the function defined by
1 0
t
t0 t 0,
t 0, 0 t , t .
(5)
We have the interesting properties. Theorem 1 ([2,7]) Let u denote the solution of the variational inequality problem (1) and u , > 0 , denotes the solution of the penalty problem (3) with defined by relation (5). Then u is a nondecreasing sequence and u x u x u x , x , for > 0.
3. Cubic Spline Collocation Method In this section we construct a cubic spline which approximates the solution u of problem (3), with is the interval I a, b R and is the function given by (5).
Cubic Spline Solution Let
a x3 x2 x1 x0 x1 xn 1 xn xn 1 xn 2 xn 3 b
be a subdivision of the interval I. Without loss of generba ality, we put xi a ih , where 0 i n and h . n Denote by S4 I , the space of piecewise polynomials Copyright © 2012 SciRes.
(6)
then problem (3) becomes u J ,u on I , u a u b 0.
(7)
It is easy to see that J is a nonlinear continuous function on u ; and for any two functions u and v , J satisfies the following Lipschitz condition: J x, u x J x, v x
(4)
almost everywhere on R , as goes to zero. Assume that the function t , < t < , is uniformly Lipschitz, non increasing and satisfy 0 t 1 . Then problem (3) admits a unique solution (see [2] p. 107). We now specify the function 1, t 1 t , 0,
J x, u x max x f x , 0 (u x x ) f x ,
The penalty problem is given by the following boundary value problem (see [10], p. 107, [12]): u max f , 0 u f u 0
of degree 3 over the subdivision and of class C 2 everywhere on a, b . Let Bi , i 3, , n 1 , be the B-splines of degree 3 associated with . These Bsplines are positives and form a basis of the space S4 I , . If we put
(8)
L u x v x a.e. on x I ,
where 1
1
f max x f x . xI Now, we define the following interpolation cubic spline of the solution u of the nonlinear second order boundary value problem (7). Proposition 2 Let u be the solution of problem (7). Then, there exists a unique cubic spline interpolant S S4 I , of u which satisfies: L
S ti u ti , i 0, , n 2,
where t0 x0 , ti
xi 1 xi , i 1, , n , tn1 xn 1 2
and tn 2 xn . Proof Using the Schoenberg-Whitney theorem (see [13]), it is easy to see that there exits a unique cubic spline which interpolates u at the points ti , i 0, , n 2 . n 1 If we put S i 3ci , Bi , then by using the boundary conditions of problem (7) we obtain c3, S a u a 0 , and c
n 1, n 2
S b u b 0
Hence S ci , Bi . 2 Furthermore,isince the interpolation with splines of degree d gives uniform norm errors of order O h d 1 for the interpolant, and of order O h d 1 r for the rth derivative of the interpolant (see [13], for instance), then for any u C 4 a, b we have
S ti J ti , u O h 2 , i 1, , n 1.
(9)
The cubic spline collocation method, that we present AJCM
219
EL B. MERMRI ET AL.
in this paper, constructs numerically a cubic spline n 1 S i 3 ci , Bi which satisfies the Equation (7) at the points ti , i 0, , n 2 . It is easy to see that
c3, cn1, 0, and the coefficients ci , , i 2, , n 2 , satisfy the following nonlinear system with n + 1 equations: n2 ci , Bi t j J t j , ci , Bi t j , i 2 i 2 j 1, , n 1. n2
(10)
Relations (9) and (10) can be written in the matrix form, respectively, as follows ˆ = F Eˆ , AC (11) ˆAC = F , C
where F J t1 , u t1 , , J tn 1 , u tn 1 , T
FC [ J t1 , S t1 , , J tn1 , S tn 1 ]T ,
and Eˆ is a vector where each component is of order 1 O h 2 . It is well known that Aˆ 2 A , where A is a h matrix independent of h given as follows:
15 4 3 4 0 A 0 0 0 0
1 4 3 4 1 2
1 0 2 1 1 0 2 2 1 1 1 2 2 2
0
1 2 1 2
1 2 0
0
0
0
1 2 1 2 1 2 1
1 2 3 4 1 4 5 2
Lemma 3 (de Boor [13]) Let S Sk 1 such that S 0 on x p 1 , x p xq , xq 1 where p < q . If S admits r zeros in x p , xq then r p q k 1 .
Proposition 4 The matrix A is invertible. T Proof Let D d1 , , d n 1 be a vector of R n 1
such that AD 0 . If we put S x j 2 d j B j , then n2
we have S a S b 0 and S ti 0 for any i 1, , n 1 . Since S S 4 I , then S S 2 I , . If we assume that S 0 in x0 , xn , then using the above lemma and the fact that S has n 1 zeros in x0 , xn , we conclude that n 1 n 2 , which is impossible. Therefore S 0 for each x I . This means that the function S is a piecewise linear polynomial in I. Since S a S b 0 , then we obtain S x 0 for any x I . Consequently D 0 and the matrix A is invertible. Proposition 5 Assume that the penalty parameter and the discretization parameter h satisfy the following relation: h 2 f A1 . (13)
Then there exists a unique cubic spline which approximates the exact solution u of problem (7). Proof From relation (12), we have C h 2 A1 FC . Let : R n 1 R n 1 be a function defined by
Y h 2 A1 FY .
0 0 0 . 0 3 4 15 4 3 2
To prove the existence of cubic spline collocation it suffices to prove that admits a unique fixed point. Indeed, let Y1 and Y2 be two vectors of R n1 . Then we have
Y1 Y2 h 2 A FY1 FY2
f
FY1 FY2
with E is a vector where each one of its components is of order O h 4 . The results of this work are basically based on the invertibility of the matrix A. Then, in order to prove that A is invertible we give the flowing lemma. Copyright © 2012 SciRes.
(15)
,
. Then we obtain L Y1 Y2
.
From relation (15), we conclude that (12)
L SY1 ti SY2 ti L Y1 Y2
1
.
n2
J ti , SY1 ti J ti , SY2 ti
where L
j 2 B j 1 , we
Using relation (8) and the fact that get
Then, relation (11) becomes AC h 2 F E , AC h 2 FC ,
(14)
Y1 Y2 L h 2 A1
Y1 Y2
.
Then we have
Y1 Y2 k Y1 Y2
,
With k L h 2 A1 .
AJCM
220
EL B. MERMRI ET AL.
by relation (13). Hence the function admits a unique fixed point. In order to calculate the coefficients of the cubic spline collocation given by the nonsmooth system
C C ,
(16)
we propose the generalized Newton method defined by
1 C( k 1) = C( k ) I n 1 Vk C( k ) C( k ) ,
(17)
where I n1 is the unit matrix of order n 1 and Vk is
the generalized Jacobian of the function C C , (see [8-10], for instance).
Let F : R m R m be a function. Consider the equation The Newton method assumes that F is Fréchet differentiable, and is defined by xk 1 xk F xk F xk , 1
(18)
where F xk is the inverse of the Jacobian of the function F. However, in nonsmooth case F xk may not exists. The generalized Jacobian of the function F may play the role of F in the relation (18). Rademacher's theorem states that a locally Lipschitz function is almost everywhere differentiable (see [14], for instance). Assume that F is a locally Lipschitz function and let DF be the set where F is differentiable. We denote 1
B F x lim F xi , xi DF . xi x
F x conv B F x .
xk 1 xk V F xk , 1 k
Proof From (12) and Lemma 4, we have
A
C C h 2 A1 F FC
1
E .
Since E is of order O h 4 , then there exists a constant K1 such that E C C
h 2 A1
k1h 4 . Hence we have
K1 A1
F FC
h 4 . (22)
On the other hand we have
J ti , u ti J ti , S ti
L u ti S ti
Since S is the cubic spline interpolation of u , then there exists a constant K 2 such that
(19)
For nonsmooth equations with a locally Lipschitz function F, the generalized Newton method is defined by
u S
Vh,
exists for any h R . The class of semismooth functions includes, obviously smooth functions, convex func-
K 2 h 4 u
(23)
.
Using the fact that n2
Bj
S S C C
(20)
where Vk is an element of F xk . If the function F is semismooth and BD-regular at x, then the sequence xk in (20) superlinearly converges to a solution x (see [8,9, 16,17]). A Function F is said to be BD-regular at a point x if all the elements of B F x are nonsingular, and it is said to be semismooth at x if it is locally Lipshitz at x and the limit V F x th , hh ,t 0
then the cubic spline S converges to the solution u . is of order Moreover the error estimate u S
L u ti S ti L S ti S ti .
The generalized Jacobian of F at x R m , F x , in the sense of Clarke [15] is the convex hull of B F x :
Copyright © 2012 SciRes.
Theorem 6 If we assume that the penalty parameter and the discretization parameter h satisfy the following relation 2h 2 f A1 . (21)
O h2 .
F x 0.
m
5. Convergence of the Method
4. Generalized Newton Method
lim
tions, the piecewise-smooth functions, and others (see [10,18], for instance). Since the function J defined by (6) is a Lipshitz and piecewise smooth function on u , then the function : R m R m given by (14) is also a Lipshitz and piecewise smooth function on R m . Hence we may apply the generalized Newton method to solve the problem (16).
C C
L K 2 h 4 u4
j 2
(24)
,
then, we obtain F FC L C C
.
By using relation (22) and assumption (21) it is easy to see that C C
h 2 A1
K 2 L h 2 u(4) L
K L h
1 L h 2 A1
2
K1
4
u(4)
K1h 2
(25)
h2
AJCM
221
EL B. MERMRI ET AL.
We have u S
u S
S S
Table 1. Results for h =
.
Then from relations (23), (24) and (25), we deduce is of order O h 2 . Hence the proof is that u S
complete. Remark 7 Theorem 6 provides a relation coupling the penalty parameter and the discretization parameter h, which guarantees the quadratic convergence of the cubic spline collocation S to the solution u of the penalty problem.
u S
Number of iterations
In this section we give numerical experiments in order to validate the theoretical results presented in this paper. We report numerical results for solving a one dimensional obstacle problem by using the cubic spline method to approximate the solution of the penalty problem (7), and the generalized Newton method (20) to determine the coefficients of the cubic spline collocation. Consider the obstacle problem (1) with the following data: 0, 2 , 0 and on 0,1 , on 1, 2 .
1 f 1
The true solution u x of this problem is given by
1 2 2 x 2 2 x 1 u x x2 2x 1 2 0
Number of iterations
u S
Number of iterations
5e−4
2e−4 = h
4.7e−3
7.61e−4
7.12e−4
6.84e−4
5
7
9
10
if x 2, 2 .
u S
Number of iterations
1 . 50
e−2
e−3
e−6
2e−5 = h
4.5e−3
4.94e−4
1.75e−4
1.59e−4
6
9
15
22
1 . 100
e−3
e−4
e−5
5e−6 = h
4.87e−4
4.41e−5
4.12e−6
2.74e−6
9
16
31
43
Table 4. Results for h =
e−3
Table 3. Results for h =
if x 1, 2 ,
results show the convergence of the discret penalty solution to the solution of the original obstacle problem as Copyright © 2012 SciRes.
u S
if x 0,1 ,
As a stopping criteria for the generalized Newton’s iterations, we have considered that the absolute value of the difference between the input coefficients and the output coefficients is less than 109 . Tables 1-4 show, for different values of the discretization parameter h, the error between the cubic spline collocation S and the true solution u. We note the convergence of the solution S to the function u depends on the discretization parameter h and the penalty parameter . Theorem 6 implies that for a fixed h, this convergence is guaranteed only if there exists h 0 such that h . Some experimental values of h are given in Tables 1-4. Theorems 1 and 6 imply that we have the error estimate between the exact solution and the discret penalty solution is given by u S kh 2 . The obtained
e−2
Table 2. Results for h =
6. Numerical Examples
1 . 20
1 . 200
e−3
e−4
e−5
2e−6 = h
4.86e−4
4.92e−5
5.25e−6
8.26e−7
9
18
35
56
the parameters h and get smaller provided they satisfy the relation (21). Moreover, the numerical error estimates behave like kh 2 which confirms what we were expecting.
7. Concluding Remarks In this paper, we have consider an approximation of a unilateral obstacle problem by a sequence of penalty problems, which are nonsmooth equation problems, presented in [2,7]. Then we have developed a numerical method for solving each nonsmooth equation, based on a cubic collocation spline method and the generalized Newton method. We have shown the convergence of the method provided that the penalty and discret parameters satisfy the relation (21). Moreover we have provided an error estimate of order O h 2 with respect to the norm
AJCM
222
EL B. MERMRI ET AL.
. The obtained numerical results show the convergence of the approximate penalty solutions to the exact one and confirm the error estimates provided in this paper.
REFERENCES [1]
R. Glowinski, J. L. Lions and R. Trémolières, “Numerical Analysis of Variational Inequalities,” 8th Edition, NorthHolland, Amsterdam, 1981.
[2]
D. Kinderlehrer and G. Stampacchia, “An Introduction to Variational Inequalities and Their Applications,” Academic Press, Inc., New York, 1980.
[3]
R. P. Agarwal and C. S. Ryoo, “Numerical Verifications of Solutions for Obstacle Problems,” Computing Supplementa, Vol. 15, 2001, pp. 9-19.
[4]
R. Glowinski, Y.A. Kuznetsov and T-W. Pan, “A Penalty/Newton/Conjugate Gradient Method for the Solution of Obstacle Problems,” Comptes Rendus Mathematique, Vol. 336, No. 5, 2003, pp. 435-440.
[5]
H. Huang, W. Han and J. Zhou, “The Regularization Method for an Obstacle Problem,” Numerische Mathematik, Vol. 69, No. 2, 1994, pp. 155-166. doi:10.1007/s002110050086
[6]
R. Scholz, “Numerical Solution of the Obstacle Problem by the Penalty Method,” Computing, Vol. 32, No. 4, 1984, pp. 297-306. doi:10.1007/BF02243774
[7]
[8]
[9]
H. Lewy and G. Stampacchia, “On the Regularity of the Solution of the Variational Inequalities,” Communications on Pure and Applied Mathematics, Vol. 22, No. 2, 1969, pp. 153-188. doi:10.1002/cpa.3160220203 X. Chen, “A Verification Method for Solutions of Nonsmooth Equations,” Computing, Vol. 58, No. 3, 1997, pp. 281-294. doi:10.1007/BF02684394 X. Chen, Z. Nashed and L. Qi, “Smooting Methods and
Copyright © 2012 SciRes.
Semismooth Methods for Nondifferentiable Operator Equations,” SIAM Journal on Numerical Analysis, Vol. 38, No. 4, 2000, pp. 1200-1216. doi:10.1137/S0036142999356719 [10] M.J. Śmietański, “A Generalizd Jacobian Based Newton Method for Semismooth Block-Triangular System of Equations,” Journal of Computational and Applied Mathematics, Vol. 205, No. 1, 2007, pp. 305-313. doi:10.1016/j.cam.2006.05.003 [11] H. N. Çaglar, S. H. Çaglar and E. H. Twizell, “The Numerical Solution of Fifth-Order Boundary Value Problems with Sixth-Degree B-Spline Functions,” Applied Mathematics Letters, Vol. 12, No. 5, 1999, pp. 25-30. doi:10.1016/S0893-9659(99)00052-X [12] A. Lamnii, H. Mraoui, D. Sbibih, A. Tijini and A. Zidna, “Sextic Spline Collocation Methods for Nonlinear FifthOrder Boundary Value Problems,” International Journal of Computer Mathematics, Vol. 88, No. 10, 2011, pp. 2072-2088. doi:10.1080/00207160.2010.519384 [13] C. de Boor, “A Practical Guide to Splines,” Springer Verlag, New York, 1994. [14] R. R. Phelps, “Convex Functions, Monotone Operators and Differentiability (Lecture Notes in Mathematics),” Springer, New York 1993. [15] F. H. Clarke, “Optimization and Nonsmooth Analysis,” Wiley, New York, 1993. [16] L. Qi, “Convergence Analysis of Some Algorithms for Solving Some Nonsmooth Equations,” Mathematics of Operations Research, Vol. 18, No. 1, 1993, pp. 227-244. doi:10.1287/moor.18.1.227 [17] L. Qi and J. Sun, “A Nonsmooth Version of the Newthon’s Method,” Mathematical Programming, Vol. 58, No. 1-3, 1993, pp. 353-367. doi:10.1007/BF01581275 [18] J. S. Pang and L. Qi, “Nonsmooth Functions: Motivation and Algorithms,” SIAM Journal on Optimization, Vol. 3, No. 3, 1993, pp. 443-465. doi:10.1137/0803021
AJCM