Direct method for variational problems by using hybrid of block-pulse and Bernoulli polynomials

Similar documents
Numerical solution of delay differential equations via operational matrices of hybrid of block-pulse functions and Bernstein polynomials

SOLUTION FOR A CLASSICAL PROBLEM IN THE CALCULUS OF VARIATIONS VIA RATIONALIZED HAAR FUNCTIONS

Journal of Computational and Applied Mathematics

Using Hybrid Functions to solve a Coupled System of Fredholm Integro-Differential Equations of the Second Kind

Research Article The Numerical Solution of Problems in Calculus of Variation Using B-Spline Collocation Method

SOLUTION OF NONLINEAR VOLTERRA-HAMMERSTEIN INTEGRAL EQUATIONS VIA SINGLE-TERM WALSH SERIES METHOD

The Series Solution of Problems in the Calculus of Variations via the Homotopy Analysis Method

State Analysis and Optimal Control of Linear. Time-Invariant Scaled Systems Using. the Chebyshev Wavelets

THE USE OF ADOMIAN DECOMPOSITION METHOD FOR SOLVING PROBLEMS IN CALCULUS OF VARIATIONS

Solving Linear Time Varying Systems by Orthonormal Bernstein Polynomials

Properties of BPFs for Approximating the Solution of Nonlinear Fredholm Integro Differential Equation

Solving Nonlinear Two-Dimensional Volterra Integral Equations of the First-kind Using the Bivariate Shifted Legendre Functions

Application of fractional-order Bernoulli functions for solving fractional Riccati differential equation

Generalized B-spline functions method for solving optimal control problems

NUMERICAL METHOD FOR THE MIXED VOLTERRA-FREDHOLM INTEGRAL EQUATIONS USING HYBRID LEGENDRE FUNCTIONS

Optimal Control of Nonlinear Systems Using the Shifted Legendre Polynomials

Direct Method for Solution Variational Problems by using Hermite Polynomials

Existence of solution and solving the integro-differential equations system by the multi-wavelet Petrov-Galerkin method

Numerical Solution of Fredholm Integro-differential Equations By Using Hybrid Function Operational Matrix of Differentiation

Kybernetika. Terms of use: Persistent URL: Institute of Information Theory and Automation AS CR, 2015

Application of the Bernstein Polynomials. for Solving the Nonlinear Fredholm. Integro-Differential Equations

The Legendre Wavelet Method for Solving Singular Integro-differential Equations

An efficient hybrid pseudo-spectral method for solving optimal control of Volterra integral systems

Hybrid Functions Approach for the Fractional Riccati Differential Equation

Operational Matrices for Solving Burgers' Equation by Using Block-Pulse Functions with Error Analysis

Application of Taylor-Padé technique for obtaining approximate solution for system of linear Fredholm integro-differential equations

Numerical solution of optimal control problems by using a new second kind Chebyshev wavelet

Bernoulli Wavelet Based Numerical Method for Solving Fredholm Integral Equations of the Second Kind

Numerical Solution of Fredholm and Volterra Integral Equations of the First Kind Using Wavelets bases

Solution of bang - bang optimal control problems by using bezier polynomials

Direct method to solve Volterra integral equation of the first kind using operational matrix with block-pulse functions

Use of Bernstein Polynomials in Numerical Solutions of Volterra Integral Equations

SOLUTION OF DIFFERENTIAL EQUATIONS BASED ON HAAR OPERATIONAL MATRIX

Semiorthogonal Quadratic B-Spline Wavelet Approximation for Integral Equations

RESEARCH ARTICLE. Spectral Method for Solving The General Form Linear Fredholm Volterra Integro Differential Equations Based on Chebyshev Polynomials

Bernstein operational matrices for solving multiterm variable order fractional differential equations

Collocation Orthonormal Berntein Polynomials method for Solving Integral Equations.

PAijpam.eu SECOND KIND CHEBYSHEV WAVELET METHOD FOR SOLVING SYSTEM OF LINEAR DIFFERENTIAL EQUATIONS

which arises when we compute the orthogonal projection of a vector y in a subspace with an orthogonal basis. Hence assume that P y = A ij = x j, x i

A Modification in Successive Approximation Method for Solving Nonlinear Volterra Hammerstein Integral Equations of the Second Kind

On Application Of Modified Gradient To Extended Conjugate Gradient Method Algorithm For Solving Optimal Control Problems

PAijpam.eu NUMERICAL SOLUTION OF WAVE EQUATION USING HAAR WAVELET Inderdeep Singh 1, Sangeeta Arora 2, Sheo Kumar 3

Guide for Ph.D. Area Examination in Applied Mathematics

A Numerical Scheme for Generalized Fractional Optimal Control Problems

Numerical Solution of Two-Dimensional Volterra Integral Equations by Spectral Galerkin Method

The Chebyshev Collection Method for Solving Fractional Order Klein-Gordon Equation

Optimisation and optimal control 1: Tutorial solutions (calculus of variations) t 3

New implicit method for analysis of problems in nonlinear structural dynamics

Numerical solution of linear time delay systems using Chebyshev-tau spectral method

A Comparison between Solving Two Dimensional Integral Equations by the Traditional Collocation Method and Radial Basis Functions

COLLOCATION METHOD FOR VOLTERRA-FREDHOLM INTEGRO-DIFFERENTIAL EQUATIONS

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

BLOCK-PULSE FUNCTIONS AND THEIR APPLICATIONS TO SOLVING SYSTEMS OF HIGHER-ORDER NONLINEAR VOLTERRA INTEGRO-DIFFERENTIAL EQUATIONS

PHYS 502 Lecture 3: Fourier Series

NUMERICAL COMPUTATION IN SCIENCE AND ENGINEERING

Memory Effects Due to Fractional Time Derivative and Integral Space in Diffusion Like Equation Via Haar Wavelets

Application of the Bernstein Polynomials for Solving Volterra Integral Equations with Convolution Kernels

NUMERICAL SOLUTION OF FRACTIONAL ORDER DIFFERENTIAL EQUATIONS USING HAAR WAVELET OPERATIONAL MATRIX

On Solving Large Algebraic. Riccati Matrix Equations

Numerical solution of system of linear integral equations via improvement of block-pulse functions

Fractional Calculus for Solving Abel s Integral Equations Using Chebyshev Polynomials

ENGINEERING MATHEMATICS I. CODE: 10 MAT 11 IA Marks: 25 Hrs/Week: 04 Exam Hrs: 03 PART-A

A numerical method for solving Linear Non-homogenous Fractional Ordinary Differential Equation

MATHEMATICS FOR ECONOMISTS. An Introductory Textbook. Third Edition. Malcolm Pemberton and Nicholas Rau. UNIVERSITY OF TORONTO PRESS Toronto Buffalo

Numerical Solutions of Volterra Integral Equations Using Galerkin method with Hermite Polynomials

INTEGRAL equations are often matched with mathematical

Decentralized control synthesis for bilinear systems using orthogonal functions

Calculus from Graphical, Numerical, and Symbolic Points of View, 2e Arnold Ostebee & Paul Zorn

A New Operational Matrix of Derivative for Orthonormal Bernstein Polynomial's

Solving a class of nonlinear two-dimensional Volterra integral equations by using two-dimensional triangular orthogonal functions.

Numerical Solution of Volterra-Fredholm Integro-Differential Equation by Block Pulse Functions and Operational Matrices

ORDINARY DIFFERENTIAL EQUATIONS

MODIFIED LAGUERRE WAVELET BASED GALERKIN METHOD FOR FRACTIONAL AND FRACTIONAL-ORDER DELAY DIFFERENTIAL EQUATIONS

Numerical Solution of Space-Time Fractional Convection-Diffusion Equations with Variable Coefficients Using Haar Wavelets

Key Words: cardinal B-spline, coefficients, moments, rectangular rule, interpolating quadratic spline, hat function, cubic B-spline.

Numerical Solutions of Volterra Integral Equations of Second kind with the help of Chebyshev Polynomials

A New Numerical Scheme for Solving Systems of Integro-Differential Equations

An Efficient Numerical Scheme for Solving Fractional Optimal Control Problems. 1 Introduction

MATHEMATICAL HANDBOOK. Formulas and Tables

Legendre Wavelets Based Approximation Method for Cauchy Problems

Lectures notes. Rheology and Fluid Dynamics

Qualification Exam: Mathematical Methods

Quarter-Sweep Gauss-Seidel Method for Solving First Order Linear Fredholm Integro-differential Equations

Applied Numerical Analysis

Approximate Solution of BVPs for 4th-Order IDEs by Using RKHS Method

A Gauss Lobatto quadrature method for solving optimal control problems

NUMERICAL SOLUTION OF DELAY DIFFERENTIAL EQUATIONS VIA HAAR WAVELETS

Application of Semiorthogonal B-Spline Wavelets for the Solutions of Linear Second Kind Fredholm Integral Equations

SHIVAJI UNIVERSITY, KOLHAPUR CBCS SYLLABUS WITH EFFECT FROM JUNE B. Sc. Part I Semester I

Volterra integral equations solved in Fredholm form using Walsh functions

Solving Integral Equations of the Second Kind by Using Wavelet Basis in the PG Method

5.8 Chebyshev Approximation

ON THE EXPONENTIAL CHEBYSHEV APPROXIMATION IN UNBOUNDED DOMAINS: A COMPARISON STUDY FOR SOLVING HIGH-ORDER ORDINARY DIFFERENTIAL EQUATIONS

BESSEL MATRIX DIFFERENTIAL EQUATIONS: EXPLICIT SOLUTIONS OF INITIAL AND TWO-POINT BOUNDARY VALUE PROBLEMS

Vectors in Function Spaces

Numerical Investigation of the Time Invariant Optimal Control of Singular Systems Using Adomian Decomposition Method

Course Outline. Date Lecture Topic Reading

Calculus of Variations

Notes 07 largely plagiarized by %khc

DEPARTMENT OF MATHEMATICS FACULTY OF ENGINERING AND TECHNOLOGY SRM UNIVERSITY

Transcription:

Direct method for variational problems by using hybrid of block-pulse and Bernoulli polynomials M Razzaghi, Y Ordokhani, N Haddadi Abstract In this paper, a numerical method for solving variational problems is presented The method is based upon hybrid functions approximation The properties of hybrid functions consisting of block-pulse functions and Bernoulli polynomials are presented The operational matrices of integration and product and the integration of the cross product of two hybrid functions of block-pulse and Bernoulli polynomials vectors are then utilized to reduce the variational problems to the solution of algebraic equations Illustrative examples are included to demonstrate the validity and applicability of the technique Mathematics Subject Classification: 33F5; 4A3; 49M3 Keywords: Hybrid; Bernoulli polynomials; block-pulse; variational; numerical solution Introduction In the large number of problems arising in analysis, mechanics, geometry, etc, it is necessary to determine the maximal and minimal of a certain functional Such Problems are called variational problems [28] The direct method of Ritz and Galerkin in solving variational problems has been of considerable concern and is well covered in many textbooks [6, 7, 8] The available sets of orthogonal functions can be divided into three classes The first class includes sets of piecewise constant basis functions (PCBF s)(eg, block-pulse, Haar, Walsh, etc) The second class consists of sets of orthogonal polynomials (eg, Chebyshev, Laguerre, Legendre, etc) The third class is the set of sine-cosine functions in the Corresponding author: razzaghi@mathmsstateedu Department of Mathematics and Statistics Mississippi State University, USA Mississippi State, MS 39762 Department of Mathematics, Alzahra University, Tehran, Iran

INTRODUCTION 2 Fourier series Orthogonal functions have been used when dealing with various problems of the dynamical systems The main advantage of using orthogonal functions is that they reduce the dynamical system problems to those of solving a system of algebraic equations The approach is based on converting the underlying differential equation into an integral equation through integration, approximating various signals involved in the equation by truncated orthogonal functions, and using the operational matrix of integration P to eliminate the integral operations Special attention has been given to applications of Walsh functions [4], Chebyshev polynomials [9], Laguerre polynomials [2], Legendre polynomials [3] and Fourier series [23] Among orthogonal polynomials, the shifted Legendre polynomials p m (t), m =,, 2,, where t, is computationally more effective [2] The Bernoulli polynomials and Taylor series are not based on orthogonal functions, nevertheless, they possess the operational matrix of integration However, since the integration of the cross product of two Taylor series vectors is given in terms of a Hilbert matrix [24], which are known to be ill-posed, the applications of Taylor series are limited For approximating an arbitrary time function the advantages of Bernoulli polynomials β m (t), m =,, 2,, M, where t, over shifted Legendre polynomials p m (t), m =,, 2,, M, are: a) the operational matrix P, in Bernoulli polynomials has less errors than P for shifted Legendre polynomials for < M < This is because for P in β m (t) we ignore the term β M+(t) while for P in p M+ m (t) we ignore the term p M+(t) ; 2(2M+) b) the Bernoulli polynomials have less terms than shifted Legendre polynomials For example β 6 (t), has 5 terms while p 6 (t), has 7 terms, and this difference will increase by increasing m Hence for approximating an arbitrary function we use less CPU time by applying Bernoulli polynomials as compared to shifted Legendre polynomials; c) the coefficient of individual terms in Bernoulli polynomials β m (t), are smaller than the coefficient of individual terms in the shifted Legendre polynomials p m (t) Since the computational errors in the product are related to the coefficients of individual terms, the computational errors are less by using Bernoulli polynomials In recent years the hybrid functions consisting of the combination of block-pulse functions with Chebyshev polynomials [3, 22, 29], Legendre polynomials [, 6, 2], or Taylor series [5, 7, 8] have been shown to give excellent results for discretization of selected problems Among these three hybrid functions, the hybrid functions of blockpulse and Legendre polynomials have shown to be computationally more effective The outline of this paper is as follows: In sections 2 we introduce properties of hybrid functions Section 3 is devoted to the problem statement In section 4 the numerical method is used to approximate the variational problems and in Section 5 we report our

2 PROPERTIES OF HYBRID FUNCTIONS 3 numerical findings and demonstrate the accuracy of the proposed numerical scheme by considering four numerical examples 2 Properties of Hybrid Functions 2 Hybrid of block-pulse and Bernoulli polynomials Hybrid functions b nm (t), n =, 2,, N, m =,,, M are defined on the interval [, t f ) as { βm ( N t b nm (t) = f t n + ), t [ n t N f, n t N f), (), otherwise, where n and m are the order of block-pulse functions and Bernoulli polynomials, respectively In Eq (), β m (t), m =,, 2, are the Bernoulli polynomials of order m, which can be defined by [5] β m (t) = m k= ( m k ) α k t m k, where α k, k =,,, m are Bernoulli numbers These numbers are a sequence of signed rational numbers which arise in the series expansion of trigonometric functions [] and can be defined by the identity The first few Bernoulli numbers are t e t = t n α n n! n= with α 2k+ =, k =, 2, 3, α =, α =, 2 α 2 =, 6 α 4 =, 3 The first few Bernoulli polynomials are β (t) =, β (t) = t 2, β 2 (t) = t 2 t + 6, β 3 (t) = t 3 3 2 t2 + 2 t These polynomials satisfy the following formula []

2 PROPERTIES OF HYBRID FUNCTIONS 4 β m () = α m, m, (2) x a β m (t)dt = β m+(x) β m+ (a), (3) m + β n (t)β m (t)dt = ( ) n m!n! (m + n)! α n+m, m, n (4) According to [4], Bernoulli polynomials, form a complete basis over the interval [,] 22 Function approximation Suppose that H = L 2 [, ] and {b (t), b 2 (t),, b NM (t)} H be the set of hybrid of block-pulse and Bernoulli polynomials and Y = span{b (t), b 2 (t),, b N (t), b (t), b 2 (t),, b N (t),, b M (t), b 2M (t),, b NM (t)}, and f be an arbitrary element in H Since Y is a finite dimensional vector space, f has the unique best approximation out of Y such as f Y, that is y Y, f f f y Since f Y, there exists the unique coefficients c, c 2,, c NM such that where f f = M m= n= N c nm b nm (t) = C T B(t), (5) B T (t) = [b (t), b 2 (t),, b N (t), b (t), b 2 (t),, b N (t),, b M (t), b 2M (t),, b NM (t)], (6) and C T = [c, c 2,, c N, c, c 2,, c N,, c M, c 2M,, c NM ] (7) 23 Integration of B(t)B T (t) Using Eq (5) we obtain f ij =< M m= n= N c nm b nm (t), b ij (t) >= M N m= n= i =, 2,, N, j =,,, M, c nm d ij nm,

2 PROPERTIES OF HYBRID FUNCTIONS 5 where f ij =< f, b ij (t) >, Therefore d ij nm =< b nm (t), b ij (t) >, and <, > denotes inner product So we get with and f ij = C T [d ij, d ij 2,, d ij N, dij, d ij 2,, d ij N,, dij M, dij 2M,, dij NM ]T, i =, 2,, N, j =,,, M Φ = D T C, Φ = [f, f 2,, f N, f, f 2,, f N,, f M, f 2M,, f NM ] T, D = [d ij nm], where D is a matrix of order N(M + ) N(M + ) and is given by D = B(t)B T (t)dt (8) Using Eq (4) in each interval n =, 2,, N, we can get matrix D For example with N = 2 and M = 3, D is D = 2 2 2 2 2 8 8 2 84 2 84 It is seen that the matrix D is a sparse matrix Furthermore, if we choose large values of M and N the non zero elements of D will tend to zero 24 Operational matrix of integration The integration of the B(t) defined in Eq (6) is given by t B(t )dt P B(t), (9) where P is the N(M + ) N(M + ) operational matrix of integration and is given by [9]

2 PROPERTIES OF HYBRID FUNCTIONS 6 P = t f N P I O O 2 2I O I 2 O α M MI O O α M+ M+I O O O where I and O are N N identity and zero matrices respectively, and α α P = α α It is seen that P is a sparse matrix M I, 25 The operational matrix of product The following property of the product of two hybrid function vectors will also be used Let B(t)B T (t)c CB(t), () where C is a N(M + ) N(M + ) product operational matrix To illustrate the calculation procedure we choose t f =, M = 2 and N = 3 Thus we have In Eq (2) we have C = [c, c 2, c 3, c, c 2, c 3, c 2, c 22, c 32 ] T, () B(t) = [b (t), b 2 (t), b 3 (t), b (t), b 2 (t), b 3 (t), b 2 (t), b 22 (t), b 32 (t)] T (2) b (t) = b (t) = 3t 2 b 2 (t) = 9t 2 3t + 6 b 2 (t) = b 2 (t) = (3t ) 2 b 22 (t) = (3t ) 2 (3t ) + 6 b 3 (t) = b 3 (t) = (3t 2) 2 b 32 (t) = (3t 2) 2 (3t 2) + 6 t < 3, (3) 3 t < 2 3, (4) 2 3 t < (5)

2 PROPERTIES OF HYBRID FUNCTIONS 7 We also get B(t)B T (t) = From Eqs (4)-(5) we have b b b b 2 b b 3 b b 2 b b 22 b b 32 b 2 b b 2 b 2 b 2 b 3 b 2 b 2 b 2 b 22 b 2 b 32 b 3 b b 3 b 2 b 3 b 3 b 3 b 2 b 3 b 22 b 3 b 32 b 2 b b 2 b 2 b 2 b 3 b 2 b 2 b 2 b 22 b 2 b 32 b 22 b b 22 b 2 b 22 b 3 b 22 b 2 b 22 b 22 b 22 b 32 b 32 b b 32 b 2 b 32 b 3 b 32 b 2 b 32 b 22 b 32 b 32 b ij b kl =, i k, b i b ij = b ij, b i b i = b 2 i + b i2, b i b i2 = b 6 i + b i3, b i2 b i2 = b 8 i + b 3 i2 + b i4 (6) Using Eq (6) we get b b 2 b 2 b 22 b 3 b 32 B(t)B T (t) = b 2 b 8 + b 3 2 b 22 b 8 2 + b 3 22 b 32 b 8 3 + b 3 32 From the vector C in Eq (), the 9 9 matrix C in Eq () is given by C C C2 C = 2 C + C 6 2 C, 8 2 6 C + C 3 2 where C i, i =,, 2 are 3 3 matrices given by c i C i = c 2i c 3i Similarly for other values of M and N, the product operational matrix C in Eq () can be obtained

3 PROBLEM STATEMENT 8 3 Problem statement Consider the following variational problems: J[x(t)] = with the boundary conditions F (t, x(t), ẋ(t),, x (n) (t))dt, (7) x() = a, ẋ() = a,, x (n ) () = a n, (8) x() = b, ẋ() = b,, x (n ) () = b n (9) The problem is to find the extremum of Eq (7), subject to boundary conditions in Eqs (8) and (9) The method consists of reducing the variational problems into a set of algebraic equations by first expanding x (n) (t) in terms of a hybrid of block-pulse and Bernoulli polynomials with unknown coefficients 4 The numerical method By expanding x (n) (t) in the hybrid of block-pulse and Bernoulli polynomials we have, where X is vector of order N (M + ) given by x (n) (t) = X T B(t) (2) X = [x, x 2,, x N, x, x 2,, x N,, x M, x 2M,, x NM ] T, By integrating Eq (2) from to t we get x (n ) (t) x (n ) () = t X T B(t )dt = X T P B(t), where P is operational matrix of integration given in Eq (9) By using Eq (8) we get x (n ) (t) = a n + X T P B(t) (2) By n times integrating Eq (2) from to t and using boundary conditions given in Eq (8) we have x (n 2) (t) = a n 2 + a n t + X T P 2 B(t), (22) ẋ(t) = a + a 2 t + a 3 2! t2 + + a n (n 2)! tn 2 + X T P n B(t), (23)

4 THE NUMERICAL METHOD 9 x(t) = a + a t + a 2 2! t2 + + a n (n )! tn + X T P n B(t) (24) Assume that each of t i, i =, 2,, n, and each of a n i, i =, 2,, n, can be written in terms of hybrid functions as t i = d T i B(t), i =, 2,, n (25) a n i = a n i E T B(t), i =, 2,, n, (26) where E T = [,,,,,,, ] }{{}}{{} N NM Substituting Eqs (25) and (26) into Eqs (2)-(24) we obtain x (n) (t) = X T B(t), x (n ) (t) = (a n E T + X T P )B(t), ẋ(t) = (a E T + a 2 d T + a 3 2! dt 2 + + a n (n 2)! dt n 2 + X T P n )B(t), x(t) = (a E T + a d T + a 2 2! dt 2 + + a n (n )! dt n + X T P n )B(t) Substituting above equations into Eq (7) we get the boundary conditions in Eq (9) can be expressed as J[x(t)] = J[X], (27) q k = x (k) () b k =, k =,, n (28) We now find the extremum of Eq (27) subject to Eq (28) using the Lagrange multiplier technique Let J [X, λ] = J[X] + λq, where the vector λ represents the unknown Lagrange multipliers and Q = [q, q,, q n ] T The necessary conditions are given by J [X, λ] =, X J [X, λ] = λ By solving above equations, we can obtain X

5 ILLUSTRATIVE EXAMPLES 5 Illustrative examples In this section, four examples are given to demonstrate the applicability and accuracy of our method Examples and 2 are the variational problems for which the boundary conditions are fixed Example was first considered in [4] and Example 2 was given in [25] Example 3 is a variational problem that some of its boundary conditions are fixed and others are unspecified, this example was considered in [2] and [26] For Examples 3 we obtain the exact solutions by using the present method The exact solutions were not obtained in [4], [2], [25], and [26] For example 4, we compare our findings with the numerical results obtained by using hybrid of block-pulse functions and Legendre polynomials together with the CPU time and exact values 5 Example Consider the extremization of [4] where J = g(t) = with the boundary conditions [ 2ẋ2 xg(t)]dt, (29), t 4, 2 t, 3, 4 t 2, (3) ẋ() =, ẋ() = (3) Schechter [27] gave a physical interpretation of this problem by noting an application in heat conduction The exact solution is 2 t2, t, 4 3 x(t) = 2 t2 + t, t, 8 4 2 2 t2 t + 3, t 8 2 Here, we solve this problem by using the hybrid of block-pulse functions and Bernoulli polynomials, we assume ẋ(t) = C T B(t), in view of Eq (3), we write Eq (29) as J = 2 ẋ 2 4 (t)dt + 4 x(t)dt 4 2 x(t)dt + x(t)dt,

5 ILLUSTRATIVE EXAMPLES or J = 2 C T B(t)B T (t)cdt + 4C T P 4 B(t)dt 4C T P 2 B(t)dt + C T P B(t)dt Let using Eq (8) we get V (t) = t B(t )dt, (32) J = 2 CT DC + C T P [4V ( 4 ) 4V ( ) + V ()], (33) 2 the boundary conditions in Eq (3) can be expressed in terms of hybrid functions as C T B() =, C T B() = (34) We now find the extremum of Eq (33) subject to Eq (34) using the Lagrange multiplier technique Suppose J = J + λ C T B() + λ 2 C T B(), where λ and λ 2 are two multipliers Then the necessary condition is given by C J = DC + P [4V ( 4 ) 4V ( 2 ) + V ()] + λ B() + λ 2 B() = (35) Equations (34) and (35) define a set of simultaneous linear algebraic equations from which the vector C and the multipliers λ and λ 2 can be found By solving above equations with M = 2 and N = 4 we get the exact solution 52 Example 2 Consider the problem of finding the extremum of the functional [25] where with the boundary conditions J[x(t)] = f(t) = (ẋ 2 (t)f(t))dt, (36) {, t < 4,, 4 < t, (37) x() =, x() = (38)

5 ILLUSTRATIVE EXAMPLES 2 Suppose ẋ(t) = C T B(t), in view of Eq (37), we write Eq (36) as or Using Eqs (8) and () we have applying Eq (32) we get J = 2 4 ẋ 2 (t)dt + 4 J = 2 C T B(t)B T (t)cdt + ẋ 2 (t)dt, 4 J = 2 C T CB(t)dt + C T DC, C T B(t)B T (t)cdt J = 2C T CV ( 4 ) + CT DC, (39) the boundary condition in Eq (38) can be expressed in terms of hybrid functions as C T P B() = (4) We now find the extremum of Eq (39) subject to Eq (4) using the Lagrange multiplier technique Suppose J = J + λ(c T P B() ), where λ is multiplier Then the necessary conditions are given by J =, C J = λ By solving above equations with M = and N = 4, we get which is the exact solution { 2t, t x(t) =, 4 2t, t, 4

5 ILLUSTRATIVE EXAMPLES 3 53 Example 3 Find the extremum of the functional [2, 26] J[x(t)] = with the initial conditions [ 2ẍ2 (t) + 4( t)ẋ(t)]dt = F (t, x(t), ẋ(t), ẍ(t))dt, (4) x() =, ẋ() =, (42) and the values of x() and ẋ() are unspecified The exact solution via Euler equation is x(t) = 6 t4 + 2 3 t3 t 2 The natural boundary conditions are found from following equations [] that imply Suppose Fẋ d dt (F ẍ) t= =, Fẍ t= =, x () =, (43) ẍ() = (44) x (t) = C T B(t), (45) by 3 times integrating Eq (45) from to t and using boundary conditions given in Eq (42) we have ẍ(t) = C T P B(t) + ẍ(), (46) ẋ(t) = C T P 2 B(t) + ẍ()t, (47) x(t) = C T P 3 B(t) + ẍ()d T P B(t), (48) where t d T B(t) and P is operational matrix of integration given in Eq (9) Using Eqs (44) and (46) we get ẍ() = C T P B() (49) Suppose 4( t) = A T B(t), (5) substituting Eqs (46), (47) and (5) into Eq (4) and using Eqs (8) and (32) we have J = 2 CT P DP T C C T P V ()B T ()P T C + 2 CT P B()B T ()P T C +A T DP 2T C A T Dd B T ()P T C (5)

5 ILLUSTRATIVE EXAMPLES 4 By applying Eq (45)the boundary condition in Eq (43) can be written as C T B() = (52) We now find the extremum of Eq (5) subject to Eq (52) using the Lagrange multiplier technique Suppose J = J + λ(c T B()), where λ is multiplier Then the necessary conditions are given by J =, C J = λ By solving above equations with M = 5 and N =, we obtain c = 2, c = 4, c 2 =, c 3 =, c 4 =, c 5 = substituting above values in Eq (48) the exact solution is obtained 54 Example 4 Find the extremum of the functional J[x(t)] = π 4 (x 2 (t) ẋ 2 (t))dt, x() =, ẋ( π ) = (53) 4 The exact value is x(t) = sin(t) + cos(t) In Table, the values of x(t) using the hybrid of block-pulse and Legendre polynomials (B-P Legendre), the hybrid of block-pulse and Bernoulli polynomials (B-P Bernoulli), together with CPU time and the exact solution are listed Table Estimated and exact values of x(t) B-P Legendre B-P Bernoulli B-P Legendre B-P Bernoulli t N = 4, M = 2 N = 4, M = 2 N = 4, M = 3 N = 4, M = 3 Exact 999943 999999 999999 94835 94834 94788 94838 94838 3 25852 25849 2579 25857 25857 5 3574 3575 356769 3578 3578 7 4956 4956 4752 4959 4959 CPU time 732 578 954 88

6 CONCLUSION 5 6 Conclusion In the present work the hybrid of block-pulse functions and Bernoulli polynomials are used to solve variational problems The variational problems has been reduced to a problem of solving a system of algebraic equations For constructing matrices D and P in Eqs (8) and (9) we use Bernoulli numbers α n which are a sequence of singed rational numbers and α 2n+ =, n =, 2, 3, Thus the matrices P and D have many zero elements and they are sparse, hence the present method is very attractive and reduces the CPU time and the computer memory Illustrative examples are given to demonstrate the validity and applicability of the proposed method References [] Arfken, G, Mathematical methods for physicists, Third edition, Academic press, San Diego, 985 [2] Arsalani, M and Vali, MA, Numerical solution of nonlinear variational problems with moving boundary conditions by using Chebyshev wavelets, Applied Mathematical Sciences, 5(2): 947-964, 2 [3] Chang, RY and Wang, ML, Shifted Legendre direct method for variational problems, Journal of Optimization Theory and Applications, 39: 299-37, 983 [4] Chen, CF and Hsiao, CH, A Walsh series direct method for solving variational problems, Journal of the Franklin Institute, 3: 265-28, 975 [5] Costabile, F, Dellaccio, F and Gualtieri, MI, A new approach to Bernoulli polynomials, Rendiconti di Matematica, Serie VII 26: -2, 26 [6] Elgolic, LE, Calculus of variations, Pergamon press, Oxford, 962 [7] Elsgolts, L, Differential equations and the calculus of variations, translated from the Russian by G Yankovsky, Mir Publisher, Moscow, 977 [8] Gelfand, IM and Fomin, SV, Calculus of variations, Prentice-Hall, Englewood Cliffs, NJ, 963 [9] Horng, IR and Chou, JH, Shifted Chebyshev direct method for solving variational problems, International Journal of Systems Science, 6: 855-86, 985 [] Hsiao, CH, Haar wavelet direct method for solving variational problems, Mathematics and Computers in Simulation, 64: 569-585, 24

REFERENCES 6 [] Hsiao, CH, Hybrid function method for solving Fredholm and Volterra integral equations of the second kind, Journal of Computational and Applied Mathematics, 23: 59-68, 29 [2] Hwang, C, and Shih, YP, Laguerre series direct method for variational problems, Journal of Optimization Theory and Applications, 39: 43-49, 983 [3] Kajani, MT, and Vencheh, AH, Solving second kind integral equations with hybrid Chebyshev and block-pulse functions, Appl Math Comput 63: 7-77, 25 [4] Kreyszig, E, Introductory functional analysis with applications, John Wiley and Sons Press, New York, 978 [5] Maleknejad, K and Mahmoudi, Y, Numerical solution of linear Fredholm integral equation by using hybrid Taylor and block-pulse functions, Applied Mathematics and Computation, 49; 799-86, 24 [6] Marzban, HR and Razzaghi, M, Optimal control of linear delay systems via hybrid of block-pulse and Legendre polynomials, Journal of the Franklin Institute, 34: 279-293, 24 [7] Marzban, HR and Razzaghi, M, Analysis of time-delay systems via hybrid of block-pulse functions and Taylor series, Journal of Vibration and Control, : 455-468, 25 [8] Marzban, HR and Razzaghi, M, Solution of multi-delay systems using hybrid of block-pulse functions and Taylor series, Journal of Sound and Vibration, 292: 954-963, 26 [9] Mashayekhi, S, Ordokhani, Y and Razzaghi, M, Hybrid functions approach for nonlinear constrained optimal control problems, Communications in Nonlinear Science and Numerical Simulation, 7: 83-843, 22 [2] Razzaghi, M and Elnagar, G, Linear quadratic optimal control problems via shifted Legendre state parametrization, International Journal of Systems Science, 25: 393-399, 994 [2] Razzaghi, M and HR Marzban, A hybrid analysis direct method in the calculus of variations, International Journal of Computer Mathematics, 75: 259-269, 2 [22] Razzaghi, M and Marzban, HR, Direct method for variational problems via hybrid of block-pulse and Chebyshev functions, Mathematical Problems in Engineering, 6: 85-97, 2

REFERENCES 7 [23] Razzaghi, M and Razzaghi, M, Fourier series direct method for variational problems, International Journal of Control, 48: 887-895, 988 [24] Razzaghi, M and Razzaghi, M, Instabilities in the solution of a heat conduction problem using Taylor series and alternative approaches, Journal of the Franklin Institute, 326: 683-69, 989 [25] Russak, IB, Calculus of Variations, Ma 43 Lecture Notes, Monterey, California, 22 [26] Dixit, S, Singh, VK, Singh, AK, and Singh, OP, Bernstein direct method for solving variational problems, International Mathematical Forum, 5(48): 235-237 2 [27] Schechter, RS, The Variation Method in Engineering, McGraw-Hill, New York, 967 [28] Tikhomirov, VM, Stories about Maxima and Minima, American Mathematica Society, Providence, RI, 99 [29] Wang, XT and Li, YM, Numerical solutions of integro differential systems by hybrid of general block-pulse functions and the second Chebyshev polynomials, Applied Mathematics and Computation, 29: 266-272, 29