Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to computing page for the fourth course APMA0360
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to Mathematica tutorial for the fourth course APMA0360
Return to the main page for the first course APMA0330
Return to the main page for the second course APMA0340
Return to the main page for the fourth course APMA0360
Return to Part V of the course APMA0340
Introduction to Linear Algebra with Mathematica
Theorem 1:
If 2π-periodic function f(๐ฅ) is an absolutely integrable over (โฯ, π) and specified by the giving Fourier series
\[
f(x) \,\sim\, \frac{a_0}{2} + \sum_{n\ge 1} a_n \cos (nx) + b_n \sin (nx) ,
\]
then the integral of ๐(๐ฅ) has the Fourier series expansion as
\begin{equation} \label{RqInt.1}
\int_0^x f(x)\,{\text d}x = \sum_{n\ge 1} \frac{b_n}{n} - \sum_{n\ge 1} \frac{b_n}{n}\,\cos (nx) + \sum_{n\ge 1} \, \frac{a_n - (-1)^{n} a_0 }{n} \, \sin (nx) , \quad -\pi < x < \pi .
\end{equation}
Let us define the antiderivative
\[
F(x) = \int_0^x \left[ f(x) - \frac{a_0}{2} \right] {\text d}x
\]
This function is continuous and has an absolutely integrable derivative. In addition, it is 2π-periodic, as evident from
\begin{align*}
F(x+ 2\pi ) &= \int_0^x \left[ f(x) - \frac{a_0}{2} \right] {\text d}x + \int_x^{x+2\pi} \left[ f(x) - \frac{a_0}{2} \right] {\text d}x
\\
&= F(x) + \int_{-\pi}^{\pi} \left[ f(x) - \frac{a_0}{2} \right] {\text d}x
\\
&= F(x) + \int_{-\pi}^{\pi} f(x)\,{\text d}x - a_0 \pi = F(x) .
\end{align*}
It should be mentioned that in the second step of the above expression, the function ๐(๐ฅ) is treated as a function of period 2π, which ensured by the assumption of periodicity of ๐(๐ฅ). Hence, ๐น(๐ฅ) can be expanded into trigonometric series
\[
F(x) = \frac{A_0}{2} + \sum_{n\ge 1} A_n \cos (nx) + B_n \sin (nx) ,
\]
where for n ≥ 1,
\begin{align*}
A_n &= \frac{1}{\pi}\,\int_{-\pi}^{\pi} F(x) \,\cos (nx)\,{\text d} x
\\
&= \frac{1}{\pi}\,F(x) \,\frac{\sin (nx)}{n} \,\Big\vert_{x=-\pi}^{x=\pi} - \frac{1}{n\pi}\,\int_{-\pi}^{\pi} \left[ f(x) - \frac{a_0}{2} \right] \sin (nx)\,{\text d}x = - \frac{b_n}{n} ,
\end{align*}
and similarly,
\[
B_n = \frac{a_n}{n} .
\]
Therefore, we have
\[
\int_0^x f(x)\,{\text d}x = \frac{a_0}{2}\,x + \frac{A_0}{2} + \sum_{n\ge 1} \frac{-b_n \cos nx + a_n \sin nx}{n} .
\]
Setting ๐ฅ = 0 in this equation, we get
\[
\frac{A_0}{2} = \sum_{n\ge 1} \,\frac{b_n}{n} .
\]
Corollary 1:
If 2π-periodic function f(๐ฅ) is an absolutely integrable over (โฯ, π) and its Fourier coefficient 𝑎₀ = 0, then
\[
\int_0^x f(x)\,{\text d}x = \sum_{n\ge 1} \,\frac{b_n}{n} + \sum_{n\ge 1}\,\frac{-b_n\,\cos nx + a_n \sin nx}{n} ,
\]
that is, the Fourier coefficients of the integral can be obtained from the term-by-term integration of the series for f(๐ฅ).
Note:
If ๐(๐ฅ) is absolutely integrable over (−π, π) and
then the integral \( \quad \int_a^b \,f(x)\,{\text d}x \quad \) can be obtained directly from the term-by-term integration of the Fourier series for ๐(๐ฅ), that is,
where 𝑎 and b represent any two points in the interval [−π, π]. ▣
As a matter of fact, even when 𝑎 or b (or both) falls outside of the interval [−π, π], Eq.\eqref{EqInt.2} is still valid because ๐น(๐ฅ) is a function of period 2π.
Example 4:
■
End of Example 4
Term-by-term integration of infinite series
In general, an antiderivative of a periodic function is not periodic. For example, f(x) = 1 is periodic (of any period) but its antiderivatives F(x) = x+C are not periodic. The following lemma gives a necessary and sufficient condition for an antiderivative to be periodic.
Lemma 3:
Let f(x) be a periodic integrable function of a real variable. The antiderivative F of f defined by
\[
F(x) = \int_0^x f(t)\,{\text d} t
\]
is T-periodic if and only if
\[
\int_0^T f(x)\,{\text d}x = 0.
\]
Suppose that the integral condition is satisfied. We need to show that the antiderivative is periodic,, F(x + T) = F(x). We have
Consider the antiderivative of f defined by \( F(x) = \int_0^x f(t)\,{\text d} t . \) Then the Fourierseries of F is obtained from that of f by termwise integration. That is, if
where \( \displaystyle A_0 = \sum_{k\ge 1} \frac{b_k}{k} . \)
The antiderivative F is continuous and it is also 2ฯ-periodic function according to the previous lemma. Since Fโฒ = f is piecewise smooth, then we can apply the previous Theorem aboutdifferentiation of Fourier series. Consider the Fourier series of F:
Return to Mathematica page
Return to the main page (APMA0340)
Return to the Part 1 Matrix Algebra
Return to the Part 2 Linear Systems of Ordinary Differential Equations
Return to the Part 3 Non-linear Systems of Ordinary Differential Equations
Return to the Part 4 Numerical Methods
Return to the Part 5 Fourier Series
Return to the Part 6 Partial Differential Equations
Return to the Part 7 Special Functions