Lesson 1
Derivatives and Partial Derivatives
A derivative measures the rate of change of a dependent variable y with respect to an independent variable x, written dy/dx. Basic formulas (power, constant, log, exponential) combined with the sum, product, quotient and chain rules let you differentiate most functions met in economics and management; a partial derivative applies the same rules to one variable while holding the others constant.
Meaning of a derivative
- If y = f(x), x is the independent variable and y the dependent variable.
- dy/dx = very small change in y due to a very small change in x, i.e. the rate of change.
- Also written f'(x).
Basic formulas
- Power rule: d/dx(x^n) = n·x^(n-1); e.g. d/dx(x^5) = 5x^4.
- Constant: d/dx(k) = 0; e.g. y = 6 gives dy/dx = 0, since y does not change when x changes.
- Constant times variable: d/dx(k·x^n) = k·n·x^(n-1); e.g. d/dx(5x^3) = 15x^2.
- d/dx(x) = 1.
- Roots: write sqrt(x) = x^(1/2), so d/dx(sqrt x) = (1/2)x^(-1/2) = 1/(2 sqrt x).
- d/dx(log x) = 1/x; d/dx(e^x) = e^x.
Sum, product and quotient rules
- Sum/difference: differentiate each term separately; d/dx(3x^2 - 9x + 5) = 6x - 9.
- Product: d/dx(uv) = u·dv/dx + v·du/dx; e.g. y = (x^2+5)(x^2-9) gives dy/dx = 4x^3 - 8x.
- Quotient: d/dx(u/v) = (v·du/dx - u·dv/dx)/v^2; e.g. y = (x^2-1)/(x^2+1) gives dy/dx = 4x/(x^2+1)^2.
Chain rule (function of a function)
- Use when the function is not in a basic form, e.g. y = (ax^2+b)^6.
- Let u = inner function: dy/dx = dy/du × du/dx.
- Example: dy/du = 6u^5, du/dx = 2ax, so dy/dx = 12ax(ax^2+b)^5.
- Shortcut: differentiate the outer power treating the bracket as a variable, then multiply by the derivative of the inside.
- Roots of expressions: sqrt(2x^2-1) = (2x^2-1)^(1/2), then apply the chain rule.
Partial derivatives
- For z = f(x, y), the partial derivative ∂z/∂x is found by differentiating with respect to x while treating y as a constant.
- Similarly ∂z/∂y treats x as a constant; all the rules above still apply.
Key terms
- Derivative (dy/dx)
- Rate of change of y caused by a very small change in x.
- Independent variable
- The variable (x) whose change causes change in another.
- Dependent variable
- The variable (y) whose value depends on x.
- Power rule
- d/dx(x^n) = n·x^(n-1).
- Product rule
- d/dx(uv) = u·v' + v·u'.
- Quotient rule
- d/dx(u/v) = (v·u' - u·v')/v^2.
- Chain rule
- dy/dx = dy/du × du/dx for a function of a function.
- Partial derivative
- Derivative with respect to one variable, holding the other variables constant.
Lesson 2
Elasticity Using Derivatives
Elasticity measures the proportional (percentage) change in a dependent variable caused by a proportional change in an independent variable. As the change in x approaches zero, the point elasticity becomes η = (x/y)·(dy/dx). This formula is applied to price elasticity of demand and supply, income elasticity of demand, and cost elasticity of output.
Elasticity of a function
- For y = f(x), a change in x causes a change in y; elasticity measures how much, in proportional terms.
- Arc form: η = (Δy/y)/(Δx/x) = (x/y)·(Δy/Δx).
- Point elasticity: take the limit as Δx → 0, so η = (x/y)·(dy/dx).
- Measurement is most accurate when the change in x is very small, approaching zero.
Price elasticity of demand
- q = f(p): quantity demanded depends on price.
- ηd = -(p/q)·(dq/dp).
- A minus sign is added because demand and price are inversely related, so the elasticity comes out positive.
Price elasticity of supply
- ηs = (p/q)·(dq/dp).
- No minus sign is needed because supply is positively related to price.
Income and cost elasticity
- Income elasticity: ηy = (Y/q)·(dq/dY); positive for normal goods and negative for inferior goods.
- Cost elasticity: ηc = (q/C)·(dC/dq), the response of total cost to a change in output.
- Total cost = total fixed cost + total variable cost; variable cost rises with output.
Key terms
- Elasticity
- Proportional change in the dependent variable divided by the proportional change in the independent variable.
- Point elasticity
- η = (x/y)·dy/dx, measured at a single point.
- Price elasticity of demand
- -(p/q)·dq/dp.
- Income elasticity of demand
- (Y/q)·dq/dY, showing the response of demand to income.
- Normal good
- A good whose demand rises as income rises.
- Inferior good
- A good whose demand falls as income rises.
Lesson 3
Maxima and Minima
Maxima and minima of y = f(x) are found with two conditions. The first-order (necessary) condition dy/dx = 0 gives the candidate x-values, and the second-order (sufficient) condition uses the sign of d²y/dx² to classify each one. Substituting these x-values back into the original function gives the maximum and minimum values.
First-order condition (necessary)
- Set dy/dx = 0.
- Solve for the critical x-values.
Second-order condition (sufficient)
- Find d²y/dx² by differentiating dy/dx again with respect to x.
- If d²y/dx² > 0, the function has a minimum there.
- If d²y/dx² < 0, the function has a maximum there.
- If d²y/dx² = 0, the test is inconclusive; the point may be a point of inflection, which is neither a maximum nor a minimum.
Worked example: y = x^3 - 3x + 1
- dy/dx = 3x^2 - 3 = 0, so x^2 = 1 and x = ±1.
- d²y/dx² = 6x.
- At x = 1: 6 > 0, so a minimum; y = 1 - 3 + 1 = -1.
- At x = -1: -6 < 0, so a maximum; y = -1 + 3 + 1 = 3.
Key terms
- First-order condition
- dy/dx = 0; the necessary condition for an extremum.
- Second-order condition
- The sign of d²y/dx², which classifies the point; the sufficient condition.
- Second derivative
- The derivative of dy/dx, written d²y/dx².
- Point of inflection
- A point that is neither a maximum nor a minimum, where the curve changes its direction of bending.
Lesson 4
Lagrange Multipliers for Constrained Optimisation
Constrained optimisation finds the maximum or minimum of an objective function f(x, y) subject to a constraint g(x, y) = k. The Lagrange multiplier method gives first-order conditions that locate the candidate point, and the bordered Hessian determinant (second-order condition) tells whether that point is a maximum or a minimum.
Setting up the Lagrangian
- Objective: maximise or minimise f(x, y) subject to g(x, y) = k (e.g. profit subject to hours worked or a budget).
- Rewrite the constraint so one side is zero: k - g(x, y) = 0.
- Form the Lagrangian: L(x, y, λ) = f(x, y) + λ[k - g(x, y)].
- λ (lambda) is the Lagrange multiplier, a new variable.
First-order conditions (FOC)
- Set all partial derivatives to zero: Lx = 0, Ly = 0, Lλ = 0.
- Lλ = 0 simply gives back the constraint k - g(x, y) = 0.
- Useful trick: move λ to one side in Lx and Ly, then divide one equation by the other so λ cancels, giving a relation between x and y.
- Substitute that relation into the constraint to get x and y, then find λ.
- The FOC are necessary but not sufficient: they do not say whether the point is a max or a min.
Second-order condition: bordered Hessian
- Bordered Hessian for two variables and one constraint: |H̄| = | fxx fxy gx ; fyx fyy gy ; gx gy 0 |.
- fxy = fyx (cross partial derivatives are equal).
- If |H̄| < 0: positive definite, so the function is at a MINIMUM.
- If |H̄| > 0: negative definite, so the function is at a MAXIMUM.
- Note the sign reversal: a negative determinant means minimum, a positive one means maximum.
Worked example
- Optimise z = 4x² - 2xy + 6y² subject to x + y = 72.
- L = 4x² - 2xy + 6y² + λ(72 - x - y).
- Lx: 8x - 2y = λ (1); Ly: -2x + 12y = λ (2); Lλ: x + y = 72 (3).
- (1)/(2): 8x - 2y = -2x + 12y, so 10x = 14y and x = 7y/5.
- Into (3): 12y/5 = 72, so y = 30 and x = 42; λ = 8(42) - 2(30) = 276.
- Bordered Hessian | 8 -2 -1 ; -2 12 -1 ; -1 -1 0 | = 8(-1) + 2(-1) - 1(14) = -24 < 0, so this is a minimum.
- Minimum value: z = 4(1764) - 2(1260) + 6(900) = 11936.
Key terms
- Constrained optimisation
- Finding the maximum or minimum of a function subject to a condition linking its variables.
- Lagrangian
- L = f(x, y) + λ[k - g(x, y)], the objective combined with the constraint.
- Lagrange multiplier (λ)
- An extra variable attached to the constraint in the Lagrangian.
- First-order conditions
- Lx = Ly = Lλ = 0; together they locate the stationary point.
- Bordered Hessian
- The second-derivative matrix of f bordered by the constraint's first derivatives; its determinant's sign identifies a max or a min.
Lesson 5
Consumer and Producer Surplus by Integration
Consumer surplus, a concept due to Alfred Marshall, is the difference between what a consumer is willing to pay and what they actually pay. Producer surplus is the difference between the price a producer actually receives and the minimum price they would accept. Both are areas between a curve and the price line, so they are calculated by integration.
Consumer surplus: idea
- Consumer surplus = willingness to pay - actual price paid (e.g. a suit valued at ₹1000 but bought for ₹700 gives a surplus of ₹300).
- It is a psychological concept because willingness to pay is subjective.
- Willingness to pay depends on marginal utility: the extra satisfaction from one more unit.
- The demand curve reflects marginal utility, so a consumer buys only while the price does not exceed what the unit is worth to them.
- Graphically, consumer surplus is the area below the demand curve and above the price line.
Consumer surplus: formula and examples
- CS = ∫ from 0 to x0 of f(x) dx - p0·x0, where f is the demand (or marginal utility) function, x0 is the quantity and p0 is the price.
- Example 1: MU = 25 - 2x, x0 = 10, p0 = 5. ∫ from 0 to 10 of (25 - 2x) dx = [25x - x²] from 0 to 10 = 150. CS = 150 - 50 = 100.
- Example 2: demand p = 90 - x², x0 = 5. ∫ from 0 to 5 of (90 - x²) dx = 450 - 125/3 = 1225/3.
- In Example 2 the price on the demand curve is p0 = 90 - 25 = 65, so CS = 1225/3 - 325 = 250/3 ≈ 83.33.
- The worked solution instead used ₹50 per unit, giving 1225/3 - 250 = 475/3 ≈ 158.33; the price should be consistent with the demand curve.
Producer surplus
- Producer surplus = price actually received - minimum acceptable price (e.g. minimum ₹50, sold at ₹80, so PS = ₹30).
- Graphically, it is the area above the supply curve and below the price line.
- PS = p0·x0 - ∫ from 0 to x0 of g(x) dx, where g is the supply function.
- This is the rectangle p0·x0 minus the area under the supply curve.
Producer surplus example
- Supply p = √(9 + x), x0 = 7, so p0 = √16 = 4 and p0·x0 = 28.
- ∫ from 0 to 7 of √(9 + x) dx = (2/3)[(9 + x)^(3/2)] from 0 to 7 = (2/3)(64 - 27) = 74/3.
- PS = 28 - 74/3 = 10/3.
Key terms
- Consumer surplus
- Willingness to pay minus the amount actually paid; the area under the demand curve and above the price line.
- Producer surplus
- Revenue received minus the minimum the producer would accept; the area above the supply curve and below the price line.
- Reservation price
- The maximum price a buyer is willing to pay, or the minimum price a seller will accept.
- Marginal utility
- The extra satisfaction gained from consuming one more unit of a good.
- Willingness to pay
- The maximum a consumer would pay, based on the marginal utility they expect.
Lesson 6
Matrices, Determinants and Cramer's Rule
Cramer's rule (the determinant method) solves a system of linear equations using determinants. Each variable equals the determinant formed by replacing that variable's coefficient column with the constants, divided by the determinant of the coefficient matrix.
Cramer's rule for two variables
- System: a1x + b1y = m1 and a2x + b2y = m2.
- Δ = |a1 b1 ; a2 b2| (the coefficient determinant).
- Δ1: replace the x column with the constants, |m1 b1 ; m2 b2|.
- Δ2: replace the y column with the constants, |a1 m1 ; a2 m2|.
- 1/Δ = x/Δ1 = y/Δ2, so x = Δ1/Δ and y = Δ2/Δ.
- A 2×2 determinant |a b ; c d| = ad - bc.
Two-variable example
- Solve 2x - y = 10 and x + 3y = 9.
- Δ = |2 -1 ; 1 3| = 6 + 1 = 7.
- Δ1 = |10 -1 ; 9 3| = 30 + 9 = 39.
- Δ2 = |2 10 ; 1 9| = 18 - 10 = 8.
- x = 39/7 and y = 8/7.
- Check: 2(39/7) - 8/7 = 70/7 = 10, as required.
Three variables
- Use x = Δ1/Δ, y = Δ2/Δ and z = Δ3/Δ, where Δk replaces the k-th column with the constants.
- Expand a 3×3 determinant along the first row with signs +, -, +, using the 2×2 minors.
- Example: x - 2y + 3z = 1, 3x - y + 4z = 3, 2x + y - 2z = -1.
- Δ = 1(2 - 4) + 2(-6 - 8) + 3(3 + 2) = -2 - 28 + 15 = -15.
- Δ1 = 0, Δ2 = -15, Δ3 = -15.
- Solution: x = 0, y = 1, z = 1.
Key terms
- Determinant
- A scalar calculated from a square matrix; for a 2×2 matrix it is ad - bc.
- Cramer's rule
- A method that solves a linear system by setting each variable equal to Δk/Δ.
- Δ (coefficient determinant)
- The determinant of the matrix of the variables' coefficients.
- Δk
- The determinant obtained by replacing the k-th column of the coefficient matrix with the constants.
Lesson 7
Leontief Input–Output Model
The Leontief input–output model describes interdependent industries whose output is used partly as inputs by other industries (and themselves) and partly to meet final demand. Balancing each industry's output gives the matrix equation (I - A)X = Y, so gross output is X = (I - A)^(-1) Y.
Setting up the model
- Each industry i produces total (gross) output xi.
- Part of xi goes to other industries (and itself) as raw material; the rest goes to final demand yi.
- xij = output of industry i used as input by industry j.
- xij = aij * xj, where aij is the proportion (input coefficient) of industry j's output that comes from industry i as input.
Balance equation
- xi = sum over j=1..n of aij xj + yi.
- Rearranged: xi - sum aij xj = yi.
- When j = i the term becomes (1 - aii) xi, since an industry can use its own output.
Matrix form
- Input coefficient matrix A = [aij] (n x n).
- The coefficient matrix has diagonal entries 1 - aii and off-diagonal entries -aij, which is exactly I - A.
- (I - A)X = Y, where X is the gross output vector and Y the final demand vector.
- Solution: X = (I - A)^(-1) Y (requires I - A to be invertible).
Exam tip
- Understand the derivation instead of just memorising X = (I - A)^(-1) Y; questions often add twists (e.g. asking for final demand given output, using Y = (I - A)X).
- Most questions ask for total/gross output in some form.
Key terms
- Input coefficient aij
- Proportion of industry j's output that is supplied by industry i as input; aij = xij/xj.
- Technology (input coefficient) matrix A
- The n x n matrix of all input coefficients aij.
- Gross output X
- Vector of total outputs of all industries.
- Final demand Y
- Vector of output going to final consumers rather than to industries.
- Leontief matrix
- The matrix I - A in the equation (I - A)X = Y.
Lesson 8
Graphical Linear Programming
Linear programming optimises (maximises profit or minimises cost) a linear objective function subject to linear constraints. The graphical method, usable only with two variables, plots constraint lines, identifies the feasible region, and evaluates the objective at each corner point to find the optimum.
Basics of LP
- LP is a mathematical technique to optimise performance: minimise cost or maximise profit.
- Methods: graphical, simplex, dual simplex, Big M.
- Graphical method works only with two decision variables.
- Non-negativity: x1, x2 >= 0.
Steps of the graphical method
- Convert each constraint inequality to an equation.
- Find two points per line: set x1 = 0 to get x2, and x2 = 0 to get x1.
- Plot and join the points for each constraint.
- For <= constraints the feasible region is below the line; for >= it is above.
- Feasible region = area satisfying all constraints (and in the first quadrant).
- Find the corner points, substitute into the objective, pick the best value.
Worked example
- Max Z = 12x1 + 16x2 s.t. 10x1 + 20x2 <= 120, 8x1 + 8x2 <= 80, x1, x2 >= 0.
- Line 1 intercepts: (0, 6) and (12, 0). Line 2 intercepts: (0, 10) and (10, 0).
- Intersection: x1 + 2x2 = 12 and x1 + x2 = 10 give (8, 2).
- Corners: A(0,0) Z=0; B(10,0) Z=120; C(8,2) Z=128; D(0,6) Z=96.
- Optimum: x1 = 8, x2 = 2, Z max = 128.
Key terms
- Objective function
- The linear function (e.g. profit or cost) to be maximised or minimised.
- Constraint
- A linear inequality restricting the decision variables.
- Feasible region
- Set of points satisfying all constraints and non-negativity conditions.
- Corner point
- Vertex of the feasible region; the optimum occurs at one of these.
- Non-negativity condition
- Requirement that decision variables are >= 0.
