
For most common periodic waveforms, the Fourier series are listed in HLT, page 6, but may require some massaging to get them into a form suitable for your application.
We're going to use the classic ramp waveform as an example, with a period of 2ms and an equation:

Since T = 2ms:

The corresponding waveform in HLT is the odd function

This is the ramp function dropping from A to 0 over a period of θ = 0 to 2π. We can make this same as ours by setting A = -50V, θ = 2πt / 2ms = 103πt and adding 50V. Therefore, we can do the same to the Fourier series, to generate

et voila.