I need to find the Fourier series of $$ f(x)=\begin{cases}a,& 0<x<\frac{\pi}{3}\\ 0,&\frac{\pi}{3}<x<\frac{2\pi}{3}\\-a,& \frac{2\pi}{3}<x<\pi\\ \end{cases} $$ $$ f(x)= a_0+\sum_{n=1}^{\infty}a_n\cos\frac{n\pi x}{L}+\sum_{n=1}^{\infty}b_n\sin\frac{n\pi x}{L}, $$ $$ a_0 = \frac{1}{2\pi} \int_{-\pi}^{\pi} f(x) dx $$ $$ a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x)cos(nx)dx $$ $$ b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x)sin(nx)dx $$ I found That An and A0 are both equal to 0 which meant i only had Bn to find $$ b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x)sin(nx)dx $$ $$ b_n = \frac{1}{\pi} \int_{0}^{\frac{\pi}{3}} asin(nx)dx + \frac{1}{\pi} \int_\frac{2\pi}{3}^{{\pi}} -asin(nx)dx $$ $$ b_n = \frac{a}{n\pi}\left[-\cos(nx)\right]_0^{\frac{\pi}3} + \frac{a}{n\pi}\left[\cos(nx)\right]_\frac{2\pi}3^{\pi} $$ When n is odd $$ b_n = 0 $$ When n = 2 , 4 $$ b_n = \frac{a}{n\pi}\left[1-\cos(n\frac{\pi}{3}) + \cos(n\pi) -\cos(\frac{2n\pi}{3})\right] $$ $$ b_n = \frac{3a}{n\pi} $$ When n = 6 bn = 0 So this gives me a Fourier Series of $$ f(x)=\frac{3a}{\pi}\left[\frac{1}{2}\sin(2x)+\frac{1}{4}\sin(4x)+\frac{1}{8}\sin(8x).... \right] $$ But the book has a solution of $$ f(x)=\frac{3a}{\pi}\left[\sin(2x)+\frac{1}{2}\sin(4x)+\frac{1}{4}\sin(8x).... \right] $$ Not sure where im going wrong !
2026-04-28 20:15:48.1777407348
Constructing a Fourier Series
577 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in FOURIER-SERIES
- order of zero of modular form from it's expansion at infinity
- Fourier series expansion of $\frac{\pi^4}{96}$ and $\frac{\pi^4}{90}$
- How is $\int_{-T_0/2}^{+T_0/2} \delta(t) \cos(n\omega_0 t)dt=1$ and $\int_{-T_0/2}^{+T_0/2} \delta(t) \sin(n\omega_0 t)=0$?
- Fourier series. Find the sum $\sum_{n=1}^\infty \frac{(-1)^{n+1}}{2n+1}$
- How get a good approximation of integrals involving the gamma function, exponentials and the fractional part?
- The convolution theorem for fourier series.:$ \widehat{f*g}(x) =2π\hat{g}(x)\cdot\hat{f}(x) $
- Ergodicity of a skew product
- Fourier Series on $L^1\left(\left[0,1\right)\right)\cap C\left(\left[0,1\right)\right)$
- Parseval's Identity Proof Monotone/Dominated Convergence Theorem
- How can I interchange the sum signs
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The standard Fourier series is on an interval of length $2\pi$, whereas your problem is posed on $[0,\pi]$. $L$ has to figure into the coefficients, which you can see just by looking at the constant term.
In other words, if you are going to expand $f$ on $[0,\pi]$, then the standard expansion will involve a constant, and $\sin(2nx)$, $\cos(2nx)$. Assuming you have such an expansion $$ f(x) = a_{0} + \sum_{n=1}^{\infty} a_{n}\cos(2nx)+\sum_{n=1}^{\infty}b_{n}\cos(2nx), $$ then you multiply by one of these functions, on both sides, integrate over $[0,\pi]$, use the fact that the integrals of unlike terms are zero, in order to obtain $$ \begin{align} \int_{0}^{\pi}f(x)dx & = a_{0}\int_{0}^{\pi}dx =\pi a_{0}\\ \int_{0}^{\pi}f(x)\cos(2nx)dx & = a_{n}\int_{0}^{\pi}\cos^{2}(2nx)\,dx=a_{n}\frac{\pi}{2},\;\;\; n > 0,\\ \int_{0}^{\pi}f(x)\sin(2nx)dx & = b_{n}\int_{0}^{\pi}\sin^{2}(2nx)\,dx=b_{n}\frac{\pi}{2}. \end{align} $$ The values of integrals of $\sin^{2}$ and $\cos^{2}$ are easily determined: both types of integrals are over a full period and, so must be equal; and $\sin^{2}(2nx)+\cos^{2}(2nx)=1$, which means that the integrals of $\sin^{2}$ and $\cos^{2}$ are half of the period (period=$\pi$, so integrals of $\sin^{2}$ and $\cos^{2}$ are $\pi/2$.) So your series becomes $$ \begin{align} f(x) & \sim \frac{1}{\pi}\int_{0}^{\pi}f(x)\,dx + \\ & + \sum_{n=1}^{\infty}\left(\frac{2}{\pi}\int_{0}^{\pi}f(x)\cos(2nx)\,dx\right)\cos(2nx) \\ & +\sum_{n=1}^{\infty}\left(\frac{2}{\pi}\int_{0}^{\pi}f(x)\sin(2nx)\,dx\right)\sin(2nx). \end{align} $$ The normalization constants $\frac{2}{\pi}$ and ${1}{\pi}$ come from dividing by the integrals of the squares of $1$, $\sin(2nx)$ and $\cos(2nx)$.
Your function $f$ is $a$ times a part which is odd about the $x=\pi/2$. The $\sin$ terms are odd about $x=\pi/2$ and the $\cos$ terms are even about $x=\pi/2$. That helps simplify. The cosine terms require integrating only the part of $f$ which is even about $x=\pi/2$, while the sine terms require integrating only the part of $f$ which is odd about $x=\pi/2$. So the $\cos$ terms drop out. In this particular case, you need only integrate the correct part over $[0,\pi/2]$ and double the value. So, $$ a_{n} = 0,\;\; b_{n}=2a\int_{0}^{\pi/3}\sin(2nx)\,dx. $$