Local extrema are points on a function where the function value is higher or lower than all nearby points, indicating a local maximum or minimum. These points are crucial in optimization problems, where identifying them helps determine the best possible outcomes within a given set of constraints. Understanding local extrema also involves analyzing derivatives, as critical pointsโwhere the derivative equals zero or is undefinedโoften correspond to these extrema.