Exercise Set 2

Theory

No theory yet.

Exercises

Exercise 1
Question
  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
Question
  1. Determine if the following sequences converge or diverge. If it converges, find its limit.

2.1 {(2n+32n5)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 {n22n1sin(1n)}\left\{ \frac{n^2}{2n-1} \sin\left(\frac{1}{n}\right) \right\}

Show solution ↓
Solution

2.1

Let

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

Then

lnK=xln(2x+32x5).\ln K = x \ln \left( \frac{2x+3}{2x-5} \right).limxlnK=limxln(2x+32x5)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:

=limx2x52x+3((2x5)(2)(2x+3)(2)(2x5)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}=limx2x52x+3(4x104x6(2x5)2)(x2)= \lim_{x \to \infty} \frac{2x-5}{2x+3} \left( \frac{4x-10-4x-6}{(2x-5)^2} \right)(-x^2)=limx16x2(2x+3)(2x5)=limx16x24x24x15=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,

limxK=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).limxf(x)=lnlimx(xx+1)=ln1=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=n22n1sin(1n).a_n = \frac{n^2}{2n-1} \sin\left( \frac{1}{n} \right).

Let

f(x)=x22x1sin(1x).f(x) = \frac{x^2}{2x-1} \sin\left( \frac{1}{x} \right).limxx2x1(sin(1/x)1/x).\lim_{x \to \infty} \frac{x}{2x-1} \left( \frac{\sin(1/x)}{1/x} \right).limxsin(1/x)1/x=1.\lim_{x \to \infty} \frac{\sin(1/x)}{1/x} = 1.

Thus,

limxx22x1sin(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
Question
  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 {2ne2n}\{ 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)=2xe2x.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
Question
  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=13n116n1\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=11n5/4\sum_{n=1}^\infty \frac{1}{n^{5/4}}

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

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

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

4.8 n=1lnnn3\sum_{n=1}^\infty \frac{\ln n}{n^3} (Using Comparison Test)

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

Show solution ↓
Solution

4.1 (Telescoping Series)

Sn=1ln2+1ln(n+2).S_n = -\frac{1}{\ln 2} + \frac{1}{\ln(n+2)}.limx(1ln2+1ln(x+2))=1ln2.\lim_{x \to \infty} \left( -\frac{1}{\ln 2} + \frac{1}{\ln(x+2)} \right) = -\frac{1}{\ln 2}.

Convergent.

4.2

(12)n1(16)n1=265=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=11e/π=ππ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

11x2+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
Question
  1. Determine if the following alternating series converge or diverge?

5.1 n=1(1)n13n2n+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}.limnan=limn3n2n+1=limn32+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

limnan0,\lim_{n \to \infty} a_n \neq 0,

the series

n=1(1)n13n2n+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.

limnan=limn1n5n=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
Question
  1. Determine if
n=1(1)nn!7n\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!7n=n=1(1)n7nn!=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}.limnan+1an=limn7n+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
Question
  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=1an=n=11(3n+5)2.\sum_{n=1}^{\infty} |a_n| = \sum_{n=1}^{\infty} \frac{1}{(3n+5)^2}.

Since

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

we have anbn|a_n| \le b_n.

n=11n2\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
Question
  1. Find the radius of convergence and the interval of convergence of the power series
n=0xn32n.\sum_{n=0}^{\infty} \frac{x^n}{3^{2n}}.
Show solution ↓
Solution
an+1an=xn+132(n+1)32nxn=x32=x9.\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=09n32n=n=09n9n=n=01,\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
Question
  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)(x1)+12!f(1)(x1)2+13!f(3)(1)(x1)3++1n!f(n)(1)(x1)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)(x1)+12!(2)(x1)2+13!(6)(x1)3++1n!(1)n(n!)(x1)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(x1)+(x1)2(x1)3+(x1)4(x1)5++(1)n(x1)n.= 1 - (x-1) + (x-1)^2 - (x-1)^3 + (x-1)^4 - (x-1)^5 + \dots + (-1)^n (x-1)^n.
Exercise 10
Question
  1. Find Maclaurin series of f(x)=ln(1x)f(x) = \ln(1-x).
Show solution ↓
Solution

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

f(x)=11x=(1)(1x)1,f(0)=1f'(x) = -\frac{1}{1-x} = (-1)(1-x)^{-1}, \quad f'(0) = -1f(x)=(1)(1x)2,f(0)=1f''(x) = (-1)(1-x)^{-2}, \quad f''(0) = -1f(3)(x)=(1)(2)(1x)3(1),f(3)(0)=2f^{(3)}(x) = (-1)(-2)(1-x)^{-3}(-1), \quad f^{(3)}(0) = -2f(4)(x)=(1)(2)(3)(1x)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)2n1(n1)!(1x)n=(n1)!(1x)n,f(n)(0)=(n1)!f^{(n)}(x) = (-1)^{2n-1}(n-1)!(1-x)^{-n} = -(n-1)!(1-x)^{-n}, \quad f^{(n)}(0) = -(n-1)!

Therefore,

n=1f(n)(0)n!xn=n=1(n1)!n!xn=n=1xnn.\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
Question
  1. Find the power series of f(x)=14xf(x) = \frac{1}{\sqrt{4-x}}.
Show solution ↓
Solution
f(x)=14x=12(1x/4)1/2=12(1x4)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 xx4x \mapsto -\frac{x}{4}.

(1/2n)=(1/2)(3/2)(5/2)(1/2n+1)n!=(1)n(135(2n1))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(1x4)1/2=12n=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=12n=0[(1)n(135(2n1))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]=12n=0(135(2n1))xn8nn!= \frac{1}{2} \sum_{n=0}^{\infty} \frac{(1\cdot3\cdot5\cdots(2n-1)) x^n}{8^n n!}=12[1+x8+3x2822!+15x3833!+].= \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
Question
  1. Draw graphs and write the Fourier series of
f(x)={x+2,2xlt;02,0lt;x2f(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=1LLLf(x)dx=1222f(x)dxa_0 = \frac{1}{L} \int_{-L}^{L} f(x)\,dx = \frac{1}{2} \int_{-2}^{2} f(x)\,dx=12(022dx+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)n1).= \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)n1)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
Question
  1. Write Fourier series of f(x)=x1f(x) = |x| - 1 with period 2x2-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)=x1=x1=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=1LLLf(x)dx=1222(x1)dx=02(x1)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.=[x22x]02=(22)0=0.= \left[ \frac{x^2}{2} - x \right]_0^2 = (2 - 2) - 0 = 0.

Find ana_n:

an=1LLLf(x)cos(nπx2)dx=02(x1)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)n1).a_n = \frac{4}{(n\pi)^2} \left( (-1)^n - 1 \right).

Thus, the Fourier series is

f(x)=n=14(nπ)2((1)n1)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
Question
  1. Write Fourier series of
f(x)={2,2lt;xlt;02,0lt;x2f(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=1LLLf(x)sin(nπx2)dx=2202(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.=202sin(nπx2)dx=4nπ((1)n1).= -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=14nπ((1)n1)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
Question
  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)n12n1=π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=12nsin(nx).f(x) = -\sum_{n=1}^\infty \frac{2}{n} \sin(nx).

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

π2=2n=11nsin(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)n12n1.\frac{\pi}{4} = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{2n-1}.
Exercise 16
Question
  1. Determine Fourier series of
f(x)={x+2,2lt;x00,0lt;x2f(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=1222f(x)dx=1220(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=1220(x+2)cos(nπx2)dx=2(nπ)2((1)n1).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=1220(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)n1)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.