Module 14 · 13 min read · Free chapter
Functions, calculus and optimisation for economists
Calculus turns economic choice into maths. The derivative gives marginal values and elasticities; first-order conditions find optima and the Hessian checks maxima or minima. With constraints, the Lagrange multiplier is the shadow price of the constraint. Euler's theorem shows that with constant returns, paying factors their marginal products exhausts output. Integration gives totals such as consumer surplus.
Start from zero: why do economists need calculus?
A shopkeeper's question. A sweet shop sells 100 boxes a day at ₹200 each. If it raises the price by ₹10, how many boxes will it lose, and will its earnings go up or down? Answering this needs a rule linking price to sales and a way to measure how fast sales change when price changes.
Why maths entered economics. Economics is about choices at the margin: one more hour of work, one more worker, one more rupee of tax. Calculus is the mathematics of small changes, so it fits these questions naturally. From the 1870s the marginalists (Jevons, Walras, Menger) and later Marshall, Hicks and Samuelson turned economic ideas into functions and derivatives.
The plan. This chapter builds the toolkit step by step. It starts with functions, moves to derivatives and marginal concepts, then to finding maxima and minima with and without constraints. It ends with homogeneous functions, Euler's theorem and integration.
Functions and their shapes
What a function is. A function is a rule that gives exactly one value of a dependent variable for each value of the independent variable, written . A demand function says how much is bought at each price. With more variables, such as , output depends on both labour and capital.
Common forms. A linear function has a constant slope ; a linear demand curve is the simplest example. A quadratic has one turning point and gives U-shaped average cost or hill-shaped profit. A cubic total cost such as produces the familiar U-shaped marginal and average cost curves.
Power, exponential and log forms. A power function is used for demand with constant elasticity and for the Cobb-Douglas production function . An exponential function describes continuous growth at rate , such as population or compound interest. Its inverse, the logarithm, turns products into sums, so becomes linear and easy to estimate.
Reading graphs. The slope of a curve tells us the direction and speed of change, and its curvature tells us whether that speed is rising or falling. A function is concave if it bends downward, like a total product curve under diminishing returns. It is convex if it bends upward, like a total cost curve under rising marginal cost.
Why the shape matters. Economic conclusions depend heavily on functional form. A linear demand has elasticity changing along the line, while a power demand has the same elasticity everywhere. Choosing the right form is therefore a theoretical decision, not only a mathematical convenience.
Derivatives, marginal concepts and elasticity
The derivative. The derivative is the limit of as the change in shrinks to zero. Geometrically it is the slope of the tangent to the curve at a point. Economically it is the marginal value: the extra from one more small unit of .
Rules to remember. For , , and the derivative of a constant is zero. The sum rule, product rule , quotient rule and chain rule cover almost every exam case. For logs and exponentials, and .
Every marginal is a derivative. Marginal cost is , marginal revenue is , marginal product is and marginal utility is . With two or more variables we use partial derivatives, changing one variable and holding the others constant. The marginal rate of substitution is then the ratio .
Marginal and average. Average cost is , and its derivative is
So when MC is below AC, AC falls; when MC is above AC, AC rises; and MC equals AC where AC is flat, at its minimum. The same logic shows that marginal product cuts average product at the top of the AP curve.
Elasticity through derivatives. Price elasticity of demand is
For a power demand , , so at every price. This is why such curves are called constant elasticity demand curves, and why a firm facing can raise revenue by raising price.
MR, price and elasticity. Since , the product rule gives
MR is positive only when demand is elastic, so a profit-maximising monopolist never produces on the inelastic part of the demand curve. If average revenue is a rectangular hyperbola, total revenue is constant and MR is zero throughout.
Finding a maximum or minimum
The first-order condition. At the top of a hill or the bottom of a valley, the tangent is flat. So a necessary condition for an extreme point of is . Points where this holds are called stationary or critical points.
The second-order condition. A flat tangent alone does not tell a peak from a trough. If , the slope is falling, the curve is concave and the point is a maximum. If , the point is a minimum; if it is zero, we need higher derivatives or a point of inflection may exist.
Profit maximisation. Profit is . The first-order condition gives . The second-order condition means the slope of MR is less than the slope of MC, so MC must cut MR from below.
A worked example. Let , so and . Setting gives , where . Below , MC is under AC and AC is falling; above it, MC exceeds AC and AC is rising.
Two or more variables. For , the first-order conditions are and . For a maximum, the Hessian matrix of second partials must be negative definite: and . For a minimum, with the same positive determinant.
A multi-plant or multi-product firm. A firm choosing two outputs, or two inputs, uses exactly these conditions. For inputs, profit maximisation gives and : each input is hired until the value of its marginal product equals its price. The second-order condition requires diminishing returns strong enough to keep the Hessian negative definite.
Constrained optimisation and the Lagrange multiplier
Why constraints matter. Most economic choices are made under limits: a consumer's budget, a firm's cost outlay, a nation's resources. We want the best value of an objective subject to a constraint. Substituting the constraint into the objective works for simple cases, but the Lagrange method is general and gives extra economic insight.
Setting up the Lagrangian. To maximise subject to , form
The first-order conditions are , and the budget constraint itself. Dividing the first two gives : the MRS equals the price ratio, the tangency of an indifference curve with the budget line.
Meaning of the multiplier. From the conditions, , the marginal utility per rupee spent on each good. More precisely, : the rise in maximum utility when income rises by one rupee. So is the marginal utility of money income, a shadow price of the budget constraint.
Shadow prices elsewhere. In cost minimisation subject to an output target, equals marginal cost, the extra cost of producing one more unit. In output maximisation subject to a cost limit, is the extra output from one more rupee of outlay. In linear programming the dual variables play the same role, as the next chapter shows.
The second-order condition. For a constrained maximum, the bordered Hessian (the Hessian of the Lagrangian bordered by the constraint's derivatives) must have a positive determinant in the two-good case. Economically this means the indifference curves are convex to the origin. If they are concave, the tangency point is a minimum, and the best choice is a corner.
Interior solutions and corners. The Lagrange conditions assume the optimum has positive amounts of every good, an interior solution. If a good is not worth buying at any positive amount, the optimum is at a corner where the tangency condition fails. That is why, before using the Lagrangian, we assume smooth convex preferences or check for corners; the Kuhn-Tucker conditions handle inequality constraints and corners formally.
Homogeneous functions, Euler's theorem and integration
Homogeneity. A function is homogeneous of degree k if multiplying all inputs by multiplies the output by : . For a production function, means constant returns to scale, increasing and decreasing returns. The Cobb-Douglas is homogeneous of degree .
Why linear homogeneity is convenient. If is homogeneous of degree one, its marginal products depend only on the ratio . So the MRTS is the same along any ray from the origin, and the expansion path at fixed input prices is a straight line through the origin. Such functions are a special case of homothetic functions, whose isoquants are radial blow-ups of one another.
Euler's theorem. For a function homogeneous of degree ,
With constant returns, . If each factor is paid its marginal product, the payments exactly use up the output, which is the adding-up or product exhaustion result met in the distribution module.
Demand is homogeneous of degree zero. If all prices and income double, the budget line does not move, so the chosen bundle does not change. Ordinary demand functions are therefore homogeneous of degree zero: there is no money illusion. For Cobb-Douglas utility , demand shows this directly.
Integration: from marginal to total. Integration reverses differentiation. Total cost is the integral of marginal cost plus fixed cost, , and total revenue is the integral of marginal revenue. The constant of integration has economic meaning, such as fixed cost.
Surplus as an area. Consumer surplus is the area under the demand curve above the price paid:
Producer surplus is the area above the supply curve below the price. For example, with and , equilibrium is at , , and .
Descriptive lens: how papers ask this, and how to answer
Questions on this chapter take these forms: short proofs on MC and AC (MC cuts AC at its minimum); constant elasticity demand and whether a firm should raise price; the economic meaning of the Lagrange multiplier; why the Lagrangian needs an interior solution; AP and MP at the maximum of AP; demand functions homogeneous of degree zero; and consumer surplus by integration.
Answer plan for "What is the economic interpretation of the Lagrange multiplier?"
- Set up the Lagrangian for the problem asked, such as utility maximisation.
- Derive .
- Show and call it the marginal utility of money, a shadow price.
- Add the parallel case: in cost minimisation is marginal cost.
Answer plan for "Show that MC cuts AC at its lowest point." Write , differentiate with the quotient rule to get , set it to zero at the minimum and conclude . Then state the second-order condition and draw the diagram.
Our practice questions (written by us for practice, not previous-year questions):
- For and , find the profit-maximising output and check the second-order condition. (10 marks)
- Show that for the expansion path is a straight line through the origin. (10 marks)
- Prove Euler's theorem for a function homogeneous of degree one and state its use in distribution theory. (15 marks)
- Minimise subject to and interpret the multiplier. (15 marks)
- "MR is zero where demand has unit elasticity." Prove and explain the implication for a monopolist. (10 marks)
Keywords: function, dependent and independent variable, linear, quadratic, cubic, power, exponential, logarithm, concave, convex, derivative, marginal, partial derivative, MRS, MC and AC, elasticity, constant elasticity, MR formula, stationary point, first- and second-order conditions, MR = MC, Hessian, Lagrangian, multiplier, shadow price, marginal utility of money, bordered Hessian, interior solution, corner solution, Kuhn-Tucker, homogeneous function, homothetic, expansion path, Euler's theorem, adding-up, degree zero homogeneity, integration, consumer surplus, producer surplus.
Quick revision
- Functions: linear (constant slope), quadratic and cubic (U-shaped cost curves), power (constant elasticity, Cobb-Douglas), exponential (growth), log (linearises products). Concave bends down, convex bends up.
- Derivative = slope = marginal value. , so MC cuts AC at its minimum; MP cuts AP at its maximum. Elasticity ; has everywhere. .
- Maximum: , ; minimum: , . Two variables: Hessian negative definite for a maximum. Profit: MR = MC and MC cuts MR from below.
- Lagrangian: MRS = price ratio; = marginal utility of money (shadow price); in cost minimisation . Bordered Hessian for the second-order condition. Needs an interior solution; corners need Kuhn-Tucker.
- Homogeneous of degree k: ; Euler: ; CRS gives product exhaustion. Demand is homogeneous of degree zero. Integration: totals from marginals; CS and PS as areas.