Use the Laguerre polys

L1=x-1, L2=x^2-4x+2, L3=x^3+9x^2+18x-6

to compute least squares polys on (0, infinity) with respect to the weight fn w(x)=e^-x

for the following functions:

f(x)=x^2 , f(x)=e^-x, f(x)=x^3, f(x)=e^-2x

Printable View

- Nov 20th 2011, 03:23 PMmonomocoLeast Squares with Weight Function
Use the Laguerre polys

L1=x-1, L2=x^2-4x+2, L3=x^3+9x^2+18x-6

to compute least squares polys on (0, infinity) with respect to the weight fn w(x)=e^-x

for the following functions:

f(x)=x^2 , f(x)=e^-x, f(x)=x^3, f(x)=e^-2x - Nov 20th 2011, 10:39 PMCaptainBlackRe: Least Squares with Weight Function
- Nov 23rd 2011, 02:02 PMmonomocoRe: Least Squares with Weight Function
I am very confused about all this stuff, but I think when the functions are orthogonal we can use the following to calcualte coefficients in the polynomial:

$\displaystyle a_j = (1/a_j) $*Integral from a to b of $\displaystyle w(x)f(x)\Phi_j (x) dx $

Sorry, I don't really know Latex - Nov 23rd 2011, 07:05 PMCaptainBlackRe: Least Squares with Weight Function
Define the inner product:

$\displaystyle \langle f,g \rangle= \int_0^{\infty} f(x)g(x) w(x)dx$

on the space of real square integrable functions over $\displaystyle (0,\infty)$ with respect to the weight $\displaystyle w(x)$. Then if $\displaystyle L_i,\ i=0, .. \ ,\infty$ is a complete basis of orthogonal functions for this space then:

$\displaystyle f(x)=\sum_{i=1}^{\infty} \frac{\langle f,L_i\rangle}{\|L_i\|}L_i(x)$

and the least squares (with respect to $\displaystyle w$ ) approximation to $\displaystyle f$ in the subspace spanned by $\displaystyle L_n .. L_m$ is:

$\displaystyle f(x)=\sum_{i=n}^{m} \frac{\langle f,L_i\rangle}{\|L_i\|}L_i(x)$

CB - Nov 24th 2011, 07:20 AMmonomocoRe: Least Squares with Weight Function
Not so bad after all. Thanks very much!