In Example 6.12, we represented the function in Fig. 6.23 by Legendre polynomials.
a. Use the results in Example 6.12 to represent the signal g(t) in Fig. P6.5-8 by Legendre polynomials.
b. Compute the error energy for the approximations having one and two-(nonzero) terms.