solve a*b = a^2*tan(t) + a*w/cos(t) for t