(b) Let ƒ(x) = x from 0 to ½ l, and f(x) = l − x, from ½ l to l; then
| ∫ l 0 ƒ(x) sin | nπx | dx = ∫ ½ l 0 x sin | nπx | dx + ∫ l ½ l (l − x) sin | nπx | dx |
| l | l | l |
| = − | l² | cos | nπ | + | l² | sin | nπ | + | l²n | ( cos | nπ | − cos nπ ) |
| 2nπ | 2 | n²π² | 2 | nπ | 2 |
| + | l² | cos nπ − | l² | cos | nπ | + | l² | sin | nπ | = | 2l² | sin | nπ |
| nπ | 2nπ | 2 | n²π² | 2 | n²π² | 2 |
hence the sine series is
| 4l | ( sin | nx | − | 1 | sin | 3πx | + | 1 | sin | 5πx | − ... ) |
| π² | l | 3² | l | 5² | l |
For general values of x, the series represents the ordinates of the row of broken lines in fig. 3.
The cosine series, which represents the same function for the interval 0 to l, may be found to be