Advanced Economics‹›⌂ 0:00 studied

Module 14 · 13 min read · Free chapter

Functions, calculus and optimisation for economists

In short

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.

What are you preparing for? We show the practice and previous year questions of your exam.

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 y=f(x)y = f(x). A demand function Q=f(P)Q = f(P) says how much is bought at each price. With more variables, such as Q=f(L,K)Q = f(L, K), output depends on both labour and capital.

Common forms. A linear function y=a+bxy = a + bx has a constant slope bb; a linear demand curve Q=100−2PQ = 100 - 2P is the simplest example. A quadratic y=a+bx+cx2y = a + bx + cx^2 has one turning point and gives U-shaped average cost or hill-shaped profit. A cubic total cost such as TC=aQ3−bQ2+cQ+dTC = aQ^3 - bQ^2 + cQ + d produces the familiar U-shaped marginal and average cost curves.

Power, exponential and log forms. A power function y=axby = ax^b is used for demand with constant elasticity and for the Cobb-Douglas production function Q=ALαKβQ = AL^{\alpha}K^{\beta}. An exponential function y=aerty = ae^{rt} describes continuous growth at rate rr, such as population or compound interest. Its inverse, the logarithm, turns products into sums, so ln⁡Q=ln⁡A+αln⁡L+βln⁡K\ln Q = \ln A + \alpha \ln L + \beta \ln K 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 dy/dxdy/dx is the limit of Δy/Δx\Delta y/\Delta x as the change in xx 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 yy from one more small unit of xx.

Rules to remember. For y=axny = ax^n, dy/dx=naxn−1dy/dx = nax^{n-1}, and the derivative of a constant is zero. The sum rule, product rule (uv)′=u′v+uv′(uv)' = u'v + uv', quotient rule and chain rule dy/dx=(dy/du)(du/dx)dy/dx = (dy/du)(du/dx) cover almost every exam case. For logs and exponentials, d(ln⁡x)/dx=1/xd(\ln x)/dx = 1/x and d(ex)/dx=exd(e^{x})/dx = e^{x}.

Every marginal is a derivative. Marginal cost is MC=dTC/dQMC = dTC/dQ, marginal revenue is MR=dTR/dQMR = dTR/dQ, marginal product is MPL=∂Q/∂LMP_L = \partial Q/\partial L and marginal utility is MUx=∂U/∂xMU_x = \partial U/\partial x. 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 MUx/MUyMU_x/MU_y.

Marginal and average. Average cost is AC=TC/QAC = TC/Q, and its derivative is

dACdQ=1Q(MC−AC)\frac{dAC}{dQ} = \frac{1}{Q}(MC - AC)

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

e=dQdP⋅PQe = \frac{dQ}{dP} \cdot \frac{P}{Q}

For a power demand Q=aP−αQ = aP^{-\alpha}, dQ/dP=−αaP−α−1dQ/dP = -\alpha aP^{-\alpha-1}, so e=−αe = -\alpha at every price. This is why such curves are called constant elasticity demand curves, and why a firm facing α<1\alpha < 1 can raise revenue by raising price.

MR, price and elasticity. Since TR=PQTR = PQ, the product rule gives

MR=P(1−1∣e∣)MR = P\left(1 - \frac{1}{\lvert e \rvert}\right)

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 y=f(x)y = f(x) is f′(x)=0f'(x) = 0. 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 f′′(x)<0f''(x) < 0, the slope is falling, the curve is concave and the point is a maximum. If f′′(x)>0f''(x) > 0, the point is a minimum; if it is zero, we need higher derivatives or a point of inflection may exist.

Profit maximisation. Profit is π(Q)=TR(Q)−TC(Q)\pi(Q) = TR(Q) - TC(Q). The first-order condition dπ/dQ=0d\pi/dQ = 0 gives MR=MCMR = MC. The second-order condition d2π/dQ2<0d^2\pi/dQ^2 < 0 means the slope of MR is less than the slope of MC, so MC must cut MR from below.

A worked example. Let TC=Q2+10Q+25TC = Q^2 + 10Q + 25, so AC=Q+10+25/QAC = Q + 10 + 25/Q and MC=2Q+10MC = 2Q + 10. Setting dAC/dQ=1−25/Q2=0dAC/dQ = 1 - 25/Q^2 = 0 gives Q=5Q = 5, where AC=MC=20AC = MC = 20. Below Q=5Q = 5, MC is under AC and AC is falling; above it, MC exceeds AC and AC is rising.

Two or more variables. For y=f(x1,x2)y = f(x_1, x_2), the first-order conditions are f1=0f_1 = 0 and f2=0f_2 = 0. For a maximum, the Hessian matrix of second partials must be negative definite: f11<0f_{11} < 0 and f11f22−f122>0f_{11}f_{22} - f_{12}^2 > 0. For a minimum, f11>0f_{11} > 0 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 P⋅MPL=wP \cdot MP_L = w and P⋅MPK=rP \cdot MP_K = r: 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 U(x1,x2)U(x_1, x_2) subject to M=p1x1+p2x2M = p_1x_1 + p_2x_2, form

L=U(x1,x2)+λ(M−p1x1−p2x2)\mathcal{L} = U(x_1, x_2) + \lambda(M - p_1x_1 - p_2x_2)

The first-order conditions are U1=λp1U_1 = \lambda p_1, U2=λp2U_2 = \lambda p_2 and the budget constraint itself. Dividing the first two gives U1/U2=p1/p2U_1/U_2 = p_1/p_2: the MRS equals the price ratio, the tangency of an indifference curve with the budget line.

Meaning of the multiplier. From the conditions, λ=U1/p1=U2/p2\lambda = U_1/p_1 = U_2/p_2, the marginal utility per rupee spent on each good. More precisely, λ=dU∗/dM\lambda = dU^*/dM: the rise in maximum utility when income rises by one rupee. So λ\lambda 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, λ\lambda equals marginal cost, the extra cost of producing one more unit. In output maximisation subject to a cost limit, λ\lambda 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 tt multiplies the output by tkt^k: f(tx1,tx2)=tkf(x1,x2)f(tx_1, tx_2) = t^k f(x_1, x_2). For a production function, k=1k = 1 means constant returns to scale, k>1k > 1 increasing and k<1k < 1 decreasing returns. The Cobb-Douglas Q=ALαKβQ = AL^{\alpha}K^{\beta} is homogeneous of degree α+β\alpha + \beta.

Why linear homogeneity is convenient. If ff is homogeneous of degree one, its marginal products depend only on the ratio K/LK/L. 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 kk,

x1f1+x2f2=k⋅f(x1,x2)x_1 f_1 + x_2 f_2 = k \cdot f(x_1, x_2)

With constant returns, L⋅MPL+K⋅MPK=QL \cdot MP_L + K \cdot MP_K = Q. 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 xi(p1,p2,M)x_i(p_1, p_2, M) are therefore homogeneous of degree zero: there is no money illusion. For Cobb-Douglas utility U=xαyβU = x^{\alpha}y^{\beta}, demand x=αM/((α+β)px)x = \alpha M/((\alpha + \beta)p_x) shows this directly.

Integration: from marginal to total. Integration reverses differentiation. Total cost is the integral of marginal cost plus fixed cost, TC=∫MC dQ+FCTC = \int MC \, dQ + FC, 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:

CS=∫0Q∗Pd(Q) dQ−P∗Q∗CS = \int_0^{Q^*} P_d(Q)\,dQ - P^*Q^*

Producer surplus is the area above the supply curve below the price. For example, with Pd=(6−x)2P_d = (6 - x)^2 and Ps=14+xP_s = 14 + x, equilibrium is at x=2x = 2, P=16P = 16, and CS=∫02(6−x)2dx−32=152/3−32=56/3CS = \int_0^2 (6 - x)^2 dx - 32 = 152/3 - 32 = 56/3.

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 λ=MUx/px=MUy/py\lambda = MU_x/p_x = MU_y/p_y.
  • Show λ=dU∗/dM\lambda = dU^*/dM and call it the marginal utility of money, a shadow price.
  • Add the parallel case: in cost minimisation λ\lambda is marginal cost.

Answer plan for "Show that MC cuts AC at its lowest point." Write AC=TC/QAC = TC/Q, differentiate with the quotient rule to get dAC/dQ=(MC−AC)/QdAC/dQ = (MC - AC)/Q, set it to zero at the minimum and conclude MC=ACMC = AC. Then state the second-order condition and draw the diagram.

Our practice questions (written by us for practice, not previous-year questions):

  1. For TR=50Q−2Q2TR = 50Q - 2Q^2 and TC=Q2+5QTC = Q^2 + 5Q, find the profit-maximising output and check the second-order condition. (10 marks)
  2. Show that for Q=ALαKβQ = AL^{\alpha}K^{\beta} the expansion path is a straight line through the origin. (10 marks)
  3. Prove Euler's theorem for a function homogeneous of degree one and state its use in distribution theory. (15 marks)
  4. Minimise C=wL+rKC = wL + rK subject to Q=L0.5K0.5Q = L^{0.5}K^{0.5} and interpret the multiplier. (15 marks)
  5. "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. dAC/dQ=(MC−AC)/QdAC/dQ = (MC - AC)/Q, so MC cuts AC at its minimum; MP cuts AP at its maximum. Elasticity e=(dQ/dP)(P/Q)e = (dQ/dP)(P/Q); Q=aP−αQ = aP^{-\alpha} has e=−αe = -\alpha everywhere. MR=P(1−1/∣e∣)MR = P(1 - 1/\lvert e \rvert).
  • Maximum: f′=0f' = 0, f′′<0f'' < 0; minimum: f′=0f' = 0, f′′>0f'' > 0. Two variables: Hessian negative definite for a maximum. Profit: MR = MC and MC cuts MR from below.
  • Lagrangian: MRS = price ratio; λ=dU∗/dM\lambda = dU^*/dM = marginal utility of money (shadow price); in cost minimisation λ=MC\lambda = MC. Bordered Hessian for the second-order condition. Needs an interior solution; corners need Kuhn-Tucker.
  • Homogeneous of degree k: f(tx)=tkf(x)f(tx) = t^k f(x); Euler: ∑xifi=kf\sum x_i f_i = kf; CRS gives product exhaustion. Demand is homogeneous of degree zero. Integration: totals from marginals; CS and PS as areas.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. Which functional form gives a demand curve with the same price elasticity at every point?

  2. Taking logarithms of Q = ALᵅKᵝ is useful because:

  3. When marginal cost is below average cost:

  4. A monopolist faces q = 15p⁻⁰·⁸⁹. Raising the price will:

  5. If average revenue is a rectangular hyperbola, marginal revenue is:

  6. The second-order condition for profit maximisation requires that:

  7. For f(x₁, x₂) to have a maximum at a stationary point, the Hessian must be:

  8. For TC = Q² + 10Q + 25, average cost is minimum at:

  9. In utility maximisation, the Lagrange multiplier measures:

  10. In minimising cost subject to an output target, the Lagrange multiplier equals:

  11. Q = AL⁰·⁶K⁰·⁵ shows:

  12. Ordinary demand functions are homogeneous of degree:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Quantitative methods