Week 0 VK Room: M1.30 www.vincent-knight.com knightva@cf.ac.uk - - PowerPoint PPT Presentation

week 0
SMART_READER_LITE
LIVE PREVIEW

Week 0 VK Room: M1.30 www.vincent-knight.com knightva@cf.ac.uk - - PowerPoint PPT Presentation

Week 0 VK Room: M1.30 www.vincent-knight.com knightva@cf.ac.uk Last updated September 25, 2014 1 / 76 Overview Algebra Numbers Exponents Inequalities Graphs Linear Equations Quadratic Equations Complex Numbers Systems of Equations


slide-1
SLIDE 1

Week 0

VK Room: M1.30 www.vincent-knight.com knightva@cf.ac.uk

Last updated September 25, 2014 1 / 76

slide-2
SLIDE 2

Overview

Algebra Numbers Exponents Inequalities Graphs Linear Equations Quadratic Equations Complex Numbers Systems of Equations Induction Calculus Functions Differentiation Integration Probability Support material

2 / 76

slide-3
SLIDE 3

Algebra

Wikipedia: “Algebra is the branch of mathematics concerning the study of the rules of operations and relations, and the constructions and concepts arising from them, including terms, polynomials, equations and algebraic structures.”

3 / 76

slide-4
SLIDE 4

Numbers

  • Integers:

Z = {. . . , −3, −2, −1, 0, 1, 2, 3, . . . }

  • Rationals:

Q = { a

  • ∃ p, q ∈ Z for which a = p

q }

  • Real numbers:

Z ⊂ Q ⊂ R

4 / 76

slide-5
SLIDE 5

Exponents

If a and b are any positive real numbers and x and y are any real numbers then:

  • 1. axay = ax+y
  • 2. a0 = 1
  • 3. a−x = 1

ax

  • 4. (ax)y = axy
  • 5. axbx = (ab)x

5 / 76

slide-6
SLIDE 6

Inequalities

When solving inequalities it is important to keep in mind whether

  • r not the operation we are using is an increasing or a decreasing
  • ne.

0.5 1 1.5 2 2 4 6 8 10 f(a) f(b) a b f(x) =5x 0.5 1 1.5 2 2 4 6 8 10 f(a) f(b) a b g(x) =−5x +10

a < b ⇒ f (a) < f (b) a < b ⇒ g(a) > g(b)

6 / 76

slide-7
SLIDE 7

Coordinates in the plane

The location of a point in a plane can be specified in terms of right handed cartesian axes: The point (1.3, .75) is plotted above. In general for a point P = (x, y), x/y is called the abscissa/ordinate of P.

7 / 76

slide-8
SLIDE 8

Graphs

If x and y connected by an equation, then this relation can be represented by a curve or curves in the (x, y) plance which is known as the graph of the equation. The equation y = x3 is plotted above.

8 / 76

slide-9
SLIDE 9

Graphs

One particular type of graph is the graph of a line: y = mx + b

  • m is called the gradient of the line.
  • b is called the y-intercept of the line.

9 / 76

slide-10
SLIDE 10

Exercise

Find the equation for the line going through the points {(.5, 3), (4, 1.1)}:

10 / 76

slide-11
SLIDE 11

Solution

General form of line y = mx + b through {(x1, y1), (x2, y2)} can be

  • btained:

y1 = mx1 + b y2 = mx2 + b } ⇒ m(x1 − x2) = y1 − y2 c(a2 − a1) = a2b1 − a1b1 } which gives: m = y1−y2

x1−x2

c = x2y1−x1y2

x2−x1

11 / 76

slide-12
SLIDE 12

Solution

So for (x1, y1) = (.5, 3) and (x2, y2) = (4, 1.1) we have: m =

1.9 −3.5 ≈ −.54

c = 11.45

3.5 ≈ 3.27

12 / 76

slide-13
SLIDE 13

Exercise

Where does the line y = −.54x + 3.27 intersect the y-axis and the x-axis?

13 / 76

slide-14
SLIDE 14

Exercise

Where does the line y = −.54x + 3.27 intersect the y-axis and the x-axis? This is equivalent to solving: y = −.54 × 0 + 3.27 and 0 = −.54x + 3.27

13 / 76

slide-15
SLIDE 15

Solving Linear Equations

In general equations of the form: y = mx + b are solved by muliplying or adding various constants. 0 = −.54x + 3.27 ⇔ 0 − 3.27 = (−.54x + 3.27) − 3.27 −3.27 = −.54x ⇔ −3.27 × 1 −.54 = .54x × 1 −.54 x ≈ 6.06

14 / 76

slide-16
SLIDE 16

Solving Linear Equations

In general equations of the form: y = mx + b are solved by muliplying or adding various constants. y = mx + b ⇔ y − b = (mx + b) − b y − b = mx ⇔ (y − b) × 1 m = mx × 1 m x = y − b m

15 / 76

slide-17
SLIDE 17

Quadratic

A “quadratic” is an expression of the form: ax2 + bx + c

  • a is called the quadratic coefficient,
  • b is called the linear coefficient,
  • c is called the constant term or free term.

16 / 76

slide-18
SLIDE 18

Quadratic

17 / 76

slide-19
SLIDE 19

Solving a Quadratic Equation

General solution of the equation: ax2 + bx + c = 0 is given by: x = −b ± √ b2 − 4ac 2a

18 / 76

slide-20
SLIDE 20

Exercise

Solve the equation: 3x2 − 3 2x − 2 = 0

19 / 76

slide-21
SLIDE 21

Solution

From the previous formula we have: x =

3 2 ±

√(3

2

)2 − 4 × 3 × (−2) 2 × 3 ⇔ x =

3 2 ±

9 4 + 24

6 x = 3 12 ±

1 2

√9 + 96 6 ⇔ x = 1 4 ± √ 105 12

20 / 76

slide-22
SLIDE 22

Exercise

Solve the equation: 4x2 − 2x + 10 = 3

21 / 76

slide-23
SLIDE 23

Solution

From the previous formula we have: x = 2 ± √ 22 − 4 × 4 × 7 2 × 4 ⇔ x = 2 ± √−108 8 x = 2 ± √ i2108 8 ⇔ x = 2 ± i√3 × 36 8 x = 2 ± 6i √ 3 8 = 1 4 ± 3 4i √ 3

22 / 76

slide-24
SLIDE 24

Very brief description of Complex Numbers

i2 = −1 Complex numbers: C = {a + bi | a, b ∈ R} If z = a + ib:

  • a is the real part of z.
  • b is the imaginary part of z.

23 / 76

slide-25
SLIDE 25

Solving Systems of Equations

A system of equations is a collection of equations involving the same set of variables. For example: 3x + 2y =1 2x − 2y = − 2 Various techniques can be used to solve such a problem.

24 / 76

slide-26
SLIDE 26

Elimination of Variables

  • Use first equation to obtain expression for first variable as a

function of other variables.

  • Substitute and use second equation to obtain expression for

second variable as a function of other variables.

  • etc...

25 / 76

slide-27
SLIDE 27

Exercise

Solve: 3x + 2y =1 2x − 2y = − 2

26 / 76

slide-28
SLIDE 28

Solution

First equation gives: 3x + 2y = 1 ⇒ x = 1 − 2y 3 Substituting in to second equation gives: 2 (1 − 2y 3 ) − 2y = −2 which implies: y = 4 5 Substituting in to our expression for x we get: x = −1 5

27 / 76

slide-29
SLIDE 29

Shorthand notation

  • Summation:

n

i=1

ai = a1 + a2 + a3 + · · · + an

  • Multiplication:

n

i=1

ai = a1 × a2 × a3 × · · · × an

28 / 76

slide-30
SLIDE 30

Examples

  • Summation:

4

i=1

i×2i = 1×2+2×22+33+4×24 = 2+8+3×8+4×16 = 98

  • Multiplication:

3

k=1

k2 = 1 × 22 × 32 = 36

29 / 76

slide-31
SLIDE 31

Proof by Induction

Technique often used to prove algebraic relationships. Basic idea:

  • Prove that something is true at the start.
  • Prove that if something is true at point k then it is true at

point k + 1.

k k+1

30 / 76

slide-32
SLIDE 32

Proof by Induction

Technique often used to prove algebraic relationships. Basic idea:

  • Prove that something is true at the start.
  • Prove that if something is true at point k then it is true at

point k + 1.

k k+1

30 / 76

slide-33
SLIDE 33

Exercise

Prove that:

n

i=0

i = n(n + 1) 2

31 / 76

slide-34
SLIDE 34

Solution

  • True for n = 0?:

i=0

i = 0 and n(n + 1) 2 = 0

  • If true for n = k, true for n = k + 1?:

k+1

i=0

i =

k

i=0

i + k + 1 = k(k + 1) 2 + k + 1 = (k + 1)(k + 2) 2

32 / 76

slide-35
SLIDE 35

Calculus

Wikipedia: “Calculus is the study of change, in the same way that geometry is the study of shape and algebra is the study of operations and their application to solving equations”

33 / 76

slide-36
SLIDE 36

Functions

A function f is a rule that assigns to each element x in a set D exactly one element, called f (x), in a set E.

f D E

34 / 76

slide-37
SLIDE 37

Functions

A function f is a rule that assigns to each element x in a set D exactly one element, called f (x), in a set E.

f D E

34 / 76

slide-38
SLIDE 38

Functions

A function f is a rule that assigns to each element x in a set D exactly one element, called f (x), in a set E.

f D E

  • We usually consider functions for which the sets D and E are

sets of real numbers.

  • The set D is called the domain of the function.
  • The range of f is the set of all possible values of f (x) as x

varies throughout the domain.

  • A symbol that represents an arbitrary number in the domain
  • f a function f is call an independent variable.
  • A symbol that represents a number in the range of f is called

a dependent variable.

34 / 76

slide-39
SLIDE 39

Example

The function f (x) = 3x3 − 4x − 4 is plotted below:

35 / 76

slide-40
SLIDE 40

Even and Odd Functions

  • If a function f satisfies f (−x) = f (x) for all x in its domain

then f is called an even function:

  • If a function f satisfies f (−x) = −f (x) for all x in its domain

then f is called an odd function:

36 / 76

slide-41
SLIDE 41

Tangent Curves

The tangent line to the curve y = f (x) at the point P = (a, f (a)) is the line through P with gradient: m = lim

x→a

f (x) − f (a) x − a

37 / 76

slide-42
SLIDE 42

Tangent Curves

38 / 76

slide-43
SLIDE 43

Tangent Curves

38 / 76

slide-44
SLIDE 44

Tangent Curves

38 / 76

slide-45
SLIDE 45

Tangent Curves

38 / 76

slide-46
SLIDE 46

Tangent Curves

38 / 76

slide-47
SLIDE 47

Derivative

The derivative of a function f at a number a, denoted by f ′(a) is: f ′(a) = lim

h→0

f (a + h) − f (a) h

39 / 76

slide-48
SLIDE 48

Exercise

Find the derivative of the function f (x) = x2 − 3x + 2 at the number a.

40 / 76

slide-49
SLIDE 49

Solution

f ′(a) = lim

h→0

f (a + h) − f (a) h = lim

h→0

( (a + h)2 − 3(a + h) + 2 ) − ( a2 − 3a + 2 ) − f (a) h = lim

h→0

a2 + 2ah + h2 − 3a − 3h + 2 − a2 + 3a − 2 h = lim

h→0

2ah + h2 − 3h h = lim

h→0 2a + h − 3

=2a − 3

41 / 76

slide-50
SLIDE 50

Rules of Differentiation

  • The Power Rule:

d dx (xn) = nxn−1

  • The Constant Multiple Rule:

d dx (cf (x)) = c d dx (f (x))

  • The Sum Rule:

d dx (f (x) + g(x)) = d dx (f (x)) + d dx (g(x))

42 / 76

slide-51
SLIDE 51

Rules of Differentiation

  • The Product Rule:

d dx (f (x)g(x)) = g(x) d dx (f (x)) + f (x) d dx (g(x))

  • The Quotient Rule:

d dx ( f (x) g(x) ) = g(x) d

dx (f (x)) − f (x) d dx (g(x))

g(x)2

43 / 76

slide-52
SLIDE 52

The Chain Rule

If g and f are two functions with derivatives g′ and f ′ respectively then: d dx (f (g(x))) = f ′(g(x))g′(x)

44 / 76

slide-53
SLIDE 53

Exercise

Differentiate F(x) = √ x2 + 1.

45 / 76

slide-54
SLIDE 54

Solution

If we let f (x) = √x and g(x) = x2 + 1 then we have: d dx f (x) = d dx x

1 2 = 1

2x

1 2 −1 =

1 2√x and d dx g(x) = 2x Using the Chain Rule we have: d dx F(x) = 1 2 √ x2 + 1 2x = x √ x2 + 1

46 / 76

slide-55
SLIDE 55

Natural Exponential Function

The mathematical constant e can be defined as the real number such that: d dx ex = ex

47 / 76

slide-56
SLIDE 56

Trigonometric Functions

d dx sin(x) = cos(x) d dx csc(x) = − csc(x) cot(x) d dx cos(x) = − sin(x) d dx sec(x) = sec(x) tan(x) d dx tan(x) = sec2(x) d dx cot(x) = − csc2(x)

48 / 76

slide-57
SLIDE 57

Area under a graph

49 / 76

slide-58
SLIDE 58

Fundamental Theorem of Calculus

If f is continuous on [a, b] then:

  • 1. If g(x) =

∫ x

a f (t)dt then d dx g = f .

2. ∫ b

a f (x)dx = F(b) − F(a) where F is any function such that d dx F = f .

50 / 76

slide-59
SLIDE 59

Indefinite Integrals

∫ f (x)dx = F(x) means d dx F = f

51 / 76

slide-60
SLIDE 60

Exercise

Calculate: ∫ x2 + sin(x)dx

52 / 76

slide-61
SLIDE 61

Solution

Since

d dx x3 = 3x2 we have

∫ x2dx = x3

3 . Similarly, since d dx cos(x) = − sin(x) we have:

∫ x2 + sin(x)dx = x3 3 − cos(x) + C where C is any constant.

53 / 76

slide-62
SLIDE 62

The Substitution Rule

If u = g(x) then: ∫ f (g(x))g′(x)dx = ∫ f (u)du

54 / 76

slide-63
SLIDE 63

Exercise

Calculate: ∫ x3 cos(x4 + 2)dx

55 / 76

slide-64
SLIDE 64

Solution

Letting u = x4 + 2, we have du = 4x3dx, thus: ∫ x3 cos(x4 + 2)dx = ∫ cos(u)1 4du = 1 4 ∫ cos(u)du = 1 4 sin(u) + C = 1 4 sin(x4 + 2) + C

56 / 76

slide-65
SLIDE 65

Integration by Parts

If u = f (x) and v = g(x): ∫ udv = uv − ∫ vdu

57 / 76

slide-66
SLIDE 66

Exercise

Calculate: ∫ x cos(x)dx

58 / 76

slide-67
SLIDE 67

Solution

Letting u = x and dv = cos(x)dx we have du = dx and v = sin(x), thus: ∫ x cos(x)dx = ∫ udv = uv − vdu = x sin(x) − ∫ sin(x)dx = x sin(x) + cos(x) + C

59 / 76

slide-68
SLIDE 68

Tables of Indefinite Integrals

∫ cf (x)dx = c ∫ f (x)dx ∫ (f (x) + g(x)) dx = ∫ f (x)dx + ∫ g(x)dx ∫ xndx = xn+1 n + 1 + C (n ̸= −1) ∫ 1 x dx = ln(|x|) + C ∫ exdx = ex + C ∫ axdx = ax ln a + C . . .

60 / 76

slide-69
SLIDE 69

Integration is . . . ...

  • Differentiation requires the application of rules (following a

recipe).

  • Integration is an art.

61 / 76

slide-70
SLIDE 70

Logarithms

By definition: loga ab = b “Natural Log”: ln x = loge x (recall:) ∫ 1 x dx = ln(|x|) + C

62 / 76

slide-71
SLIDE 71

Use of Logarithms in Statistics

In the following graph the red dots are contracted by log. This is a standard procedure sometimes used when analysing data.

63 / 76

slide-72
SLIDE 72

Probability

Wikipedia: “Probability theory is the branch of mathematics concerned with analysis of random phenomena.”

64 / 76

slide-73
SLIDE 73

Random Variables

In experiments or trials in which the outcome is numerical, the

  • utcomes are values of what is known as a random variable.

For example, suppose that a coin is spun 3 times and we record the outcomes and ask: how many heads appear? If we denote the random variable associated with the number of heads by X and denote the sample space by SX then we have: SX = {0, 1, 2, 3}

65 / 76

slide-74
SLIDE 74

Probability Distributions for Discrete Random Variables

The probability distribution P(X = xi) = pi has the following properties:

  • 0 ≤ pi ≤ 1
  • ∑n

i=1 pi = 1, if X has n possible outcomes, or ∑∞ i=1 pi = 1 if

X has a countably infinite set of outcomes

66 / 76

slide-75
SLIDE 75

Exercise

Write down the probability distribution for the random variable X associated with the rolling of a six sided dice.

67 / 76

slide-76
SLIDE 76

Solution

We have SX = {1, 2, 3, 4, 5, 6} and P(X = xi) = 1

6 for all i:

xi 1 2 3 4 5 6 P(X = xi)

1 6 1 6 1 6 1 6 1 6 1 6

68 / 76

slide-77
SLIDE 77

Cumulative Distribution for Discrete Random Variables

For a given probability distribution P(X = xi) = pi we have the cumulative distribution F(x) = P(X ≤ x): F(x) =

x

i=1

P(X = xi)

69 / 76

slide-78
SLIDE 78

Exercise

Write down the cumulative probability distribution for the random variable X associated with the rolling of a six sided dice.

70 / 76

slide-79
SLIDE 79

Solution

We have SX = {1, 2, 3, 4, 5, 6} and P(X = xi) = 1

6 for all i:

xi 1 2 3 4 5 6 P(X = xi)

1 6 1 6 1 6 1 6 1 6 1 6

F(xi)

1 6 2 6 3 6 4 6 5 6

1

71 / 76

slide-80
SLIDE 80

Probability Distributions for Continuous Random Variables

In many applications the discrete random variable which takes its values from a countable list is inappropriate. For example, the random variable X could be the time from, say, t = 0, until a light bulb fails. In these cases we use a continuous random variable, which is defined for the continuous variable t ≥ 0, and is no longer a countable list of values. Instead of the sequence of probabilities {P(X = xi)}, we define a probability density function f (x) over R which has the properties:

  • f (x) ≥ 0
  • ∫ ∞

−∞ f (x)dx = 1

  • for any x1 < x2:

P(x1 ≤ X ≤ x2) = ∫ x2

x1

f (x)dx

72 / 76

slide-81
SLIDE 81

Cumulative Distribution for Continuous Random Variables

F(x) = P(X ≤ x) = ∫ x

−∞

f (u)du

73 / 76

slide-82
SLIDE 82

Mean and Variance of Continuous Random Variables

Mean: E(X) = ∫ ∞

−∞

xf (x)dx Variance: Var(X) = ∫ ∞

−∞

(x − E(X))f (x)dx

74 / 76

slide-83
SLIDE 83

Exercise

Find the mean of the negative exponential distribution: f (x) = λe−λx defined for 0 < x < ∞

75 / 76

slide-84
SLIDE 84

Support Material

http://www.cf.ac.uk/mathssupport/ https://github.com/drvinceknight/MSc_week_0/wiki

76 / 76