QF101: Quantitative Finance August 22, Week 1: Functions. Facilitator: Christopher Ting AY 2017/2018

Similar documents
Chapter 2: Functions, Limits and Continuity

QF101: Quantitative Finance September 5, Week 3: Derivatives. Facilitator: Christopher Ting AY 2017/2018. f ( x + ) f(x) f(x) = lim

5 FUNCTIONS. 5.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

Calculus. Central role in much of modern science Physics, especially kinematics and electrodynamics Economics, engineering, medicine, chemistry, etc.

9/21/2018. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions

Definitions & Theorems

9 FUNCTIONS. 9.1 The Definition of Function. c Dr Oksana Shatalov, Fall

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

ECM Calculus and Geometry. Revision Notes

MAS221 Analysis, Semester 1,

Limit. Chapter Introduction

7.1. Calculus of inverse functions. Text Section 7.1 Exercise:

Week 2: Sequences and Series

Chapter 2: Differentiation

Continuity. Chapter 4

MATH 1A, Complete Lecture Notes. Fedor Duzhin

Chapter 8: Taylor s theorem and L Hospital s rule

Chapter 2: Differentiation

Advanced Mathematics Unit 2 Limits and Continuity

Advanced Mathematics Unit 2 Limits and Continuity

Solutions to Tutorial for Week 4

General Notation. Exercises and Problems

ter. on Can we get a still better result? Yes, by making the rectangles still smaller. As we make the rectangles smaller and smaller, the

MATH 1902: Mathematics for the Physical Sciences I

Introduction to Decision Sciences Lecture 6

Continuity. Chapter 4

Notes. Functions. Introduction. Notes. Notes. Definition Function. Definition. Slides by Christopher M. Bourke Instructor: Berthe Y.

11.5. The Chain Rule. Introduction. Prerequisites. Learning Outcomes

Calculus: Early Transcendental Functions Lecture Notes for Calculus 101. Feras Awad Mahmoud

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

Continuity, Intermediate Value Theorem (2.4)

MORE EXERCISES FOR SECTIONS II.1 AND II.2. There are drawings on the next two pages to accompany the starred ( ) exercises.

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

5 t + t2 4. (ii) f(x) = ln(x 2 1). (iii) f(x) = e 2x 2e x + 3 4

Continuity. To handle complicated functions, particularly those for which we have a reasonable formula or formulas, we need a more precise definition.

Functions. Given a function f: A B:

Chapter 1: Limits and Continuity

Mathematical Methods for Physics and Engineering

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

Chapter 2 Invertible Mappings

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

Sec 4.1 Limits, Informally. When we calculated f (x), we first started with the difference quotient. f(x + h) f(x) h

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

Iowa State University. Instructor: Alex Roitershtein Summer Homework #5. Solutions

LESSON RELATIONS & FUNCTION THEORY

Chapter 4: More Applications of Differentiation

1.5 Inverse Trigonometric Functions

Week Some Warm-up Questions

Functions as Relations

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

Calculus. Weijiu Liu. Department of Mathematics University of Central Arkansas 201 Donaghey Avenue, Conway, AR 72035, USA

Math 117: Honours Calculus I Fall, 2002 List of Theorems. a n k b k. k. Theorem 2.1 (Convergent Bounded) A convergent sequence is bounded.

THE LIMIT PROCESS (AN INTUITIVE INTRODUCTION)

7: FOURIER SERIES STEVEN HEILMAN

Calculus (Math 1A) Lecture 4

Calculus (Math 1A) Lecture 4

Functions Functions and Modeling A UTeach/TNT Course

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

(a) For an accumulation point a of S, the number l is the limit of f(x) as x approaches a, or lim x a f(x) = l, iff

Sets and Functions. (As we will see, in describing a set the order in which elements are listed is irrelevant).

(a) We need to prove that is reflexive, symmetric and transitive. 2b + a = 3a + 3b (2a + b) = 3a + 3b 3k = 3(a + b k)

Families of Functions, Taylor Polynomials, l Hopital s

Chapter P: Preliminaries

MODULE 1: FOUNDATIONS OF MATHEMATICS

CH 2: Limits and Derivatives

LIMITS, AND WHAT THEY HAVE TO DO WITH CONTINUOUS FUNCTIONS

Functions. Remark 1.2 The objective of our course Calculus is to study functions.

Learning Objectives for Math 165

2.1 Limits, Rates of Change and Slopes of Tangent Lines

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

August 20, Review of Integration & the. Fundamental Theorem of Calculus. Introduction to the Natural Logarithm.

Calculus. Contents. Paul Sutcliffe. Office: CM212a.

8.5 Taylor Polynomials and Taylor Series

Section 4.4 Functions. CS 130 Discrete Structures

Calculus I Exam 1 Review Fall 2016

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

MAT137 Calculus! Lecture 5

Chapter 1. Functions 1.1. Functions and Their Graphs

x x 1 x 2 + x 2 1 > 0. HW5. Text defines:

Solutions Final Exam May. 14, 2014

March 25, 2010 CHAPTER 2: LIMITS AND CONTINUITY OF FUNCTIONS IN EUCLIDEAN SPACE

Continuity. MATH 161 Calculus I. J. Robert Buchanan. Fall Department of Mathematics

Caculus 221. Possible questions for Exam II. March 19, 2002

Chapter 2. Limits and Continuity. 2.1 Rates of change and Tangents to Curves. The average Rate of change of y = f(x) with respect to x over the

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

MAT137 Calculus! Lecture 9

McGill University Math 354: Honors Analysis 3

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Mathematic 108, Fall 2015: Solutions to assignment #7

Metric Spaces and Topology

INFINITE SEQUENCES AND SERIES

Introduction to Proofs in Analysis. updated December 5, By Edoh Y. Amiran Following the outline of notes by Donald Chalice INTRODUCTION

INDEX. Bolzano-Weierstrass theorem, for sequences, boundary points, bounded functions, 142 bounded sets, 42 43

Math Bootcamp 2012 Miscellaneous

Calculus I. George Voutsadakis 1. LSSU Math 151. Lake Superior State University. 1 Mathematics and Computer Science

Real Analysis. Joe Patten August 12, 2018

MATHEMATICS HIGHER SECONDARY FIRST YEAR VOLUME II REVISED BASED ON THE RECOMMENDATIONS OF THE TEXT BOOK DEVELOPMENT COMMITTEE

Analysis II: Basic knowledge of real analysis: Part V, Power Series, Differentiation, and Taylor Series

1 Homework. Recommended Reading:

Transcription:

QF101: Quantitative Finance August 22, 2017 Week 1: Functions Facilitator: Christopher Ting AY 2017/2018 The chief function of the body is to carry the brain around. Thomas A. Edison 1.1 What is a function? 1. In set theory, we learn the relations such as subset, complement and so on between two sets. What about the relation between the elements of a set with the elements of another set? The answer for this question is, function. 2. Broadly speaking, a function specifies a mathematical relation that the elements of one set has with the elements of another set, under one defining condition. 3. Given sets X and Y, a function from X to Y is a set of ordered pairs F of members of these sets such that for every x in X there is a unique y in Y for which the pair (x, y) is in F. 4. Notation f is a function from the set of natural numbers N to the set of real numbers R is typically expressed as, for example, f : N R, n 2n n 2 + π. The first part of this notation is often read as f is a function on N into R. f(n) is read as f of n, where n is the argument of the function. 5. More formally, a function from X to Y is an object f such that every variable x X is uniquely associated with an object f(x) in Y. Very often, we write y = f(x). Example: Let X = {H, T }, Y = { 1, 0, 1}. Then (H, 1), (T, 1) is a function. One may interpret X as the two possible outcomes of tossing a coin. If head turns up, then it is associated with 1. If tail turns up, then it is associated with -1. This is a one-to-one function or mapping. The coin can stand on its edge after being tossed. But this unstable outcome is rare. 1-1

Week 1: Functions 1-2 Example: For the same X, the collection of pairs {(H, 1), (H, 0), (T, 1)} does not form a function because H is associated with 1 and 0, which is not unique. 6. The notation f : X Y indicates that f is a function with domain X and codomain Y. The function f is said to map or associate elements of X to elements of Y. Example: Constant function f(x) = c, x X Example: Indicator function 1 if x A, 1 A (x) = 0 if x / A. Here, the set A is a subset of X. Often, indicator function comes in various forms. For example, suppose a, b R, we can also have 1 if b > a, 1 b>a (x) = 0 if b a. Example: Sign function Example: Identity function The function satisfying sgn(x) = f(x) = x, 1, if x < 0; 0, if x = 0; 1, if x > 0. x X is called the identity function, and denoted by id X. Example: Power function A power function is f(x) = c x n, where c is a constant and n is typically an integer. Example: Polynomial function A polynomial function is a linear sum of power functions as follows: f(x) = a n x n + a n 1 x n 1 + + a 2 x 2 + a 1 x + a 0

Week 1: Functions 1-3 for all arguments x, where n is a non-negative integer and a 0, a 1, a 2,..., a n are constant coefficients. As an example, we have f(x) = x 3 x. Example: Logarithm function If b is any strictly positive number (b > 0) and x > 0, then y = log b x is equivalent to b y = x. We usually read this as log base b of x. In this definition y = log b x is called the logarithm form and b y = x is called the exponential form. Example: Natural logarithm function If b is the Napier s constant, denoted by e, which is the irrational value of 2.718281828459045, then a different symbol is used. ln(x) = log e x. Example: Exponential function The exponential form that corresponds to the natural logarithm is called the exponential function as follows: e x = exp ( x ). Example: Hyperbolic functions Hyperbolic sine: Hyperbolic cosine: Hyperbolic tangent: sinh x = ex e x 2 cosh x = ex + e x 2 = e2x 1 2e x = e2x + 1 2e x tanh x = sinh x cosh x = ex e x e x + e x = e2x 1 e 2x + 1 7. The set of all y is known as the image or range of the function, and need not be the whole of the codomain. That is, not every element of Y need to have an x in the domain to be associated with or mapped to it. 8. Three important kinds of functions are injection (or one-to-one function): if f(a) = f(b), then a must equal b;

Week 1: Functions 1-4 surjection (or onto function): for every y in the codomain there is an x in the domain such that f(x) = y; bijection: both one-to-one and onto. 9. A real-valued function f(x) on an interval is said to be concave if, for any x 1 and x 2 in the interval and for any t in [0, 1], f ( ) tx 1 + (1 t)x 2 tf(x1 ) + (1 t)f(x 2 ). The function is called strictly concave if f ( ) tx 1 + (1 t)x 2 > tf(x1 ) + (1 t)f(x 2 ), for any t (0, 1) and x 1 x 2. 10. For a function f : R R, this definition merely states that for every x 0 between x 1 and x 2, the point ( x 0, f(x 0 ) ) on the graph of f is above the straight line joining the points ( x 1, f(x 1 ) ) and (x 2, f(x 2 ) ). 11. A real-valued function f(x) on an interval is said to be concave if, for any x 1 and x 2 in the interval and for any t in [0, 1], f ( ) tx 1 + (1 t)x 2 tf(x1 ) + (1 t)f(x 2 ). The function is called strictly convex if f ( ) tx 1 + (1 t)x 2 < tf(x1 ) + (1 t)f(x 2 ), for every t such that 0 < t < 1 and x 1 x 2. 12. A function f is said to be (strictly) concave if f is (strictly) convex. 1.2 Composition 1. The nesting of two or more functions to form a single new function is known as composition. The composition of two functions f and g is denoted f g, where f is a function whose domain includes the range of g. The notation (f g)(x) = f ( g(x) ) is sometimes used to explicitly indicate the variable. 2. Composition is associative, so that f (g h) = (f g) h.

Week 1: Functions 1-5 1.3 Inverse functions 1. If f is a function from X to Y then an inverse function for f, denoted by f 1, is a function in the opposite direction, from Y to X, with the property that a round trip (a composition) returns each element to itself. Namely, for every x X, f 1( f(x) ) = x. 2. At times it is expressed as f 1 f = id X. 3. Not every function has an inverse; those that do are called invertible. The inverse function exists if and only if f is a bijection. Example: To find the inverse function of f(x) = (2x+8) 3 is to solve the equation y = (2x+8) 3 for x in terms of y. y = (2x + 8) 3 = 3 y = 2x + 8 = x = 3 y 8 2 Thus the inverse function f 1 is given by the formula f 1 (y) = 3 y 8 2 4. If f : X Y is any function (not necessarily invertible), the preimage (or inverse image) of an element y Y is the set of all elements of X that map to y: f 1 (y) = {x X : f(x) = y}.. Similarly, if S is any subset of Y, the preimage of S is the set of all elements of X that map to S: f 1 (S) = {x X : f(x) S}. Example: Consider the sine function f(x) = sin(x). The inverse function of sin(x) is denoted as arcsin(y). Similarly, arccos(y), arctan(y) are the inverse functions of, respectively, cos(x) and tan(x). Example: Take a function f : R R, where f : x x 2. This function is not invertible. Yet preimages may be defined for subsets of the codomain, for example, f 1 ({1, 4, 9, 16}) = { 4, 3, 2, 1, 1, 2, 3, 4}.

Week 1: Functions 1-6 1.4 Limit and Continuity 1. We say that lim f(x) = L if for every ɛ > 0 there is a δ > 0 such that whenever 0 < x a < δ then f(x) L < ɛ. Here L is the limit point. 2. Intuitive, if we can make f(x) as close to L as we want by taking x sufficiently close to a (on either side of a) without letting x = a. 3. The right hand limit is defined as lim f(x), for x > a. + In other words, the limit L is approached from the right where x > a. 4. The left hand limit is defined as lim f(x), for x < a. In other words, the limit L is approached from the left where x < a. 5. The right hand limit and the left hand limit need not necessarily be the same. If they are different, then lim f(x) does not exist. Example: Piecewise function x 2 + 5, if x 2; f(x) = 1 3x, if x 2. The left hand and right hand limits are, respectively, Therefore, lim x 2 f(x) does not exist. 6. But if lim f(x) does exist, then lim f(x) = lim x 2 x 2 x2 + 5 = 9 ; lim f(x) = lim 1 3x = 7. x 2 + x 2 + lim f(x) = lim f(x). + Conversely, when the left hand and right hand are equal, than lim f(x) exists. 7. The function f is continuous at some point a of its domain if the limit of f(x) as x approaches a through domain of f exists and is equal to f(a). In mathematical notation, this is written as lim f(x) = f(a).

Week 1: Functions 1-7 Implicit in this definition, three conditions are assumed. First, f has to be defined at a. Second, the limit on the left hand side of that equation has to exist. Third, the value of this limit must equal f(a). The function f is said to be continuous if it is continuous at every point of its domain. 8. Assume lim f(x) and lim g(x) both exist and c is any number, then (a) lim ( cf(x) ) = c lim f(x) (b) lim ( f(x) ± g(x) ) = lim f(x) ± lim g(x) ( ) (c) lim f(x)g(x) = lim f(x) lim g(x) ( ) f(x) (d) lim = lim f(x) g(x) lim g(x) ( ) n ( ) n, (e) lim f(x) = lim f(x) where n is typically a rational number. (f) Suppose f(x) is continuous at b and lim g(x) = b, then lim f( g(x) ) ( ) = f lim g(x) = f(b). 1.5 Squeeze theorem 1. The squeeze theorem (known also as the pinching theorem, the sandwich theorem, the sandwich rule and sometimes the squeeze lemma) is a theorem regarding the limit of a function. 2. The squeeze theorem is a technical result that is very important in proofs in calculus and mathematical analysis. It is typically used to confirm the limit of a function via comparison with two other functions whose limits are known or easily computed. It was first used geometrically by the mathematicians Archimedes and Eudoxus in an effort to compute π, and was formulated in modern terms by Gauss. 3. The squeeze theorem is formally stated as follows. Let I be an interval having the point a as a limit point. Let f, g, and h be functions defined on I, except possibly at a itself. Suppose that for every x in I not equal to a, we have g(x) f(x) h(x), and also suppose that Then lim g(x) = lim h(x) = L. lim f(x) = L.

Week 1: Functions 1-8 Proof: When x a, and under the assumption that g(x) f(x), we have by the definition of greatest lower bound inf. lim g(x) lim inf f(x) When x a, and under the assumption that f(x) h(x), we have by the definition of least upper bound sup. lim sup f(x) lim h(x) Obviously, we have lim inf f(x) lim sup f(x). Putting these inequalities together and by assumption, lim g(x) = lim h(x) = L, we obtain L = lim g(x) lim inf f(x) lim sup f(x) lim h(x) = L. Consequently all the inequalities are indeed equalities and the theorem immediately follows. 4. The functions g and h are said to be lower and upper bounds, respectively of f. 5. Here a is not required to lie in the interior of I. Indeed, if a is an endpoint of I, then the above limits are left- or right-hand limit. 6. A similar statement holds for infinite intervals: for example, if I = (0, ), then the conclusion holds, taking the limits as x. Example: The limit cannot be ascertained through the limit law lim x 0 x2 sin x because does not exist. ( ) lim f(x) g(x) = lim f(x) lim g(x), lim sin x 0 x However, by the definition of the sine function, 1 sin 1. x Multiplying each term by a positive number x 2, it follows that x 2 x 2 sin x 2. x Since lim x 0 x 2 = lim x 0 x 2 = 0, by the squeeze theorem, lim x 0 x 2 sin must also be 0. x

Week 1: Functions 1-9 1.6 Exercises A. Is the function f(x), f : R R, x R, f : x x 2 injective, surjective, or bijective function? B. Find the inverse function of ( ( ) 2 ) 1 exp 1 x µ, 2π σ 2 σ where x R is the variable of the function, µ R is a constant, and σ is a strictly positive realvalued constant. C. Apply the squeeze theorem to find the limit of when x π. f(x) = sgn ( π x ) ( ( ) ( )) 1 1 sin + cos π x π x