Ask Your Question

Recover general formula for fourier series?

asked 2011-12-29 15:52:24 +0100

gopher13 gravatar image


Is there a way to recover the general formula for a fourier series? That is, f.fourier_series_sine_coefficient(9,pi) will give me the 9th sine coefficient, but I'd like to know more generally how I can construct the Nth sine coefficient.

I'm doing some complicated (to me) fourier series, and I'm having trouble figuring out the formula for the Nth.

Thanks for any help.


edit retag flag offensive close merge delete


Can you explain what you mean by that? Generally the coefficients of the fourier series are not related to one another. One can write a expression for the nth coefficient only in special cases, and I am not sure there is a way of identifying whether a given formula falls in that category.

Shashank gravatar imageShashank ( 2011-12-29 16:05:47 +0100 )edit

It may be a poor question then .. my frame of reference is the typical fourier series for periodic functions found on-line (square, triangle, saw), which all seem to reduce to nice clean equations for the nth coefficient. I didn't realize most would not behave so nicely .. though, I don't feel so bad now for scratching my head about the more complex function for which I was trying to generate a series .. smile. Thanks for the input/answer.

gopher13 gravatar imagegopher13 ( 2011-12-30 14:23:12 +0100 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2011-12-30 05:09:08 +0100

achrzesz gravatar image


sage: maxima('load(fourie)')

sage: maxima('foursimp(fourier(x^3,x,%pi))')


sage: maxima('[%t26,%t27,%t28]')


edit flag offensive delete link more


Thanks very much for these .. I will study/play with them, and hopefully my function falls under 'simple case' .. thanks again.

gopher13 gravatar imagegopher13 ( 2011-12-30 14:24:26 +0100 )edit

answered 2011-12-30 15:26:01 +0100

achrzesz gravatar image

updated 2011-12-30 15:32:58 +0100

I would recommend also the class notes by Prof. David Joyner:

edit flag offensive delete link more

answered 2011-12-30 04:00:00 +0100

achrzesz gravatar image

In simple cases you can try:

sage: maxima('load(fourie)')

sage: maxima('totalfourier(abs(x),x,%pi)').sage()

1/2pi + 2sum(((-1)^n - 1)cos(nx)/n^2, n, 1, +Infinity)/pi

sage: maxima('totalfourier(x^3,x,%pi)').sage()

-2sum((pi^2n^2 - 6)(-1)^nsin(n*x)/n^3, n, 1, +Infinity)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-12-29 15:52:24 +0100

Seen: 810 times

Last updated: Dec 30 '11