(tan(x)+1)^2=(1+2sin(x)cos(x))/cos^2(x)