Teach me how to transform integrals Trig for $\int _{0}^{\pi }\sin ^{2}\left( \psi \right) \sin \left( m\psi \right) d\psi $ How to transform the integral 
$$\int _{0}^{\pi }\sin ^{2}\left( \psi \right) \sin \left( m\psi \right) d\psi $$
to 
$$\int _{0}^{\pi }\left( \dfrac {1} {2}-\dfrac {1} {2}\cos 2\psi \right) \sin m\psi d\psi $$
What is the general method you need to solve trig questions like this. How are do you know which identities to use and which ones should you always have memorised to derive this.

The general approach
Considering trigonometric integrals there are a myriad of different techniques to solve them. Sometimes integration by parts is the best option, other times a clever substitution or a trigonometric identity saves the day. Sadly, the only way to know which one to use is to experiment and solve as many problems as possible. 
My toolbox
In my toolbox I only store three basic identities when it comes to integrating sine and cosine. 
$$
\begin{align*}
1 & = (\sin x)^2 + (\cos x)^2  \\
\cos(A+B) & = \cos(A)\cos(B) - \sin(A) \sin(B) \\
\sin(A+B) & = \cos(A) \sin(B) + \cos(B) \sin(A) 
\end{align*}
$$
Everything else I can derive from these pretty simple formulas. Of course as mentioned earlier I know how to use integration by parts, and use substitutions as well. 
The problem at hand
Let's look at your problem and use a fairly clever trick. I start with defining the following pair of integrals
$$
I = \int_0^{\pi} (\sin \psi)^2 \sin (m\psi)\, \mathrm{d}\psi
\quad \text{and} \quad
J = \int_0^{\pi} (\cos \psi)^2 \sin (m\psi)\,\mathrm{d}\psi
$$
Notice how simple we can solve the following integral
$$
I + J = \int_0^\pi (\sin^2 \psi + \cos^2\psi) \sin (m\psi)\, \mathrm{d}\psi = 
\begin{cases}
\cfrac{1 - \cos m\pi}{m}  & \text{if} \qquad m \neq 0 \\
0 & \text{if} \qquad m = 0
\end{cases}
$$
Similarly, the integral $J - I$ can be evaluated fairly easy with the use of 
$\cos^2\psi - \sin^2\psi = \cos 2\psi$ and 
$$
\cos ax \sin bx = \frac{\sin(a x + b x) - \sin(a x - b x)}{2}\,.
$$
This can be derived by taking the difference between $\sin(A+B)$ and $\sin(A-B)$ and then using the addition formula for sine, written at the top. Thus,
$$
\begin{align*}
J - I & = \int_0^\pi (\cos^2\psi - \sin^2\psi )\sin (m\psi) \,\mathrm{d}\psi \\
  & = \int_0^\pi \cos (2\psi) \sin (m\psi)\, \mathrm{d}\psi \\
  & = \frac{1}{2}\int_0^\pi \sin (2 + m)\psi - \sin(2 - m)\psi \,\mathrm{d}\psi \\
  & = \begin{cases}
  \cfrac{m}{m^2 - 4}(1 - \cos m\pi) & \text{if} \qquad m^2 \neq 4 \\
0 & \text{if} \qquad m^2 = 4
\end{cases}
\end{align*}
$$
Assuming $m \neq 0$ and $m^2 \neq 2$ we then have the following system of equations
$$
\begin{align*}
J - I & = \cfrac{1 - \cos m\pi}{m} \\
J + I & = \cfrac{m}{m^2 - 4}(1 - \cos m\pi)
\end{align*}
$$ 
Solving this set of equations yields
$$
I = \frac{2}{m} \frac{\cos(m\pi) - 1}{m^2 - 4}
$$
Doing the same in the cases $m^2 = 4$ and $m = 0$, just give $I = 0$, thus

$$ \int_0^\pi (\sin \psi)^2 \sin(m\psi) \,\mathrm{d}\psi 
 = \begin{cases} \cfrac{2}{m} \cfrac{\cos(m\pi) - 1}{m^2 - 4} & \text{if} \qquad m\neq -2,0,2 \\ 0 & \text{if} \qquad m = -2, 0, 2 \end{cases}
 $$

