that is not a hard function to integrate. just use the power rule. unless you should be calculating something else. the only place i encountered things like "marginal cost" and such was in a microeconomics class, and we never used calculus at all, so i'm not sure how to relate everything
what do you mean "fnInt"?
fnInt((x^3 +3 + 1/(x^2+1))dx)