Steps to solving an optimization problem
First grasp your objective and all the constraints,
Then write your equations, and start your complaints.
Reduce to one variable, find the real-world domain.
Then find local extrema -- use calc to avoid strain!
We're almost done, so let's graph it real quick:
Double-check the extremum is global and you're all done, slick.
(Oh, make sure that you've answered the original question!)
Ain't solving optimization both easy and good fun?
...Too bad I can never get 'em right.