Evaluate $$\int \frac{\sin 4x}{\sin x} dx$$
Attempt: I've tried to use the double angle formulas and get it all into one identity, which came out as: $$ \int \left( 8\cos^3x - 4\cos x \right) dx $$ But I'm not sure if this is the right way to go about it. Any help would be much appreciated!
$$\frac{\sin(4x)}{\sin(x)}=U_3(\cos(x)) = 8\cos^3(x)-4\cos(x) = 2T_3(\cos x)+2T_1(\cos(x))$$ hence: $$ \frac{\sin(4x)}{\sin(x)} = 2\cos(3x)+2\cos(x) $$ implies: $$ \int\frac{\sin(4x)}{\sin(x)}\,dx = \frac{2}{3}\sin(3x)+2\sin(x)+C. $$