Solve \(f'(x)=0\), and check where \(f'\) is undefined in the domain. For absolute extrema on a closed interval, compare the values at interior candidates with the endpoints.
A derivative sign change from positive to negative indicates a local maximum. A change from negative to positive indicates a local minimum. At a stationary point, a positive second derivative gives a local minimum and a negative one gives a local maximum. A zero second derivative calls for another test.
Use the constraint to express the quantity to optimise in terms of one variable. State its feasible range before differentiating, then compare candidate values. Give the result in context and attach its units.