Low-order differentiation
With respect to g2
With respect to g3
With respect to omega1
With respect to omega3