4.7.6 · D3Partial Differential Equations

Worked examples — Half-range sine and cosine series

2,781 words13 min readBack to topic

This page is a shooting range. The parent note gave you the two formulas; here we fire every kind of function at them so no exam problem can surprise you. Before any example, we build a map of all the cases — then we knock them out one by one.

Two symbols we will lean on constantly, defined in plain words so nothing is assumed:


The scenario matrix

Every half-range problem you can be handed falls into one of these cells. The last column names the example that clears it. Figure s01 draws the heart of the whole page: the same function mirrored two ways. Look at it now — the left panel (coral solid + lavender dashed) shows the odd mirror, which has a violent jump at the right end (a sawtooth); the right panel (coral solid + mint dashed) shows the even mirror , which only has a gentle corner. That single contrast — jump vs corner — is why sine coefficients die slowly () and cosine coefficients die fast (). Keep glancing back at this picture as you read Cells A, B and H.

# Case class What makes it tricky Cleared by
A Straight line , sine odd extension has a jump at the end → slow decay Ex 1
B Straight line , cosine even extension is a corner → faster ; needs Ex 2
C Constant , sine vs cosine cosine is trivial; sine is a subtle non-zero series Ex 3
D Piecewise (split-domain) function integrate over each piece separately (sine and cosine) Ex 4, Ex 4b
E Function that does NOT vanish at the ends endpoint value ≠ 0 → midpoint (Dirichlet) surprise Ex 5
F Even-power polynomial , cosine double integration by parts; Ex 6
G Real-world word problem (heated/insulated rod) translate physics → pick sine or cosine BC Ex 7
H Exam-twist / limiting behaviour decay rate + endpoint convergence value Ex 8

We also cover the two degenerate inputs every topic must handle:

  • (the average term) — appears in Ex 2, 4b, 6, 7.
  • endpoint values and where the series may not equal — Ex 5, 8.
Figure — Half-range sine and cosine series

The examples

Cell A — straight line, sine series

Cell B — straight line, cosine series

Cell C — constant function

Cell D — piecewise function (both series)

Cell E — function that does NOT vanish at the ends

Cell F — even-power polynomial

Cell G — real-world word problem

Cell H — exam-twist: decay rate & limiting behaviour


Active recall

Recall Cover the answers and fire away

Which cell do you pick for an insulated rod, and why? ::: Cosine (Neumann, zero slope at ends). A constant has a trivial cosine series but a non-trivial sine series — why? ::: Even mirror of is just ; odd mirror is a square wave full of sine wiggles. The sine series of at sums to what, and why? ::: , the midpoint of the sawtooth jump (Dirichlet rule). Which decays faster, of the sawtooth or of , and why? ::: faster than ; corner is smoother than a jump. Same tent, sine vs cosine — which one carries a constant term, and what is it? ::: The cosine one; its (the tent's average height).


Connections