We looked at problems with optimization again. They tend to have a similar form. One variable is to be optimized. There is usually a constraint. The teacher calls these primary and secondary equations.
Setting the derivative of the primary equation equal to zero will allow you to find a min or max. That is done after incorporating the information from the constraint.