Math Review

Below, find the link to the Math Review guide in PDF format.

Download PDF

If time permits, I will make these into individual pages here on the Resources section.

1 Functions and Inverse Functions

A function is simply a rule that assigns a unique value of a dependent variable (e.g. f(x)) to each value of an independent variable (e.g. x): xf(x)

  • Something is not a function if it assigns multiple values of y for the same value of x (e.g. on a graph, a vertical line)
  • We can relate any independent variable (e.g. x) to any dependent variable (e.g. y) so get comfortable using variables other than x and y!

In its general form a function can be written as:

q=q(p)

  • “Quantity (q) is a function of price (p)”
  • This expresses that there is a relationship between q and p, it doesn’t tell us the specific form of that relationship
    • q is the dependent or “endogenous” variable, its value is determined by p
    • p is the independent or “exogenous” variable, its value is given and not dependent on other variables
    • The specific form of this function might be:

q=1006p

  • The numbers 100 and 6 are known as parameters, they are parts of the quantitative relationship between quantity and price (the variables) that do not change
  • If we have values of p, we can find the value of q(p):
    • When p=10 q(p)=1006pq(10)=1006(10)q(10)=10060q(10)=40
    • When p=5: q(p)=1006pq(5)=1006(5)q(5)=10030q(5)=70

Multivariate functions have multiple independent variables, such as:

q=f(k,l)

  • “Output (q) is a function of both capital (k) and labor (l)”

  • In economics, we often restrict the domain and range of functions to positive real numbers, R+, since prices and quantities are never negative in the real world

    • Domain: the set of x-values
    • Range: the set of y-values determined by the function

1.1 Inverse Functions

  • Many functions have a useful inverse, where we switch the independent variable and dependent variable
    • For example, if we have the demand function: q=1006p we may want find the inverse demand function, an equation where p is the dependent variable, rather than q (this is how we normally graph Supply and Demand functions!)
    • To do this, we need to solve the above equation for p: q=1006pThe original equationq+6p=100Add 6p to both sides6p=100qSubtract q from both sidesp=100616qDivide both sides by 6

1.2 Functions with Fractions

  • Many people are rusty on a few useful algebra rules we will need, one being how to deal with fractions in equations
  • To get rid of a fraction, multiply both sides of the equation by the fraction’s reciprocal (swap the numerator and denominator), which will yield just 1 100=14xThe equation to be solved forx41(1001)=41(14x)Multiplying by the reciprocal of 14, which is 414001=44xCross multiplying fractions400=xSimplifying
  • Alternatively (if possible), re-imagining the fraction as a decimal may help: 100=14xThe original equation100=0.25xConverting to a decimal400=xDividing both sides by 0.25
  • Add fractions by finding a common denominator: 43+25(4×53×5)+(2×35×3)2015+615=2615
  • Multiply fractions straight across the numerator and denominator 43×25=4×23×5=815

2 Graphing Linear Functions

2.1 Slope-Intercept Form

  • A linear function of two variables can be written in slope-intercept form: y=ax+b
    • y is the dependent variable (on the vertical axis)
    • x is the independent variable (on the horizontal axis)
    • a is the slope of the line
      • a=riserun=change in ychange in x=ΔxΔy
      • you may have been taught the slope as “m”, this is just personal taste, but again, get used to using different letters!
    • b is the vertical-intercept, a constant number where the line crosses the vertical axis
      • if y is the dependent variable, this is the “y-intercept”, y where x=0
  • Any point on the line has an x-coordinate and y-coordinate (xi,yi)

2.2 Other Forms

  • A linear function can equivalently be expressed in the following form: a1x1+a2x2=c
    • x2 is the dependent variable (on the vertical axis)
    • x1 is the independent variable (on the horizontal axis)
    • c is a constant
  • This is a valid equation, but is difficult to visualize in the traditional graph as above. Simply solve for the dependent variable on the vertical axis (x2 as if you were solving for y):

a1x1+a2x2=cOriginala2x2=ca1x1Subtracting x1 termx2=ca2a1a2x1Dividing by a2

  • The vertical intercept is ca2

  • The horizontal intercept is ca1

  • The slope is a1a2

  • This is extremely useful for dealing with constraints in constrained optimization problems: budget constraints and isocost lines

2.3 Drawing a Graph From an Equation

If we already have a linear equation that we would like to graph, we can follow these steps:

  1. Take the equation and plug in two values, e.g. if we have:

p=12q+4

  1. We can find two points on the graph. The easiest one to find is the vertical-intercept, where the line crosses the vertical axis, where q=0, so plug in q=0: p=12(0)+4p=4 Thus, one point is (0,4). Note that the constant in the function itself is the pintercept! So one valid point will always be (0,b)!

  2. For our second point, let’s plug in q=2: p=12(2)+4p=5 Thus, another point is (2,5)

  3. Now, plot the two points on the graph, and connect them with a line

Note: A quick shortcut to plot a line is to find the vertical intercept and plot that, and then find the next point using the slope. Here, start our line at 4 on the vertical axis, and then, as the slope is 12, for every one unit increase in q, p increases by 12. Our second point, (2,5), is a 2 unit increase in q resulting in a 1 unit increase in p.

2.4 Finding an Equation from a Graph

In order to find the equation of an existing line, we follow these steps:

  1. First, take two points on the line and find the slope, a, between them. Let’s pick (1,6) and (3,2). Slope=riserun=(p2p1)(q2q1)=(26)(31)=42=2

There is a shortcut that we can use to find the slope faster by eye-balling the graph: When q changes by 1, how many units does p change? If we move from (1,6) to (2,5), q increases by 1, but p falls by 2. So the slope is 2. For every one unit increase in q, p changes by -2.

  1. Now with the slope, we need to find the vertical intercept, or b, we solve this by plugging in the slope and any point on the graph, we will use (1,6): p=aq+b(6)=2(1)+b6=2+b8=b Note, there is another easy way to eye-ball what this value is. It is simply that p value where q=0, or at what p value the graph crosses the vertical axis. We can see it is at 8.

  2. Thus, we have the slope and the intercept, so our equation is: p=2q+8

3 Rates of Change

If y changes from y1y2, the difference, Δy=y2y1

  • Δy is shorthand that means “change in y”, NOT Δy (it’s not an entity itself)
  • In calculus, the change in y is often written formally as dy

We can express the relative difference, comparing the difference with the original value of y1 as: relative change in y=y2y1y1=Δyy1

  • e.g. if y1=3 and y2=3.02, then the relative change in y is: y2y1y1=3.0233=0.0067

It’s most common to talk about the percentage change in y (%Δy), also called the growth rate of y, which is 100 times the relative change: percentage change in y=%Δy=y2y1y1=Δyy1100%

  • e.g. if y1=3 and y2=3.02, then the percentage change in y is: y2y1y1100=3.0233100=0.67%
    • Just move the decimal point over two digits to the right to get a percentage
    • This is most common when we measure inflation, GDP growth rates, etc.

Natural logarithms (ln) are very helpful in approximating percentage changes from y1 to y2 because: 100(ln(y2)ln(y1))=%Δy=percentage change in y

3.1 Elasticity

Using logs and percentage changes helps us talk about elasticity, an extremely useful concept with vast applications all over economics. Elasticity measures the percentage change in one variable (y) as a response to a 1% change in another (x) at a particular value of x and y. ϵyx=%Δy%Δx=(Δyy)(Δxx)=ΔyΔxxy

  • Interpretation: A 1% change in x will lead to a ϵyx% change in y

For example, the price elasticity of demand measures the percentage change in quantity demanded to a 1% change in price (at a particular price point), note here: x=P and y=q: ϵD=%Δq%Δp=ΔqqΔpp=ΔqΔppq

  • Note that ΔqΔp is 1slope of the demand curve (which is ΔpΔq)
  • Note though we would technically multiply by 100100 to get percentage change, this term obviously is just 1. Elasticity is unitless.
  • Note also that on a graph we usually express q as our independent variable and p as our dependent variable

3.2 Derivatives (Calculus)

Often, Δy refers to a very small change in y, a marginal change in y. A rate of change is the ratio of two changes, such as the change between x and y=f(x): Δf(x)Δx=f(x+Δx)f(x)Δx

  • This measures how f(x) changes as x changes
  • If Δ is infinitesimally small, then we have expressed the (first) derivative of f(x) with respect to x, written variously as f(x) or df(x)dx df(x)dx=limΔx0f(x+Δx)f(x)Δx

The derivative of a linear function (y=ax+b) is a constant (i.e. the slope), a df(x)dx=a

The derivative of the first derivative is the second derivative of a function f(x) with respect to x, denoted f(x) or d2f(x)dx2

  • The second derivative measures the curvature of a function
  • It used for proving when a function has reached a maximum or minimum, or is concave or convex (often used in #Nonlinear-Functions-&-Optimization)

4 Nonlinear Functions & Optimization

A function is non-linear if it is curved, i.e. not a straight line. Nonlinear functions’ slopes may be different for different values of the independent variable.

The slope at any particular point of the function is is its first derivative, the rate of instantaneous change.

  • Equivalently in practice, the value of f(x) is the slope of a line tangent to the function at point (xi,f(xi))

Most applications in economics pertain to marginal magnitudes

  • Slopes mean change, and the margin implies a small change
    • Often describe the rate of substitution between two goods (how much y must you give up to get one more unit of x)
  • At the limit, marginal magnitudes are derivatives of a total magnitude
    • e.g. Marginal cost (or revenue) is the derivative of Total Cost (or revenue) (and its slope at each value)
    • e.g. Marginal product is the derivative of Total Product (and its slope at each value)

We can describe a curved function as being either convex or concave with respect to the origin (0,0)

In simplest terms, a function is concave between two points a,b if a straight line connecting a and b lies beneath the function itself f[(ta)+(1t)b]>tf(a)+(1t)f(b) for 0<t<1

  • The above formula is a weighted average (for any set of weights w, 1w), implying that the weighted average of a and b (dotted line in graph) is below the function
  • The weighted average (dotted line) of a and b is below the function
  • A function is also concave at a point if its second derivative at that point is negative f[(wa)+(1w)b]<wf(a)+(1w)f(b) for 0<w<1

In simplest terms, a function is convex between two points a,b if a straight line connecting a and b lies above the function itself f[(wa)+(1w)b]<wf(a)+(1w)f(b) for 0<w<1 - The weighted average (dotted line) of a and b is above the function - A function is also convex at a point if its second derivative is positive

A function switches between convex and concave at an inflection point (point C in the example above) - Here, the second derivative (in addition to the first) is equal to 0

4.1 Optimization

For most curves, we often want to find the value where the function reaches its maximum or minimum (in general, these are types of “extrema”) along some interval

Formally, a function reaches a maximum at x if f(x)f(x) for all x; or a minimum at x if f(x)f(x) for all x - In the graph above, the function reaches a maximum at x1 and a minimum at x2

The maximum or minimum of a function occurs where the slope (first derivative) is zero, known in calculus as the “first-order condition” df(x)dx=0

  • To distinguish between maxima and minima, we have the “second-order condition”
    • A minimum occurs when the second derivative of the function is positive, and the curve is convex d2f(x)dx2>0
    • A maximum occurs when the second derivative of the function is negative, and the curve is concave d2f(x)dx2<0
    • An inflection point occurs where the second derivative of the function is zero
    • All three are known as “critical points”

This is often useful for unconstrained optimization, e.g. finding the quantity of output that maximizes profits

Note, if we have a multivariate function y=f(x1,x2) and want to find the maximum or minimum (x1,x2), the first order conditions (FOC, plural) are where all the partial derivatives (derivative with respect to x1 and derivative with respect to x2) are zero f(x1,x2)x1=0f(x1,x2)x2=0 There are second order conditions as well, to demonstrate whether an extremum is a maximum or minimum, but they are too complex to discuss here.

Often we want to find the maximum or minimum of a function over some restricted values of (x1,x2), known as constrained optimization. This is one of the most important modeling tools in microeconomics, and will show up in many contexts.

  • We want to find the maximum of some function: maxx1,x2f(x1,x2)subject to g(x1,x2)=c
    • f(x1,x2) is the “objective function” we wish to maximize (or minimize)
    • g(x1,x2)=c is the “constraint” that limits us within some specified set of x1 and x2 values

Much of microeconomic modeling is about figuring out what an agent’s objective is (e.g. maximize profits, maximize utility, minimize costs) and what their constraints are (e.g. budget, time, output).

There are several ways to solve a constrained optimization problem (see Appendix to Ch. 5 in textbook), the most frequent (but requiring calculus) is Lagrangian multiplier method.

Graphically, the solution to a constrained optimization problem is the point where a curve (objective function) and a line (constraint) are tangent to one another: they just touch, but do not intersect (e.g. at point A below).

At the point of tangency (A), the slope of the curve (objective function) is equal to the slope of the line (constraint) - This is extremely useful and is always the solution to simple constrained optimization problems, e.g. - e.g. maximizing utility subject to income - e.g. minimizing cost subject to a certain level of output - We can find the equation of the tangent line using point slope form

yy1=m(xx1) - We need to know the slope m, which we would know from the slope of the function at that point - We know (x1,y1) is the point of tangency

5 Solving Systems of Equations

To solve a system of simultaneous linear equations, there must be as many equations as there are variables: 12x+4y=366x3y=3 There are two methods we can use to solve this system:

5.1 Substitution

First, we take one equation and solve for one of the variables. Here, we take the first, and solve for x:

12x+4y=3612x=364yx=313y

Now we take this value and plug it into the other equation:

6x3y=36(313y)3y=3182y3y=3185y=35y=15y=3

Now that we know the value of one variable, plug it into either of the original equations to solve for the value of the other variable:

12x+4y=3612x+4(3)=3612x+12=3612x=24x=2

We should verify that our variables are correct, so plug x and y into each equation and make sure it is true. Let’s start with the first equation:

12x+4y=3612(2)+4(3)=3624+12=36

We can do the same with the other equation:

6x3y=36(2)3(3)=3129=3

5.2 Elimination

We will multiply the equations by constants to make the coefficients of one variable equal. Here, let us try to make the coefficients in front of each equation’s x equal.

[12x+4y=36]6[6x3y=3]12

To do so, we will multiply the first equation by 6, and the second equation by 12. (We multiply each equation by the coefficient in front of the other equation’s x variable):

72x+24y=21672x36y=36

Now we subtract the second equation from the first, which should get rid of x:

72x+24y=216[72x36y=36]

Be careful to distribute the minus sign carefully:

[72x72x]+[24y(36y)]=[21636]60y=180y=3

Now that we have the value of one variable, plug it in to either equation.

12x+4y=3612x+4(3)=3612x+12=3612x=24x=2

Now that we have both variables, we can plug them in to each equation to double check them, same as before.

6 Exponents and Logarithms

Exponents are defined as:

  • bn=b×b×...×bn, where base b is multiplied by itself n times
  • b0=1 (for b0)

There are some common rules for exponents, assuming x and y are real numbers, m and n are integers, and a and b are rational:

  1. xn=1xn
    • e.g. x3=1x3
  2. x1n=xn
    • e.g. x12=x
  3. x(mn)=(x1n)m
    • e.g. 843=(813)4=24=16
  4. xaxb=xa+b
    • e.g. x2x3=x5
  5. xaxb=xab
    • e.g. x2x3=x1=1x
  6. (xy)a=xaya
    • e.g. (xy)2=x2y2
  7. (xy)a=xaya
    • e.g. (xy)2=x2y2

Logarithms are the exponents in the expressions above, the inverse of exponentiation

  • If by=x, then logb(x)=y
    • y is the number you must raise b to in order to get x
    • e.g. 26=64=(222222)6 times so log2(64)=6

We often use the natural logarithm (ln) with base e=2.718... in many math, statistics, and economic applications

  • If ey=x, then ln(x)=y

There are a number of highly useful rules for natural logs:

  1. ln(xy)=ln(x)+ln(y)
    • e.g. ln(23)=ln(2)+ln(3)
  2. ln(xy)=ln(x)ln(y)
    • e.g. ln(23)=ln(2)ln(3)
  3. ln(xa)=aln(x)
    • e.g. ln(x2)=2ln(x)
Previous
Next