In optimal control theory, the costate equations are derived from the Pontryagin's Maximum Principle, which is a method for solving optimal control problems. The principle provides necessary conditions for optimality when determining control strategies that minimize or maximize a certain objective (or cost) function subject to dynamic constraints.
New to topics? Read the docs here!