In Microeconomics course:
Profit maximization: MR = MC, marginal revenue = marginal cost.
The initial formula is to maximize profit: Profit = Total revenue - total cost.
Minimum cost: use the cost function of firm to find the minimum value.
Those general concepts work for any models, such as perfect competition, monopoly, etc.
Hope it helps
