Help with Fourier Series

PA3040D

Junior Member
Joined
Jan 30, 2021
Messages
97
Dear Expert,
Please check the attached Fourier series solution. Kindly advise if there are any mistakes or steps I have done incorrectly. I would also appreciate your suggestions on how to minimize the time taken to solve it. and what steps that I have done over
Please accept my apologies if the handwriting in the image is not clear enough.
 

Attachments

  • WhatsApp Image 2025-04-23 at 10.04.34.jpeg
    WhatsApp Image 2025-04-23 at 10.04.34.jpeg
    116.1 KB · Views: 8
  • CamScanner 04-23-2025 10.12.pdf
    427.6 KB · Views: 2
Dear Expert,
Please check the attached Fourier series solution. Kindly advise if there are any mistakes or steps I have done incorrectly. I would also appreciate your suggestions on how to minimize the time taken to solve it. and what steps that I have done over
Please accept my apologies if the handwriting in the image is not clear enough.
The graph is not periodic but you wrote it has a period of 4\displaystyle 4. Are you sure that this is the correct graph?
 
Of course, yes—that was my mistake during the drawing. However, the solution has been corrected by referring to the original question.
Please take a look at the original question that I have attached.
 

Attachments

  • WhatsApp Image 2025-04-23 at 19.42.29.jpeg
    WhatsApp Image 2025-04-23 at 19.42.29.jpeg
    53.7 KB · Views: 2
Most of your work is correct. You just need to organize your calculations.

You write an\displaystyle a_n when you actually are calculating a0\displaystyle a_0. You write bn\displaystyle b_n when you are calculating an\displaystyle a_n and in the same time you write bn\displaystyle b_n when you are calculating bn\displaystyle b_n.

You calculated an\displaystyle a_n as +4n2π2\displaystyle +\frac{4}{n^2\pi^2} when it should be 4n2π2\displaystyle -\frac{4}{n^2\pi^2} for n=1,3,5,\displaystyle n=1,3,5,\cdots

You say a0=1\displaystyle a_0 = 1 which is correct. You write:

f(x)=a02+\displaystyle f(x) = \frac{a_0}{2} + \cdots \rightarrow correct, then you write:

f(x)=1+\displaystyle f(x) = 1 + \cdots \rightarrow wrong.

You should write: f(x)=12+\displaystyle f(x) = \frac{1}{2} + \cdots

Now you know the values of a0,an,\displaystyle a_0, a_n, and bn\displaystyle b_n. Write the general form as:

f(x)=a02+n=1ancosnπx2+bnsinnπx2\displaystyle f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty}a_n\cos\frac{n\pi x}{2} + b_n\sin \frac{n\pi x}{2}

Since an\displaystyle a_n takes only odd indices, you can change any n\displaystyle n there to 2n1\displaystyle 2n-1. Now replace the coefficients with their values.

f(x)=12+n=14(2n1)2π2cos(2n1)πx2+(1)n2nπsinnπx2\displaystyle f(x) = \frac{1}{2} + \sum_{n=1}^{\infty}-\frac{4}{(2n-1)^2\pi^2}\cos\frac{(2n-1)\pi x}{2} + (-1)^n\frac{2}{n\pi}\sin \frac{n\pi x}{2}

Now the second term will keep track of the odd indices while the third term will keep track of both odd and even as bn\displaystyle b_n takes both.
 
Most of your work is correct. You just need to organize your calculations.

You write an\displaystyle a_n when you actually are calculating a0\displaystyle a_0. You write bn\displaystyle b_n when you are calculating an\displaystyle a_n and in the same time you write bn\displaystyle b_n when you are calculating bn\displaystyle b_n.

You calculated an\displaystyle a_n as +4n2π2\displaystyle +\frac{4}{n^2\pi^2} when it should be 4n2π2\displaystyle -\frac{4}{n^2\pi^2} for n=1,3,5,\displaystyle n=1,3,5,\cdots

You say a0=1\displaystyle a_0 = 1 which is correct. You write:

f(x)=a02+\displaystyle f(x) = \frac{a_0}{2} + \cdots \rightarrow correct, then you write:

f(x)=1+\displaystyle f(x) = 1 + \cdots \rightarrow wrong.

You should write: f(x)=12+\displaystyle f(x) = \frac{1}{2} + \cdots

Now you know the values of a0,an,\displaystyle a_0, a_n, and bn\displaystyle b_n. Write the general form as:

f(x)=a02+n=1ancosnπx2+bnsinnπx2\displaystyle f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty}a_n\cos\frac{n\pi x}{2} + b_n\sin \frac{n\pi x}{2}

Since an\displaystyle a_n takes only odd indices, you can change any n\displaystyle n there to 2n1\displaystyle 2n-1. Now replace the coefficients with their values.

f(x)=12+n=14(2n1)2π2cos(2n1)πx2+(1)n2nπsinnπx2\displaystyle f(x) = \frac{1}{2} + \sum_{n=1}^{\infty}-\frac{4}{(2n-1)^2\pi^2}\cos\frac{(2n-1)\pi x}{2} + (-1)^n\frac{2}{n\pi}\sin \frac{n\pi x}{2}

Now the second term will keep track of the odd indices while the third term will keep track of both odd and even as bn\displaystyle b_n takes both.
Great thanks sir for help and advice
 
Top