To find the extrema of functions subject to constraints, we can use methods such as Lagrange multipliers or substitution, depending on the complexity of the problem. The asksia-ll calculator has applied such methods to find the optimal values given the constraints.