The Fourier sine series is a way to represent functions using sine functions. It works well for problems defined on finite intervals with specific boundary conditions. For example, suppose we have a function \( f(x) \) defined on the interval \( 0 < x < \pi \). The Fourier sine series can be expressed as:
\[ f(x) = \sum_{n=1}^{\infty} B_n \sin\left(\frac{n \pi x}{L}\right) \]
where \( B_n \) are the coefficients determined by:
\[ B_n = \frac{2}{L} \int_{0}^{L} f(x) \sin\left(\frac{n \pi x}{L}\right) dx \]
In our problem, we calculated \( B_n \) using the initial condition \( u(x, 0) = x \sin x \) and found that:
- \( B_1 = \frac{2}{\pi} \)
- \( B_n = 0 \) for \( n > 1 \) (odd \( n \))
The sine series is particularly useful when the boundary conditions are homogeneous, such as \( u(0, t) = 0 \) and \( u(\pi, t) = 0 \). These conditions lead to only sine terms being present in the series, as cosine terms are zero due to symmetry.