varaiational equations