\(1+4\left(cosa+cos3a\right)+6cos2a+2cos^22a-1\)
\(=8cos2a.cosa+6cos2a+2cos^22a\)
\(=2cos2a\left(cos2a+4cosa+3\right)\)
\(=2cos2a\left(2cos^2a+4cosa+2\right)\)
\(=4cos2a\left(\left(2cos^2\frac{a}{2}-1\right)^2+2\left(2cos^2\frac{a}{2}-1\right)+1\right)\)
\(=4cos2a\left(4cos^4\frac{a}{2}-4cos^2\frac{a}{2}+1+4cos^2\frac{a}{2}-2+1\right)\)
\(=16cos2a.cos^4\frac{a}{2}\)