\(A=\frac{cosx-cos3x+cos4x-cos2x}{sinx-sin3x+sin4x-sin2x}=\frac{2sin2x.sinx-2sin3x.sinx}{-2cos2x.sinx+2cos3x.sinx}\)
\(=\frac{sin2x-sin3x}{cos3x-cos2x}=\frac{-2cos\left(\frac{5x}{2}\right)sin\left(\frac{x}{2}\right)}{-2sin\left(\frac{5x}{2}\right)sin\left(\frac{x}{2}\right)}=cot\left(\frac{5x}{2}\right)\)
\(B=sinx+2cos2x.sinx+2cos4x.sinx+2cos6x.sinx\)
\(=sinx+sin3x-sinx+sin5x-sin3x+sin7x-sin5x\)
\(=sin7x\)