In economics, when you plot cost and revenue on Price-Quantity axis, the profit maximization condition is when marginal cost is equal to marginal revenue. This is the crucial notion to understand. Without it one can't effectively analyze profits. Does this make sense?