Functions

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

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

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