\(\left(\frac{1}{cos2x}+1\right)tanx=\left(\frac{cos2x+1}{cos2x}\right).\frac{sinx}{cosx}=\frac{2cos^2x}{cos2x}.\frac{sinx}{cosx}\)
\(=\frac{2sinx.cosx}{cos2x}=\frac{sin2x}{cos2x}=tan2x\)
\(\frac{cos7a+cosa+cos5a+cos3a}{sin7a+sina+sin5a+sin3a}=\frac{2cos4a.cos3a+2cos4a.cosa}{2sin4a.cos3a+2sin4a.cosa}\)
\(=\frac{cos4a\left(2cos3a+2cosa\right)}{sin4a\left(2cos3a+2cosa\right)}=\frac{cos4a}{sin4a}=cot4a\)