If the cost function of a firm is given by C(x) = x3 – 3x + 7. Find the average cost and marginal cost.
AC = x2 – 3 + 7/x
MC = 3x2 – 3