cos2a+cos2b=cos[(a+b)+(a-b)]+cos[(a+b)-(a-b)]
=cos(a+b)cos(a-b)-sin(a+b)sin(a-b)+cos(a+b)cos(a-b)+sin(a+b)sin(a-b)
=2cos(a+b)cos(a-b)
cos2a+cos2b=cos[(a+b)+(a-b)]+cos[(a+b)-(a-b)]
=cos(a+b)cos(a-b)-sin(a+b)sin(a-b)+cos(a+b)cos(a-b)+sin(a+b)sin(a-b)
=2cos(a+b)cos(a-b)