sina+sin²a=1
∴sina=1-sin²a=cos²a
3cos^2a+cos^4a-2sina+1
=3sina+sin²a-2sina+1
=sina+1-cos²a+1
=sina+1-sina+1
=2