Intermediate Macroeconomics ECN 312 β Summer 2015 Lecture 2: Math Review Functions A function is a rule that describes a relationship between numbers. Β» Ex. π¦ = π₯ 2 or π¦ = 2π₯ or π¦ = π(π₯) or π¦ = π(π₯1, π₯2) Β» The variable x is often called the independent variable. Β» The set of values from which x can be drawn is the domain. Β»
Intermediate Macroeconomics ECN 312 β Summer 2015 Lecture 2: Math Review Functions A function is a rule that describes a relationship between numbers. Β» Ex. π¦ = π₯ 2 or π¦ = 2π₯ or π¦ = π(π₯) or π¦ = π(π₯1, π₯2) Β» The variable x is often called the independent variable. Β» The set of values from which x can be drawn is the domain. Β» The variable y is often called the dependent variable. Β» The set of all corresponding y values is the range. Example: If π(π₯) = π₯ 3 β 4π₯ + 2, then Β» π(1) = (1) 3 β 4(1) + 2 = 1 β 4 + 2 = β1 Β» π(β2) = (β2) 3 β 4(β2) + 2 = β8 + 8 + 2 = 2 Β» π(π) = (π) 3 β 4(π) + 2 Graphs A graph of a function depicts the behavior of a function pictorially. π¦ = 2π₯ π(0) = 0 π(2) = 4 π(4) = 8 π(6) = 12 π(8) = 14 π(10) = 20 π¦ = π₯ 2 π(0) = 0 π(2) = 4 π(4) = 16 π(6) = 36 π(8) = 64 π(10) = 100 Remember that shifts in a curve represents changes to the equation, not to our input value for x. 0 5 10 15 20 25 0 2 4 6 8 10 0 20 40 60 80 100 120 0 2 4 6 8 10 Properties of Functions A continuous function is one that can be drawn without lifting a pencil from the paper: there are no jumps in a continuous function. A smooth function is one that has no βkinksβ or corners. Β» Example of a non-smooth function: π¦ = |π₯| A monotonic function is one that always increases or always decreases. Β» A positive monotonic function always increases as x increases. Β» A negative monotonic function always decreases and x increases. Both π¦ = 2π₯ is positive monotonic, but π¦ = π₯ 2 is not, because it is decreasing when x is negative. Equations and Identities An equation asks when a function is equal to some particular number. Β» Ex. 2π₯ = 8, π₯ 2 = 9, π(π₯) = 0. The solution to an equation is a value of x that satisfies the equation. Β» Ex. 4, 3 and -3, x* (we say that x* satisfies the equationπ(π₯) = 0. An identity is a relationship between variables that holds for all values of the variable. Β» (π₯ + π¦) 2 β‘ π₯ 2 + 2π₯π¦ + π¦ 2 Β» 2(π₯ + 1) β‘ 2π₯ + 2 Changes and Rates of Change The notation Ξπ₯ is read as βthe change in x.β If x changes from x* to x**, then the change in x is just Ξπ₯ = π₯ ββ β π₯ β , which can also be written as π₯ ββ = π₯ β + Ξπ₯. Typically, when we write Ξπ₯, we mean a very small change in x, or a marginal change. A rate of change is the ratio of two changes. If y is a function of x, and is given by π¦ = π(π₯), then the rate of change of y with respect to x is denoted by: Ξπ¦ Ξπ₯ = π(π₯ + Ξπ₯) β π(π₯) Ξπ₯ Example: π(π₯) = π + ππ₯ Ξπ¦ Ξπ₯ = π + π(π₯ + Ξπ₯) β π β ππ₯ Ξπ₯ = πΞπ₯ Ξπ₯ = π Example: π(π₯) = π₯ 2 Ξπ¦ Ξπ₯ = (π₯ + Ξπ₯) 2 β π₯ 2 Ξπ₯ = π₯ 2 + 2π₯Ξπ₯ + (Ξπ₯) 2 β π₯ 2 Ξπ₯ = 2π₯ + Ξπ₯ If Ξπ₯ is a marginal change, then it is close to zero, and the rate of change of y with respect to x will be approximately 2x. Slopes and Intercepts The rate of change of a function can be interpreted graphically as the slope of the function. The slope of a linear equation is the βriseβ over the βrunβ. In the case of π¦ = 2π₯, a βrunβ of 1 (x increase by 1) leads to a βriseβ of 2 (y increases by 2). This gives us the slope of 2. Note that the slope of this equation is independent of any additional terms in the equation which do not include x. That is, the slope of π¦ = 2π₯ + 10 is also 2. For a non-linear equation, the rate of change depends of the value of the independent variable, but it will be equal to the slope of the tangent line at that particular point. The tangent line is one that touches the same point as our function at the given x-value, and shares the same rate of change at that point. The vertical intercept of a function is the value of y when x = 0. The horizontal intercept of a function is the value of x when y = 0. Often we will be interested in these intercepts, because they will represent the limits to what is possible in our model. For example, the vertical intercept of the demand curve gives the highest willingness to pay, and marks the maximum value an individualβs consumer surplus could take on. y = 2x 0 5 10 15 20 25 0 2 4 6 8 10 -40 -20 0 20 40 60 80 100 120 0 2 4 6 8 10 Derivatives The derivative of a function π¦ = π(π₯) is defined to be: ππ(π₯) ππ₯ = lim Ξπ₯ β0 π(π₯ + Ξπ₯) β π(π₯) Ξπ₯ Differentiation rules: In the following formulas, u, v, and w are all functions of x, and c and m are constants. π ππ₯ (π) = 0 π ππ₯ (π₯) = 1 π ππ₯ (π’ + π£ + β― ) = π ππ₯ (π’) + π ππ₯ (π£) + β― π ππ₯ (ππ’) = π π ππ₯ (π’) π ππ₯ (π’π£) = π’ π ππ₯ (π£) + π£ π ππ₯ (π’) π ππ₯ (π’π£π€) = π’π£ π ππ₯ (π€) + π’π€ π ππ₯ (π£) + π£π€ π ππ₯ (π’) π ππ₯ ( π’ π£ ) = π£ π ππ₯ (π’) β π’ π ππ₯ (π£) π£ 2 π ππ₯ (π₯ π) = ππ₯ πβ1 π ππ₯ (π’ π) = ππ’ πβ1 π ππ₯ (π’) π ππ₯ (ln π₯) = 1 π₯ π ππ₯ ππ₯ = ππ₯ ln π π ππ₯ (π π₯ ) = π π₯ Differentiation Examples π(π₯) = 4 + 2π₯ β 3π₯ 2 β 5π₯ 3 β 8π₯ 4 + 9π₯ 5 π ππ₯ = 0 + 2 β 3(2π₯) β 5(3π₯ 2 ) β 8(4π₯ 3 ) + 9(5π₯ 4 ) π(π₯) = 3 β 2π₯ 3 + 2π₯ π ππ₯ = (3 + 2π₯) π ππ₯ (3 β 2π₯) β (3 β 2π₯) π ππ₯ (3 + 2π₯) (3 + 2π₯) 2 = (3 + 2π₯)(β2) β (3 β 2π₯)(2) (3 + 2π₯) 2 = β12 (3 + 2π₯) 2 π(π§) = π§ 2 + 3 πππ π(π₯) = 2π₯ + 1 π¦ = π(π(π₯)) = (2π₯ + 1) 2 + 3 = 4π₯ 2 + 4π₯ + 4 ππ¦ ππ₯ = 8π₯ + 4 Chain Rule Given π(π§) and π(π₯), for π¦ = π(π(π₯)): ππ¦ ππ₯ = ππ(π(π₯)) ππ(π₯) ππ(π₯) ππ₯ So π ππ₯ = 2(2π₯ + 1) 1 β 2 = 4(2π₯ + 1) = 8π₯ + 4 Second Derivatives The second derivative of a function is the derivative of the derivative of that function. Β» The second derivative measures curvature. A negative second derivative has a slope which is decreasing (concave). A positive second derivative has an increasing slope (convex). First derivatives are often denoted as π β² (π₯) while second derivatives are noted as π β²β²(π₯). Partial Derivatives When there are more than one independent variables, we take the partial derivative with respect to a single independent variable. In other words, you treat the other independent variables as constants. Example: π(π₯1, π₯2 ) = π₯1 0.3π₯2 0.7 π ππ₯1 = 0.3π₯1 β0.7π₯2 0.7 = 0.3 π₯2 0.7 π₯1 0.7 = 0.3 ( π₯2 π₯1 ) 0.7 π ππ₯2 = 0.7π₯1 0.3π₯2 β0.3 = 0.7 π₯1 0.3 π₯2 0.3 = 0.7 ( π₯1 π₯2 ) 0.3 Optimization The maximum of a function is found under the following conditions: ππ(π₯) ππ₯ = 0 π 2π(π₯) ππ₯ 2 β€ 0 The minimum of a function is found under the following conditions: ππ(π₯) ππ₯ = 0 π 2π(π₯) ππ₯ 2 β₯ 0 The condition ππ(π₯) ππ₯ = 0 is known as the first-order condition. The condition π 2π(π₯) ππ₯ 2 β€β₯ 0 is known as the second-order condition. Example: π(π₯) = (10 β π₯) 2 ππ(π₯) ππ₯ = 2(10 β π₯)(βπ₯) = 2π₯ β 20 First Order Condition 2π₯ β 20 = 0 β π₯ = 10 Second Order Condition π 2π(π₯) ππ₯ 2 = π(2π₯ β 20) ππ₯ = 2 β₯ 0 β ππππππ’π So the function π(π₯) = (10 β π₯) 2 is minimized when x = 10.