def evaluate_g2( kappa, nu, sigma, s2 ):
    """
    Evaluate the second constraint equation and also return the jacobians

    :param float kappa: The value of the modulus kappa
    :param float nu: The value of the modulus nu
    :param float sigma: The value of the modulus sigma
    :param float s2: The constraint value
    """

    return kappa + nu - 2 * sigma - s2**2, {'kappa':1., 'nu':1., 'sigma':-2., 's2':-2 * s2 }