FatPhysicsBoy
- 62
- 0
Homework Statement
I want to integrate \int_{0}^{a} xsin\frac{\pi x}{a}sin\frac{\pi x}{a}dx
Homework Equations
I have the orthogonality relation:
\int_{0}^{a} sin\frac{n\pi x}{a}sin\frac{m\pi x}{a}dx = \begin{cases} \frac{a}{2} &\mbox{if } n = m; \\ <br /> 0 & \mbox{otherwise.} \end{cases}
and the parts formula:
\int u \, dv=uv-\int v \, du
The Attempt at a Solution
I took u = x, and dv = sin\frac{n\pi x}{a}sin\frac{m\pi x}{a}. Following the parts formula I get a final answer of \frac{a^{2}}{2} - \frac{a^{2}}{2} = 0. However, this is incorrect. The correct answer for the integral is \frac{a^{2}}{4}.
I know how to do this using a trigonometric identity to swap out the sin^{2}x term for a linear term involving cos2x, but I don't quite understand why this method doesn't work. I think it has something to do with linearity but I don't fully understand why one method works and the other doesn't.
Last edited: