Quote:
Originally Posted by CaptainBlack There are at least two answers to this (assuming a is a known numeric value)
1. Set up a model in Excel and use the solver to minimise:
of course this will be discretised so you will have to find  that minimises:
2. Expand  in orthogonal polynomials on  stopping at the linear term.
CB |
I have run method 2 through Maxima and the results are shown in the attachment (I ought to condense this down to a function definition since this is at least the second time I have done this).
(this is just using Gram-Schmidt to find the first few orthogonormal basis polynomials then using the first couple of terms of the generalised Fourier series corresponding to the orthonormal basis - note I am using the inner product of real functions not that for complex)
CB