g782k936 said:
I want to have linearly independent combinations of f and g that are orthognal on the interval from (-1,1) I'm guesing that they need to be wrt f and g.
No, that was not the question. "Orthogonal" means that the inner product is 0 so whether or not two vectors are orthogonal depends on the inner product used.
The most common inner product for real valued functions on an interval (a, b) is \int_a^b f(x)g(x)dx.
Since, if two eigenvectors correspond to the same eigenvalue, any linear combination is also an eigenvector corresponding to that eigenvalue, a simple "orthogonal projection" will work.
If u and v are two vectors in an inner product space, then the "projection of v onto u" is given by
\frac{<u,v>}{<u,u>}\vec{u}
The "orthogonal projection" is v minus that:
\vec{v}- \frac{<u,v>}{<u,u>}\vec{u}
Calculate that with u= e
x, v= e
-x, and inner product <u,v>= \int_{-1}^1 u(x)v(x)dx.