Lời giải:
$A=\frac{2\cos \frac{2x+y}{2}\sin \frac{x}{2}}{2\sin \frac{2x+y}{2}.\cos \frac{x}{2}}-\frac{2\cos \frac{2x+y}{2}\cos \frac{x}{2}}{-2\sin \frac{2x+y}{2}\sin \frac{x}{2}}$
$=\tan \frac{x}{2}.\cot \frac{2x+y}{2}+\cot \frac{x}{2}.\cot \frac{2x+y}{2}=\cot \frac{2x+y}{2}(\tan \frac{x}{2}+\cot \frac{x}{2})$