Approximating functions using legendre polynomials pdf

This quest leads to the use of chebyshev polynomials. Mathematica examples relevant to legendre functions. Orthogonal functions 15 chebyshev polynomials we have seen that fourier series are excellent for interpolating and differentiating periodic functions defined on a regularly spaced grid. Representation of function gx in terms of series expansion using orthogonal polynomials is a fundamental concept in approximation theory the basis of least squares approximation of solution of differential equations. Approximate solution of integral equations and convolution. Now we look in more detail at legendre s equation and the legendre polynomials. We expect this result to have use in applied approximation problems. Legendre, chebyshev and trigonometric polynomials with simulation.

The functions prx can also be obtained from a generating function, namely oc. Using both brafmans generating functions and our results, we. Legendre polynomials triple product integral and lower. Pdf shifted legendre polynomials for solving second kind. The following is a recurrence relation for three consecutive legendre polynomials. The simple examples of legendre polynomials in physics the a single charged particles 1 r potential can be written in terms of legendre prolynomials.

They also appear in the theory of positivedefinite functions. Orthogonal polynomials and least squares approximations, contd. In the following exercise, you will write an algorithm using loops for legendre polynomials. The legendre polynomials are built into mathematica. On spectral approximations using modified legendre. A new analytic method to approximate trigonometric functions. Here the legendre polynomials are the family of orthogonal polynomial. Polynomial approximation of divergencefree functions 105 a scale of weighted sobolev spaces is defined as follows.

Legendre polynomials as a recommended basis for numerical. Using this polynomial for approximation within the interval given by the endpoints is called polynomial interpolation. Our result indicates that the functions fq jxg n j0. If we know the function value at some point say f a and the value of the derivative at the same. Using legendre polynomial to approximate any polynomial. C6 a generating function for legendre polynomials c6. The laplace equation for a function fr, f, q is given by. Overview solving the legendre equation application why are legendre polynomials important. This paper discusses using legendre and chebyshev polynomials to approximate functions on. This research was supported by morris brown college research fund. In any truncation of the multipole expansion, the relevant aspects of the charge distribution are completely captured by a finite number of quantities packaged into multipole moments. Legendre polynomials lecture 8 1 introduction in spherical coordinates the separation of variables for the function of the polar angle results in legendre s equation when the solution is independent of the azimuthal angle.

Introduction inding rational approximations to trigonometric functions has a long history with much effort devoted to approximating these functions by polynomials. Legendre polynomials and l2 approximation 1 introduction. One more approach to approximating a function f x on an. Rodrigues formula the nth legendre polynomial pn is given by the following. New operational matrix for shifted legendre polynomials and.

We see the expected alternation between even and odd functions, and the expected number of zeros in each case. Mar 01, 2009 however, the presented method of using legendre polynomials still has its superiority because legendre polynomials have a unit weight function therefore are easier for applying. Summary on legendre functions polynomials legendre s differential equation 2 2 2 1 2 1 0 d y dy x x n n y dx dx. These polynomials can be generated using the gram sch. Me 401 legendre polynomials university of rochester.

Thus, in practise, a function can be represented using a relatively small number of. The legendre polynomial approximation method is valid when the functions f k x, g x and k x, t are defined on. Some experiments with evaluation of legendre polynomials. To approximate a function fx on the interval 1,1 by a polynomial of degree n, we compute the orthogonal projection on the space spanned by. The legendre polynomials can be alternatively given by the generating function 1. The function gx is defined with legendre polynomials which complete orthogonal sets of functions on. Use of orthogonal polynomials such as the legendre polynomials, results in a diagonal matrix that can be inverted almost without error, but the right side can be.

Example we will use legendre polynomials to approximate fx cosxon. Pdf legendre polynomials used for the approximation of. Since gegenbauer polynomials are a general case of legendre and tchebycheff polynomials, more applications are shown in section 2. Sep 05, 2018 gegenbauer polynomials appear naturally as extensions of legendre polynomials in the context of potential theory and harmonic analysis. Then the rst and second derivatives are given by y0 p 1 n0 a nnx n 1 and y00 p 1 n0 a. Indextermselementary function approximation, evaluating definite integrals and derivatives, legendre polynomials. This means if n 2p even, the series for y1 terminates at c2p and y1 is a polynomial of degree 2p. How can i show that any polynomial can be approximated by using linear combination of legendre polynomial. Legendre polynomials triple product integral and lowerdegree. Solutions of the equation with m 6 0 are associatedlegendre functions. Legendre functions for show that 6 with gives and 7 gives use verify this by solving 1 with, setting and separating variables. We have seen how to carry out part b but we have yet to discuss part a.

Comparison of legendre polynomial approximation and variational. Here we describe continuous leastsquare approximations of a function fx by using polynomials. Function approximation and legendre polynomials taylor. Adomian decomposition method with orthogonal polynomials. Rodrigues formula the legendre polynomials can be expressed in a more compact form.

Legendre polynomials for numerical differentiation problems 5 accuracy better than o. A method of function approximation using legendre polynomials for least mean square error is suggested. We show that the polynomial coefficients in legendre expansion, therefore the whole series, converge to zero much more rapidly compared to. Madas summary on legendre functions polynomials legendre s differential equation 2 2 2 1 2 1 0 d y dy x x n n y dx dx. In section 3, we study several orthogonal projection operators and derive optimal approximation results associated with them. The legendre polynomials l n x are orthogonal polynomials for the inner product on c1,1 given by f g integral1 1 fxgx dx. Polynomial approximation of divergencefree functions. If you print this lab, you may prefer to use the pdf version. Using both brafmans generating functions and our results, we also give. About a decade ago while i was playing around with integrals containing legendre polynomials pn,x it became clear to me that certain integrals involving the even legendre polynomials p2n,x, when multiplied by certain functions fax and the product integrated over the range 0 functions ga.

The fourier cosine and sine series can be used to approximate functions. A polynomial approximation for arbitrary functions request pdf. We will be attempting to approximate several functions in this lab, all on the interval 1,1. Approximating the delta function using legendre polynomials. A central problem of mathematical analysis is the approximation to more general functions by polynomials an the estimation of how small the discrepancy can be made.

An adequate approximation may well require the inclusion of a few more terms, but the main message remains. Leastsquare approximations of a function using monomial polynomials given a function fx, continuous on a,b. The code for the loop is typically more complicated than the recursive formulation. Since we are interested in the approximation of kortewegde vries equation that involves. For example, one application lies in polynomial approximation of functions from pointevaluations. Legendre polynomials and applications fiu faculty websites. Example find the least squares approximating polynomial of degree 2 for fx sin. Mar 01, 2010 for this purpose, the method which is used here based on legendre polynomial or vim is studied in order to find the approximate solutions and the analytic solutions. These solutions can be used to solve axisymmetric problems inside a sphere, exterior to a sphere, or in the region between concentric spheres. Legendre polynomials the set of legendre polynomials fp nxgis orthogonal on 1. A polynomial approximation for arbitrary functions sciencedirect. Pdf the paper deals with a concept of application of orthogonal legendre polynomials for the approximation of cylindrical surfaces. By substituting by the approximate unknown function into the left and the. New operational matrix for shifted legendre polynomials.

Leastsquare approximations of a function using monomial polynomials. Math 563 lecture notes approximation with orthogonal bases. Orthogonal polynomialsand leastsquares approximationsto. We show that the polynomial coefficients in legendre expansion, therefore the whole series, converge to zero much more rapidly compared to the taylor expansion of the same order. While most of what we develop in this chapter will be correct. Shifted legendre polynomials for solving second kind fredholm integral equations. Legendre polynomials form a system of basis polynomials with a wide support, as compared to haar wavelets which provide only compact support.

Now write gx,t as a sum of legendre polynomials to get 1. In many circumstances physical phenomena which are not periodic in space and occur in a limited area. We include one example of each type of problem later in this notebook. We describe an expansion of legendre polynomials, analogous to the taylor expansion, to approximate arbitrary functions. A typical approximation problem, will therefore be. However, the presented method of using legendre polynomials still has its superiority because legendre polynomials have a unit weight function therefore are easier for applying. Given a function fx, suppose that we wish to construct the best polynomial approximant px as a linear.

A polynomial approximation for arbitrary functions. Computers and mathematics with applications comparison. First, we note that the rst three legendre polynomials, which are the ones of degree 0, 1 and 2, are l 0x 1. If m 0, this equation is called legendre s equation and the solutions are legendrefunctions. Use of orthogonal polynomials such as the legendre polynomials. However, to the best of our knowledge, there is no such previous work on legendre polynomials. Polynomial approximation, interpolation, and orthogonal.

As far as the class of functions that gx belongs to, we will typically assume that gx is a polynomial of a given degree though it can be a trigonometric function, or any other function. Legendre functions for show that 7 with gives and 6 gives 3. The legendre polynomials l n x are orthogonal polynomials for the inner product on c1,1 given by f g integral1 1 fxgx dx to approximate a function fx on the interval 1,1 by a polynomial of degree n, we compute the orthogonal projection on the space spanned by legendre polynomials l 0 through l n. We show that the polynomial coefficients in the legendre expansion, and thus. Orthogonal polynomials, legendre polynomials, jacobi polynomials, generating function. There are a large number of formulas involving legendre polynomials. Legendre polynomials let x be a real variable such that 1 x 1. Using the standard deviation as a measure of the accuracy of the approximation and the cpu time as a measure of the speed, we find that for reasonable accuracy legendre polynomials are more efficient. This paper discusses using legendre and chebyshev polynomials to approximate functions on finite interval, that is, on the interval. One particular family shown below is due to fred brafman in 1951, which, as shown in our previous work 9, finds some nice applications in number theory, namely, in constructing. Legendre polynomials and applications legendre equation. Using the generating function of the legendre polynomials see eq.

We consider approximating functions in the weighted l2 space. A new analytic method to approximate trigonometric. This means that we are looking only at solutions of the original pde that are rotationally symmetric about the z axis i. Legendre polynomial expansion of the unit step function. Comparison of legendre polynomial approximation and.

519 1609 825 870 224 11 128 528 535 1277 542 1367 1534 490 1001 480 551 859 1009 576 1724 616 1725 100 864 585 200 303 1370 776 780 822 987 1307 476 762 1154 1580