About

Exercise Set 2

Theory

No theory yet.

Exercises

Exercise 1
  1. Use mathematical induction to prove that
12+22+32+⋯+n2=n(n+1)(2n+1)61^2 + 2^2 + 3^2 + \dots + n^2 = \frac{n(n+1)(2n+1)}{6}

is true for all positive integers nn.

Show solution ↓
Solution

Let

P(n):12+22+32+⋯+n2=n(n+1)(2n+1)6P(n): 1^2 + 2^2 + 3^2 + \dots + n^2 = \frac{n(n+1)(2n+1)}{6}

where nn is a positive integer.

(1) Base Case:

Since

(1)(1+1)(2(1)+1)6=(1)(2)(3)6=1=12,\frac{(1)(1+1)(2(1)+1)}{6} = \frac{(1)(2)(3)}{6} = 1 = 1^2,

P(1)P(1) is true.

(2) Inductive Step:

Let kk be a positive integer.
Assume P(k)P(k) is true:

12+22+32+⋯+k2=k(k+1)(2k+1)6.1^2 + 2^2 + 3^2 + \dots + k^2 = \frac{k(k+1)(2k+1)}{6}.

We show that P(k+1)P(k+1) is true:

12+22+32+⋯+k2+(k+1)2=(k+1)(k+2)(2k+3)6.1^2 + 2^2 + 3^2 + \dots + k^2 + (k+1)^2 = \frac{(k+1)(k+2)(2k+3)}{6}.

Adding (k+1)2(k+1)^2 and substituting the inductive hypothesis:

=k(k+1)(2k+1)6+(k+1)2= \frac{k(k+1)(2k+1)}{6} + (k+1)^2=2k3+3k2+k+6(k2+2k+1)6= \frac{2k^3 + 3k^2 + k + 6(k^2 + 2k + 1)}{6}=2k3+3k2+k+6k2+12k+66= \frac{2k^3 + 3k^2 + k + 6k^2 + 12k + 6}{6}=2k3+9k2+13k+66= \frac{2k^3 + 9k^2 + 13k + 6}{6}=(k+1)(k+2)(2k+3)6.= \frac{(k+1)(k+2)(2k+3)}{6}.

Therefore, P(k+1)P(k+1) is true.

By Mathematical Induction, P(n)P(n) is true for all positive integers nn.

Exercise 2
  1. Determine if the following sequences converge or diverge. If it converges, find its limit.

2.1 {(2n+32n−5)n}\left\{ \left( \frac{2n+3}{2n-5} \right)^n \right\}

2.2 {ln⁡(n)−ln⁡(n+1)}\{ \ln(n) - \ln(n+1) \}

2.3 {n22n−1sin⁡(1n)}\left\{ \frac{n^2}{2n-1} \sin\left(\frac{1}{n}\right) \right\}

Show solution ↓
Solution

2.1

Let

K=(2x+32x−5)x.K = \left( \frac{2x+3}{2x-5} \right)^x.

Then

ln⁡K=xln⁡(2x+32x−5).\ln K = x \ln \left( \frac{2x+3}{2x-5} \right).lim⁡x→∞ln⁡K=lim⁡x→∞ln⁡(2x+32x−5)1/x.\lim_{x \to \infty} \ln K = \lim_{x \to \infty} \frac{\ln\left( \frac{2x+3}{2x-5} \right)}{1/x}.

Using L’Hôpital’s Rule:

=lim⁡x→∞2x−52x+3((2x−5)(2)−(2x+3)(2)(2x−5)2)−1/x2= \lim_{x \to \infty} \frac{\frac{2x-5}{2x+3} \left( \frac{(2x-5)(2)-(2x+3)(2)}{(2x-5)^2} \right)} {-1/x^2}=lim⁡x→∞2x−52x+3(4x−10−4x−6(2x−5)2)(−x2)= \lim_{x \to \infty} \frac{2x-5}{2x+3} \left( \frac{4x-10-4x-6}{(2x-5)^2} \right)(-x^2)=lim⁡x→∞16x2(2x+3)(2x−5)=lim⁡x→∞16x24x2−4x−15=4.= \lim_{x \to \infty} \frac{16x^2}{(2x+3)(2x-5)} = \lim_{x \to \infty} \frac{16x^2}{4x^2 - 4x - 15} = 4.

So,

lim⁡x→∞K=e4.\lim_{x \to \infty} K = e^4.

Therefore, the sequence converges to e4e^4.

2.2

an=ln⁡(n)−ln⁡(n+1).a_n = \ln(n) - \ln(n+1).

Let

f(x)=ln⁡(xx+1).f(x) = \ln \left( \frac{x}{x+1} \right).lim⁡x→∞f(x)=ln⁡lim⁡x→∞(xx+1)=ln⁡1=0.\lim_{x \to \infty} f(x) = \ln \lim_{x \to \infty} \left( \frac{x}{x+1} \right) = \ln 1 = 0.

Therefore, the sequence converges to 00.

2.3

an=n22n−1sin⁡(1n).a_n = \frac{n^2}{2n-1} \sin\left( \frac{1}{n} \right).

Let

f(x)=x22x−1sin⁡(1x).f(x) = \frac{x^2}{2x-1} \sin\left( \frac{1}{x} \right).lim⁡x→∞x2x−1(sin⁡(1/x)1/x).\lim_{x \to \infty} \frac{x}{2x-1} \left( \frac{\sin(1/x)}{1/x} \right).lim⁡x→∞sin⁡(1/x)1/x=1.\lim_{x \to \infty} \frac{\sin(1/x)}{1/x} = 1.

Thus,

lim⁡x→∞x22x−1sin⁡(1x)=12.\lim_{x \to \infty} \frac{x^2}{2x-1} \sin\left( \frac{1}{x} \right) = \frac{1}{2}.

Therefore, the sequence converges to 12\frac{1}{2}.

Exercise 3
  1. Consider the following sequences.
    Are they monotone? bounded?
    If monotone, determine whether increasing or decreasing.

3.1 {12n}\left\{ \frac{1}{2^n} \right\}

3.2 {2n+1n+2}\left\{ \frac{2^{n+1}}{n+2} \right\}

3.3 {2ne−2n}\{ 2n e^{-2n} \}

Show solution ↓
Solution

3.1

a_{n+1} - a_n = \frac{1}{2^{n+1}} - \frac{1}{2^n} = -\frac{1}{2^{n+1}} < 0.

Thus the sequence is monotonic and decreasing.
It is bounded above and below.
Therefore, it is bounded.

3.2

\frac{a_{n+1}}{a_n} = \frac{2(n+2)}{n+3} > 1.

Thus the sequence is monotonic and increasing.
Therefore, it is unbounded.

3.3

Let

f(x)=2xe−2x.f(x) = 2x e^{-2x}.f'(x) = (-4x+1)e^{-2x} = \frac{-4x+1}{e^{2x}} < 0.

Thus the sequence is monotonic and decreasing.
It is bounded above and below.
Therefore, it is bounded.

Exercise 4
  1. Determine if the following infinite series converge or diverge.

4.1 Telescoping Series: ∑n=1∞(1ln⁡(n+2)−1ln⁡(n+1))\sum_{n=1}^\infty \left( \frac{1}{\ln(n+2)} - \frac{1}{\ln(n+1)} \right)

4.2 Geometric Series: ∑n=1∞3n−1−16n−1\sum_{n=1}^\infty \frac{3^{n-1}-1}{6^{n-1}}

4.3 Geometric Series: ∑n=0∞(eπ)n\sum_{n=0}^\infty \left( \frac{e}{\pi} \right)^n

4.4 p-Series: ∑n=1∞1n5/4\sum_{n=1}^\infty \frac{1}{n^{5/4}}

4.5 p-Series: ∑n=1∞n+1n2n\sum_{n=1}^\infty \frac{n+1}{n^2 \sqrt{n}}

4.6 ∑n=1∞1n2+1\sum_{n=1}^\infty \frac{1}{n^2+1} (Using Integral Test)

4.7 ∑n=1∞21+en\sum_{n=1}^\infty \frac{2}{1+e^n} (Using Integral Test)

4.8 ∑n=1∞ln⁡nn3\sum_{n=1}^\infty \frac{\ln n}{n^3} (Using Comparison Test)

4.9 ∑n=0∞2n+53n\sum_{n=0}^\infty \frac{2^n+5}{3^n} (Using Ratio Test)

Show solution ↓
Solution

4.1 (Telescoping Series)

Sn=−1ln⁡2+1ln⁡(n+2).S_n = -\frac{1}{\ln 2} + \frac{1}{\ln(n+2)}.lim⁡x→∞(−1ln⁡2+1ln⁡(x+2))=−1ln⁡2.\lim_{x \to \infty} \left( -\frac{1}{\ln 2} + \frac{1}{\ln(x+2)} \right) = -\frac{1}{\ln 2}.

Convergent.

4.2

∑(12)n−1−∑(16)n−1=2−65=45.\sum \left( \frac{1}{2} \right)^{n-1} - \sum \left( \frac{1}{6} \right)^{n-1} = 2 - \frac{6}{5} = \frac{4}{5}.

4.3

Geometric series with

r = \frac{e}{\pi} < 1.∑n=0∞(eπ)n=11−e/π=ππ−e.\sum_{n=0}^\infty \left( \frac{e}{\pi} \right)^n = \frac{1}{1 - e/\pi} = \frac{\pi}{\pi - e}.

4.4

pp-series with p = 5/4 > 1.
Convergent.

4.5

∑1n3/2+∑1n5/2.\sum \frac{1}{n^{3/2}} + \sum \frac{1}{n^{5/2}}.

Both converge.
Thus convergent.

4.6

∫1∞1x2+1dx=π4.\int_1^\infty \frac{1}{x^2+1} dx = \frac{\pi}{4}.

Convergent.

4.7

−2ln⁡(e1+e).-2 \ln \left( \frac{e}{1+e} \right).

Convergent.

4.8

By comparison with 1n2\frac{1}{n^2}, convergent.

4.9

L = \frac{2}{3} < 1.3+152=212.3 + \frac{15}{2} = \frac{21}{2}.

Convergent.

Exercise 5
  1. Determine if the following alternating series converge or diverge?

5.1 ∑n=1∞(−1)n−1⋅3n2n+1\sum_{n=1}^{\infty} (-1)^{n-1} \cdot \frac{3n}{2n+1}

5.2 ∑n=1∞(−1)n+1n5n\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n5^n}

Show solution ↓
Solution

5.1

Let

an=3n2n+1.a_n = \frac{3n}{2n+1}.lim⁡n→∞an=lim⁡n→∞3n2n+1=lim⁡n→∞32+1/n=32.\lim_{n \to \infty} a_n = \lim_{n \to \infty} \frac{3n}{2n+1} = \lim_{n \to \infty} \frac{3}{2 + 1/n} = \frac{3}{2}.

Since

lim⁡n→∞an≠0,\lim_{n \to \infty} a_n \neq 0,

the series

∑n=1∞(−1)n−1⋅3n2n+1\sum_{n=1}^{\infty} (-1)^{n-1} \cdot \frac{3n}{2n+1}

diverges.

5.2

Let

an=1n5n,an+1=1(n+1)5n+1.a_n = \frac{1}{n5^n}, \qquad a_{n+1} = \frac{1}{(n+1)5^{n+1}}.

Consider

\frac{1}{(n+1)5^{n+1}} < \frac{1}{n5^n},

so the sequence is decreasing.

lim⁡n→∞an=lim⁡n→∞1n5n=0.\lim_{n \to \infty} a_n = \lim_{n \to \infty} \frac{1}{n5^n} = 0.

Therefore,

∑n=1∞(−1)n+1n5n\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n5^n}

converges by the Alternating Series Test.

Exercise 6
  1. Determine if
∑n=1∞(−1)nn!7−n\sum_{n=1}^{\infty} \frac{(-1)^n}{n!7^{-n}}

absolutely converge or conditionally converge or diverge. (Using Ratio Test)

Show solution ↓
Solution
∑n=1∞(−1)nn!7−n=∑n=1∞(−1)n⋅7nn!=∑n=1∞(−7)nn!.\sum_{n=1}^{\infty} \frac{(-1)^n}{n!7^{-n}} = \sum_{n=1}^{\infty} \frac{(-1)^n \cdot 7^n}{n!} = \sum_{n=1}^{\infty} \frac{(-7)^n}{n!}.

Let

an=(−7)nn!.a_n = \frac{(-7)^n}{n!}.∣an+1an∣=7n+1(n+1)!⋅n!7n=7n+1.\left| \frac{a_{n+1}}{a_n} \right| = \frac{7^{n+1}}{(n+1)!} \cdot \frac{n!}{7^n} = \frac{7}{n+1}.lim⁡n→∞∣an+1an∣=lim⁡n→∞7n+1=0.\lim_{n \to \infty} \left| \frac{a_{n+1}}{a_n} \right| = \lim_{n \to \infty} \frac{7}{n+1} = 0.

Since L = 0 < 1, the series absolutely converges.

Exercise 7
  1. Determine if
∑n=1∞(−1)n+1(3n+5)2\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{(3n+5)^2}

absolutely converge or conditionally converge or diverge. (Using Comparison Test)

Show solution ↓
Solution

Let

an=(−1)n+1(3n+5)2,bn=1n2.a_n = \frac{(-1)^{n+1}}{(3n+5)^2}, \qquad b_n = \frac{1}{n^2}.∑n=1∞∣an∣=∑n=1∞1(3n+5)2.\sum_{n=1}^{\infty} |a_n| = \sum_{n=1}^{\infty} \frac{1}{(3n+5)^2}.

Since

1(3n+5)2≤1n2,\frac{1}{(3n+5)^2} \le \frac{1}{n^2},

we have ∣an∣≤bn|a_n| \le b_n.

∑n=1∞1n2\sum_{n=1}^{\infty} \frac{1}{n^2}

is a convergent pp-series with p = 2 > 1.

Therefore,

∑n=1∞(−1)n+1(3n+5)2\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{(3n+5)^2}

absolutely converges.

Exercise 8
  1. Find the radius of convergence and the interval of convergence of the power series
∑n=0∞xn32n.\sum_{n=0}^{\infty} \frac{x^n}{3^{2n}}.
Show solution ↓
Solution
∣an+1an∣=∣xn+132(n+1)⋅32nxn∣=∣x32∣=∣x∣9.\left| \frac{a_{n+1}}{a_n} \right| = \left| \frac{x^{n+1}}{3^{2(n+1)}} \cdot \frac{3^{2n}}{x^n} \right| = \left| \frac{x}{3^2} \right| = \frac{|x|}{9}.

The series converges when

\frac{|x|}{9} < 1 \quad \Rightarrow \quad |x| < 9.

So

-9 < x < 9.

Endpoints:

At x=9x = 9:

∑n=0∞9n32n=∑n=0∞9n9n=∑n=0∞1,\sum_{n=0}^{\infty} \frac{9^n}{3^{2n}} = \sum_{n=0}^{\infty} \frac{9^n}{9^n} = \sum_{n=0}^{\infty} 1,

which diverges.

At x=−9x = -9:

∑n=0∞(−9)n32n=∑n=0∞(−1)n,\sum_{n=0}^{\infty} \frac{(-9)^n}{3^{2n}} = \sum_{n=0}^{\infty} (-1)^n,

which diverges.

Therefore, the radius of convergence is

R=9R = 9

and the interval of convergence is

-9 < x < 9.
Exercise 9
  1. Find the Taylor polynomial of f(x)=1xf(x) = \frac{1}{x} about the given point x=1x = 1.
Show solution ↓
Solution

Let f(x)=1xf(x) = \frac{1}{x}, so f(1)=1f(1) = 1.

f′(x)=−1x2,f′(1)=−1f'(x) = -\frac{1}{x^2}, \quad f'(1) = -1f′′(x)=2x3,f′′(1)=2f''(x) = \frac{2}{x^3}, \quad f''(1) = 2f(3)(x)=−6x4,f(3)(1)=−6f^{(3)}(x) = -\frac{6}{x^4}, \quad f^{(3)}(1) = -6f(4)(x)=24x5,f(4)(1)=24f^{(4)}(x) = \frac{24}{x^5}, \quad f^{(4)}(1) = 24f(5)(x)=−120x6,f(5)(1)=−120f^{(5)}(x) = -\frac{120}{x^6}, \quad f^{(5)}(1) = -120⋯\cdotsf(n)(x)=(−1)nn!xn+1,f(n)(1)=(−1)nn!f^{(n)}(x) = \frac{(-1)^n n!}{x^{n+1}}, \quad f^{(n)}(1) = (-1)^n n!

Therefore, the Taylor polynomial about x=1x = 1 is:

f(1)+f′(1)(x−1)+12!f′′(1)(x−1)2+13!f(3)(1)(x−1)3+⋯+1n!f(n)(1)(x−1)nf(1) + f'(1)(x-1) + \frac{1}{2!} f''(1)(x-1)^2 + \frac{1}{3!} f^{(3)}(1)(x-1)^3 + \dots + \frac{1}{n!} f^{(n)}(1)(x-1)^n=1+(−1)(x−1)+12!(2)(x−1)2+13!(−6)(x−1)3+⋯+1n!(−1)n(n!)(x−1)n= 1 + (-1)(x-1) + \frac{1}{2!}(2)(x-1)^2 + \frac{1}{3!}(-6)(x-1)^3 + \dots + \frac{1}{n!} (-1)^n(n!)(x-1)^n=1−(x−1)+(x−1)2−(x−1)3+(x−1)4−(x−1)5+⋯+(−1)n(x−1)n.= 1 - (x-1) + (x-1)^2 - (x-1)^3 + (x-1)^4 - (x-1)^5 + \dots + (-1)^n (x-1)^n.
Exercise 10
  1. Find Maclaurin series of f(x)=ln⁡(1−x)f(x) = \ln(1-x).
Show solution ↓
Solution

Let f(x)=ln⁡(1−x)f(x) = \ln(1-x), so f(0)=0f(0) = 0.

f′(x)=−11−x=(−1)(1−x)−1,f′(0)=−1f'(x) = -\frac{1}{1-x} = (-1)(1-x)^{-1}, \quad f'(0) = -1f′′(x)=(−1)(1−x)−2,f′′(0)=−1f''(x) = (-1)(1-x)^{-2}, \quad f''(0) = -1f(3)(x)=(−1)(−2)(1−x)−3(−1),f(3)(0)=−2f^{(3)}(x) = (-1)(-2)(1-x)^{-3}(-1), \quad f^{(3)}(0) = -2f(4)(x)=(−1)(−2)(−3)(1−x)−4(−1)(−1),f(4)(0)=−3!f^{(4)}(x) = (-1)(-2)(-3)(1-x)^{-4}(-1)(-1), \quad f^{(4)}(0) = -3!⋯\cdotsf(n)(x)=(−1)2n−1(n−1)!(1−x)−n=−(n−1)!(1−x)−n,f(n)(0)=−(n−1)!f^{(n)}(x) = (-1)^{2n-1}(n-1)!(1-x)^{-n} = -(n-1)!(1-x)^{-n}, \quad f^{(n)}(0) = -(n-1)!

Therefore,

∑n=1∞f(n)(0)n!xn=∑n=1∞−(n−1)!n!xn=−∑n=1∞xnn.\sum_{n=1}^{\infty} \frac{f^{(n)}(0)}{n!} x^n = \sum_{n=1}^{\infty} \frac{-(n-1)!}{n!} x^n = -\sum_{n=1}^{\infty} \frac{x^n}{n}.
Exercise 11
  1. Find the power series of f(x)=14−xf(x) = \frac{1}{\sqrt{4-x}}.
Show solution ↓
Solution
f(x)=14−x=12(1−x/4)1/2=12(1−x4)−1/2.f(x) = \frac{1}{\sqrt{4-x}} = \frac{1}{2(1 - x/4)^{1/2}} = \frac{1}{2}(1 - \frac{x}{4})^{-1/2}.

Using

(1+x)k=∑n=0∞(kn)xn,(1+x)^k = \sum_{n=0}^{\infty} \binom{k}{n} x^n,

take k=−12k = -\frac{1}{2} and substitute x↦−x4x \mapsto -\frac{x}{4}.

(−1/2n)=(−1/2)(−3/2)(−5/2)…(−1/2−n+1)n!=(−1)n(1⋅3⋅5⋯(2n−1))2nn!.\binom{-1/2}{n} = \frac{(-1/2)(-3/2)(-5/2)\dots(-1/2-n+1)}{n!} = \frac{(-1)^n (1\cdot3\cdot5\cdots(2n-1))}{2^n n!}.

Thus,

12(1−x4)−1/2=12∑n=0∞(−1/2n)(−x4)n\frac{1}{2}(1 - \frac{x}{4})^{-1/2} = \frac{1}{2} \sum_{n=0}^{\infty} \binom{-1/2}{n} \left(-\frac{x}{4}\right)^n=12∑n=0∞[(−1)n(1⋅3⋅5⋯(2n−1))2nn!⋅(−1)nxn4n]= \frac{1}{2} \sum_{n=0}^{\infty} \left[ \frac{(-1)^n (1\cdot3\cdot5\cdots(2n-1))}{2^n n!} \cdot \frac{(-1)^n x^n}{4^n} \right]=12∑n=0∞(1⋅3⋅5⋯(2n−1))xn8nn!= \frac{1}{2} \sum_{n=0}^{\infty} \frac{(1\cdot3\cdot5\cdots(2n-1)) x^n}{8^n n!}=12[1+x8+3x282⋅2!+15x383⋅3!+… ].= \frac{1}{2} \left[ 1 + \frac{x}{8} + \frac{3x^2}{8^2 \cdot 2!} + \frac{15x^3}{8^3 \cdot 3!} + \dots \right].
Exercise 12
  1. Draw graphs and write the Fourier series of
f(x)={x+2,−2≤xlt;02,0lt;x≤2f(x) = \begin{cases} x+2, & -2 \le x < 0 \\ 2, & 0 < x \le 2 \end{cases}
Show solution ↓
Solution

Since 2L=42L = 4, we have L=2L = 2.

f(x)=a02+∑n=1∞(ancos⁡(nπxL)+bnsin⁡(nπxL)).f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty} \left( a_n \cos\left(\frac{n\pi x}{L}\right) + b_n \sin\left(\frac{n\pi x}{L}\right) \right).

Finding a0a_0:

a0=1L∫−LLf(x) dx=12∫−22f(x) dxa_0 = \frac{1}{L} \int_{-L}^{L} f(x)\,dx = \frac{1}{2} \int_{-2}^{2} f(x)\,dx=12(∫022 dx+∫−20(x+2) dx)= \frac{1}{2} \left( \int_{0}^{2} 2\,dx + \int_{-2}^{0} (x+2)\,dx \right)=12([2x]02+[x22+2x]−20)=3.= \frac{1}{2} \left( [2x]_{0}^{2} + \left[\frac{x^2}{2}+2x\right]_{-2}^{0} \right) = 3.

Finding ana_n:

an=12(∫022cos⁡(nπx2)dx+∫−20(x+2)cos⁡(nπx2)dx)a_n = \frac{1}{2} \left( \int_{0}^{2} 2\cos\left(\frac{n\pi x}{2}\right)dx + \int_{-2}^{0} (x+2)\cos\left(\frac{n\pi x}{2}\right)dx \right)=2(nπ)2(1−(−1)n)=−2(nπ)2((−1)n−1).= \frac{2}{(n\pi)^2}(1 - (-1)^n) = -\frac{2}{(n\pi)^2}((-1)^n - 1).

Finding bnb_n:

bn=12(∫022sin⁡(nπx2)dx+∫−20(x+2)sin⁡(nπx2)dx)b_n = \frac{1}{2} \left( \int_{0}^{2} 2\sin\left(\frac{n\pi x}{2}\right)dx + \int_{-2}^{0} (x+2)\sin\left(\frac{n\pi x}{2}\right)dx \right)=−2nπ(−1)n.= -\frac{2}{n\pi} (-1)^n.

Therefore, the Fourier series is:

f(x)=32+∑n=1∞(−2(nπ)2((−1)n−1)cos⁡(nπx2)−2nπ(−1)nsin⁡(nπx2)).f(x) = \frac{3}{2} + \sum_{n=1}^{\infty} \left( -\frac{2}{(n\pi)^2}((-1)^n - 1) \cos\left(\frac{n\pi x}{2}\right) - \frac{2}{n\pi} (-1)^n \sin\left(\frac{n\pi x}{2}\right) \right).
Exercise 13
  1. Write Fourier series of f(x)=∣x∣−1f(x) = |x| - 1 with period −2≤x≤2-2 \le x \le 2.
Show solution ↓
Solution

From

f(x)=a02+∑n=1∞(ancos⁡(nπxL)+bnsin⁡(nπxL)).f(x) = \frac{a_0}{2} + \sum_{n=1}^\infty \left( a_n \cos\left(\frac{n\pi x}{L}\right) + b_n \sin\left(\frac{n\pi x}{L}\right) \right).

Since the period is 2L=42L = 4, we have L=2L = 2.

Check parity:

f(−x)=∣−x∣−1=∣x∣−1=f(x).f(-x) = |-x| - 1 = |x| - 1 = f(x).

Thus, f(x)f(x) is even, so bn=0b_n = 0.

Find a0a_0:

a0=1L∫−LLf(x) dx=12∫−22(∣x∣−1) dx=∫02(x−1) dx.a_0 = \frac{1}{L} \int_{-L}^{L} f(x)\,dx = \frac{1}{2} \int_{-2}^{2} (|x| - 1)\,dx = \int_0^2 (x - 1)\,dx.=[x22−x]02=(2−2)−0=0.= \left[ \frac{x^2}{2} - x \right]_0^2 = (2 - 2) - 0 = 0.

Find ana_n:

an=1L∫−LLf(x)cos⁡(nπx2)dx=∫02(x−1)cos⁡(nπx2)dx.a_n = \frac{1}{L} \int_{-L}^{L} f(x) \cos\left(\frac{n\pi x}{2}\right) dx = \int_0^2 (x - 1) \cos\left(\frac{n\pi x}{2}\right) dx.

Integrating by parts,

an=4(nπ)2((−1)n−1).a_n = \frac{4}{(n\pi)^2} \left( (-1)^n - 1 \right).

Thus, the Fourier series is

f(x)=∑n=1∞4(nπ)2((−1)n−1)cos⁡(nπx2).f(x) = \sum_{n=1}^\infty \frac{4}{(n\pi)^2} \left( (-1)^n - 1 \right) \cos\left(\frac{n\pi x}{2}\right).
Exercise 14
  1. Write Fourier series of
f(x)={2,−2lt;xlt;0−2,0lt;x≤2f(x) = \begin{cases} 2, & -2 < x < 0 \\ -2, & 0 < x \le 2 \end{cases}
Show solution ↓
Solution

Here 2L=42L = 4, so L=2L = 2.

Check parity:

f(−x)=−f(x),f(-x) = -f(x),

so f(x)f(x) is odd. Hence a0=an=0a_0 = a_n = 0.

Find bnb_n:

bn=1L∫−LLf(x)sin⁡(nπx2)dx=22∫02(−2)sin⁡(nπx2)dx.b_n = \frac{1}{L} \int_{-L}^{L} f(x) \sin\left(\frac{n\pi x}{2}\right) dx = \frac{2}{2} \int_0^2 (-2) \sin\left(\frac{n\pi x}{2}\right) dx.=−2∫02sin⁡(nπx2)dx=4nπ((−1)n−1).= -2 \int_0^2 \sin\left(\frac{n\pi x}{2}\right) dx = \frac{4}{n\pi} \left( (-1)^n - 1 \right).

Thus,

f(x)=∑n=1∞4nπ((−1)n−1)sin⁡(nπx2).f(x) = \sum_{n=1}^\infty \frac{4}{n\pi} \left( (-1)^n - 1 \right) \sin\left(\frac{n\pi x}{2}\right).
Exercise 15
  1. Determine Fourier series of
f(x)={x+π,−π≤xlt;0x−π,0lt;x≤πf(x) = \begin{cases} x+\pi, & -\pi \le x < 0 \\ x-\pi, & 0 < x \le \pi \end{cases}

and show that

∑n=1∞(−1)n−12n−1=π4.\sum_{n=1}^\infty \frac{(-1)^{n-1}}{2n-1} = \frac{\pi}{4}.
Show solution ↓
Solution

Here 2L=2π2L = 2\pi, so L=πL = \pi.

Check parity:

f(−x)=−f(x),f(-x) = -f(x),

so f(x)f(x) is odd. Hence a0=an=0a_0 = a_n = 0.

Find bnb_n:

bn=1π∫−ππf(x)sin⁡(nx) dx=2π∫0π(x−π)sin⁡(nx) dx.b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin(nx)\,dx = \frac{2}{\pi} \int_0^\pi (x-\pi) \sin(nx)\,dx.

After integration by parts,

bn=−2n.b_n = -\frac{2}{n}.

Thus,

f(x)=−∑n=1∞2nsin⁡(nx).f(x) = -\sum_{n=1}^\infty \frac{2}{n} \sin(nx).

Evaluate at x=π2x = \frac{\pi}{2}:

−π2=−2∑n=1∞1nsin⁡(nπ2).-\frac{\pi}{2} = -2 \sum_{n=1}^\infty \frac{1}{n} \sin\left(\frac{n\pi}{2}\right).

Hence,

π4=∑n=1∞(−1)n−12n−1.\frac{\pi}{4} = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{2n-1}.
Exercise 16
  1. Determine Fourier series of
f(x)={x+2,−2lt;x≤00,0lt;x≤2f(x) = \begin{cases} x+2, & -2 < x \le 0 \\ 0, & 0 < x \le 2 \end{cases}

and find the convergent value at x=0x = 0.

Show solution ↓
Solution

Here 2L=42L = 4, so L=2L = 2.

Find a0a_0:

a0=12∫−22f(x) dx=12∫−20(x+2) dx.a_0 = \frac{1}{2} \int_{-2}^2 f(x)\,dx = \frac{1}{2} \int_{-2}^0 (x+2)\,dx.=12[x22+2x]−20=1.= \frac{1}{2} \left[ \frac{x^2}{2} + 2x \right]_{-2}^0 = 1.

Find ana_n:

an=12∫−20(x+2)cos⁡(nπx2)dx=−2(nπ)2((−1)n−1).a_n = \frac{1}{2} \int_{-2}^0 (x+2) \cos\left(\frac{n\pi x}{2}\right) dx = -\frac{2}{(n\pi)^2} \left( (-1)^n - 1 \right).

Find bnb_n:

bn=12∫−20(x+2)sin⁡(nπx2)dx=−2nπ.b_n = \frac{1}{2} \int_{-2}^0 (x+2) \sin\left(\frac{n\pi x}{2}\right) dx = -\frac{2}{n\pi}.

Thus,

f(x)=12+∑n=1∞(−2(nπ)2((−1)n−1)cos⁡(nπx2)−2nπsin⁡(nπx2)).f(x) = \frac{1}{2} + \sum_{n=1}^\infty \left( -\frac{2}{(n\pi)^2} \left( (-1)^n - 1 \right) \cos\left(\frac{n\pi x}{2}\right) - \frac{2}{n\pi} \sin\left(\frac{n\pi x}{2}\right) \right).

Since x=0x=0 is a point of discontinuity, the Fourier series converges to

f(0+)+f(0−)2=0+22=1.\frac{f(0^+) + f(0^-)}{2} = \frac{0 + 2}{2} = 1.