You do not need to use Mathematica to find out for which real numbers a the function x^a is in L^2(0,1). But you could check your answer for certain values. For instance suppose
![[Graphics:Images/Hw1_gr_1.gif]](Images/Hw1_gr_1.gif)
then we can easily check that
![[Graphics:Images/Hw1_gr_2.gif]](Images/Hw1_gr_2.gif)
Hence, for a=0.5, x^a is in L^2(0,1). Note that the answer is only an approximation. You can check other values by changing alpha.
![[Graphics:Images/Hw1_gr_4.gif]](Images/Hw1_gr_4.gif)
Next, we need to evaluate the above integral from 0 to 1. This involves a limit, because log(x) is not defined at x=0. Again, using Mathematica, we verify that the answer is:
![[Graphics:Images/Hw1_gr_6.gif]](Images/Hw1_gr_6.gif)
Hence the answer to the above question is affirmative, because the integral is finite.
If the Legendre polynomials p_n(x) are defined as the n^th coefficient of the Taylor series around zero of the following function:
![[Graphics:Images/Hw1_gr_8.gif]](Images/Hw1_gr_8.gif)
then we can easily compute them:
![[Graphics:Images/Hw1_gr_9.gif]](Images/Hw1_gr_9.gif)
The "normalized" Legendre polynomials are defined by multimplying the n^th term in the above series by ((2n+1)/2)^(1/2).
Perhaps the Legendre polynomials may be defined more naturally as the orthogonal basis which is obtained by applying the Gram-Schmidt process to the elements {1, x, x^2, x^3, ...}.
Using Mathematica, we can verify that the first n normalized Legendre polynomials coincide with the n elements obtained by orthonormalizing {1, x, x^2, ..., x^n}. First, we need to load the apropriate package:
![[Graphics:Images/Hw1_gr_11.gif]](Images/Hw1_gr_11.gif)
Now we can easily get the first four terms as follows:
![[Graphics:Images/Hw1_gr_12.gif]](Images/Hw1_gr_12.gif)
So, as you can see, these terms are normalization of the coefficients we obtained above.
To see what the graphs for the partial sums of the series sin nx/n are going to look like, start by setting:
![[Graphics:Images/Hw1_gr_14.gif]](Images/Hw1_gr_14.gif)
This defines the n^th partial sum. The n^th graph, is generated by the command
![[Graphics:Images/Hw1_gr_15.gif]](Images/Hw1_gr_15.gif)
Now we can generate the first five graphs as follows:
![[Graphics:Images/Hw1_gr_16.gif]](Images/Hw1_gr_16.gif)
Now it is easy to see what the limit looks like. For good measure throw in a high number, say 100:
![[Graphics:Images/Hw1_gr_22.gif]](Images/Hw1_gr_22.gif)
As you would suspect, the limit is some kind of a sawtooth.