The costate equation is related to the state equation used in optimal control.[1][2] It is also referred to as auxiliary, adjoint, influence, or multiplier equation. It is stated as a vector of first order differential equations
where the right-hand side is the vector of partial derivatives of the negative of the Hamiltonian with respect to the state variables.