95
Algebra, Calculus & Probability Refresher MSc Maths Skills Geraint Palmer Room: M/1.29 [email protected] Last updated September 29, 2017

Algebra, Calculus & Probability Refresher

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Algebra, Calculus & Probability Refresher

Algebra, Calculus & Probability RefresherMSc Maths Skills

Geraint PalmerRoom: M/1.29

[email protected]

Last updated September 29, 2017

Page 2: Algebra, Calculus & Probability Refresher

Algebra

Page 3: Algebra, Calculus & Probability Refresher

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

Page 4: Algebra, Calculus & Probability Refresher

Exponents

For a, b ∈ R+, x , y ∈ R:

1. axay = ax+y

2. a0 = 1

3. a−x = 1ax

4. (ax)y = axy

5. axbx = (ab)x

6. a12 =√a

Page 5: Algebra, Calculus & Probability Refresher

Logarithms

loga ab = b

3x = 81⇔ x = log3 81 = 4

Page 6: Algebra, Calculus & Probability Refresher

Inequalities

Increasing & decreasing functions:

0 1 2 3 4 5

x

0

1

2

3

4

5

y

a > b f(a) > f(b)

0 1 2 3 4 5

x

0

1

2

3

4

5

y

a > b f(a) < f(b)

Page 7: Algebra, Calculus & Probability Refresher

Inequalities

Solve:5− 2x ≥ 13

5− 2x − 5 ≥ 13− 5

−2x ≥ 8

−2x × 1

−2≤ 8× 1

−2apply decreasing f

x ≤ −4

Page 8: Algebra, Calculus & Probability Refresher

Inequalities

Solve:5− 2x ≥ 13

5− 2x − 5 ≥ 13− 5

−2x ≥ 8

−2x × 1

−2≤ 8× 1

−2apply decreasing f

x ≤ −4

Page 9: Algebra, Calculus & Probability Refresher

Functions

Evaluate the function f when a = 4, b = 2, c = −5:

f (a, b, c) =a

b+ 4c − a2c + 10 (a+ b)

Solution:

f (4, 2,−5) = 4

2+ (4×−5)−

(42 ×−5

)+ 10 (4 + 2)

= 2− 20− (16×−5) + 10 (6)

= 2− 20 + 80 + 60

= 122

Page 10: Algebra, Calculus & Probability Refresher

Functions

Evaluate the function f when a = 4, b = 2, c = −5:

f (a, b, c) =a

b+ 4c − a2c + 10 (a+ b)

Solution:

f (4, 2,−5) = 4

2+ (4×−5)−

(42 ×−5

)+ 10 (4 + 2)

= 2− 20− (16×−5) + 10 (6)

= 2− 20 + 80 + 60

= 122

Page 11: Algebra, Calculus & Probability Refresher

Coordinates in the plane

Right handed Cartesian axes:

(1.3, 0.75)

0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00

x

0.0

0.2

0.4

0.6

0.8

1.0

1.2

1.4

y

For P = (x , y), x/y is called the abscissa / ordinate of P .

Page 12: Algebra, Calculus & Probability Refresher

GraphsIf x and y connected by an equation, then this relation can berepresented by a curve or curves in the (x , y) plane which isknown as the graph of the equation.

3 2 1 0 1 2 3

x30

20

10

0

10

20

30

y

y = x3

Page 13: Algebra, Calculus & Probability Refresher

Graphs

Graph of a straight line:

y = mx + c

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

Page 14: Algebra, Calculus & Probability Refresher

Exercise

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

0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0

x

0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

4.0

y

Page 15: Algebra, Calculus & Probability Refresher

Solution

General form of y = mx + c through {(x1, y1), (x2, y2)}:

y1 = mx1 + cy2 = mx2 + c

}⇒ m(x1 − x2) = y1 − y2

which gives:m = y1−y2

x1−x2

c = x2y1−x1y2x2−x1

Page 16: Algebra, Calculus & Probability Refresher

SolutionSo for (x1, y1) = (0.5, 3) and (x2, y2) = (4, 1.1) we have:

m = 1.9−3.5 ≈ −0.54

c = 11.453.5 ≈ 3.27

0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0

x

0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

4.0

y

Page 17: Algebra, Calculus & Probability Refresher

Exercise

Where does the line y = −0.54x + 3.27 intersect the y-axis andthe x-axis?

This is equivalent to solving:

y = −0.54× 0 + 3.27

and0 = −0.54x + 3.27

Page 18: Algebra, Calculus & Probability Refresher

Exercise

Where does the line y = −0.54x + 3.27 intersect the y-axis andthe x-axis?This is equivalent to solving:

y = −0.54× 0 + 3.27

and0 = −0.54x + 3.27

Page 19: Algebra, Calculus & Probability Refresher

Solving Linear Equations

In linear equations are solved by multiplying or adding variousconstants.

0 = −0.54x + 3.27 ⇔ 0− 3.27 = (−0.54x + 3.27)− 3.27

⇔ −3.27 = −0.54x

⇔ −3.27× 1

−0.54= 0.54x × 1

−0.54⇔ 6.06 ≈ x

Page 20: Algebra, Calculus & Probability Refresher

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.

Page 21: Algebra, Calculus & Probability Refresher

Quadratic

2 1 0 1 2 3

x

2

0

2

4

6

8

10

12

14

y

y = 3x2 32x 2

Page 22: Algebra, Calculus & Probability Refresher

Solving a Quadratic Equation

General solution of the equation:

ax2 + bx + c = 0

is given by:

x =−b ±

√b2 − 4ac

2a

Page 23: Algebra, Calculus & Probability Refresher

Exercise

Solve the equation:3x2 − 3

2x − 2 = 0

Page 24: Algebra, Calculus & Probability Refresher

Solution

From the previous formula we have:

x =−b ±

√b2 − 4ac

2a⇔ x =

32 ±

√(32

)2 − 4× 3× (−2)2× 3

⇔ x =

32 ±

√94 + 24

6

⇔ x =3

12±

12

√9 + 96

6

⇔ x =1

4±√105

12

Page 25: Algebra, Calculus & Probability Refresher

Exercise

Solve the equation:

4x2 − 2x + 10 = 3

Page 26: Algebra, Calculus & Probability Refresher

Solution

From the previous formula we have:

x =−b ±

√b2 − 4ac

2a⇔ x =

2±√22 − 4× 4× 7

2× 4

⇔ x =2±√−1088

⇔ x =2±√i2108

8

⇔ x =2± i

√3× 36

8

⇔ x =2± 6i

√3

8=

1

4± 3

4i√3

Page 27: Algebra, Calculus & Probability Refresher

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 .

Page 28: Algebra, Calculus & Probability Refresher

Solving Systems of Equations

A system of equations is a collection of equations involving thesame set of variables. For example:

3x + 2y = 1

2x − 2y = −2

Various techniques can be used to solve such a problem.

Page 29: Algebra, Calculus & Probability Refresher

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

Page 30: Algebra, Calculus & Probability Refresher

Shorthand notation

• Summation:n∑

i=1

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

• Multiplication:

n∏i=1

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

Page 31: Algebra, Calculus & Probability Refresher

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

Page 32: Algebra, Calculus & Probability Refresher

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.

0 k k+1

Page 33: Algebra, Calculus & Probability Refresher

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.

0 k k+1

Page 34: Algebra, Calculus & Probability Refresher

Exercise

Prove that:n∑

i=0

i =n(n + 1)

2

Page 35: Algebra, Calculus & Probability Refresher

Solution

• True for n = 0?: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

Page 36: Algebra, Calculus & Probability Refresher

Solution

• True for n = 0?: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

Page 37: Algebra, Calculus & Probability Refresher

Infinite Sums

∞∑k=0

ak =a

1− a

∞∑k=0

kak =a

(1− a)2

∞∑k=0

ak

k!= ea

https://en.wikipedia.org/wiki/List_of_mathematical_series

Page 38: Algebra, Calculus & Probability Refresher

Infinite Sums

S =∞∑k=0

ak

S = a0 + a1 + a2 + a3 + a4 + . . .

aS = a1 + a2 + a3 + a4 + a5 + . . .

Consider S − aS :

S − aS = a0

S − aS = 1

S(1− a) = 1

S =1

(1− a)

Page 39: Algebra, Calculus & Probability Refresher

Calculus

Page 40: Algebra, Calculus & Probability Refresher

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

fD E

• We usually consider functions for which the sets D and Eare 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

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

a dependent variable.

Page 41: Algebra, Calculus & Probability Refresher

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

fD E

• We usually consider functions for which the sets D and Eare 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

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

a dependent variable.

Page 42: Algebra, Calculus & Probability Refresher

Example

f (x) = 3x3 − 4x − 4

3 2 1 0 1 2 3

x

60

40

20

0

20

40

60

y

Page 43: Algebra, Calculus & Probability Refresher

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 = limx→a

f (x)− f (a)

x − a

Page 44: Algebra, Calculus & Probability Refresher

Tangent Curves

0.0 0.5 1.0 1.5 2.0 2.5 3.0

x

2

1

0

1

2

3

4

y

Page 45: Algebra, Calculus & Probability Refresher

Tangent Curves

0.0 0.5 1.0 1.5 2.0 2.5 3.0

x

2

1

0

1

2

3

4

y

Page 46: Algebra, Calculus & Probability Refresher

Tangent Curves

0.0 0.5 1.0 1.5 2.0 2.5 3.0

x

2

1

0

1

2

3

4

y

Page 47: Algebra, Calculus & Probability Refresher

Tangent Curves

0.0 0.5 1.0 1.5 2.0 2.5 3.0

x

2

1

0

1

2

3

4

y

Page 48: Algebra, Calculus & Probability Refresher

Tangent Curves

0.0 0.5 1.0 1.5 2.0 2.5 3.0

x

2

1

0

1

2

3

4

y

Page 49: Algebra, Calculus & Probability Refresher

Derivative

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

f ′(a) = limh→0

f (a+ h)− f (a)

h

For polynomials:

f = xn

=⇒ f ′ = nxn−1

Page 50: Algebra, Calculus & Probability Refresher

Derivative

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

f ′(a) = limh→0

f (a+ h)− f (a)

h

For polynomials:

f = xn

=⇒ f ′ = nxn−1

Page 51: Algebra, Calculus & Probability Refresher

Exercise

Find the derivative of

f (x) = x2 − 3x + 2

at x = 6.

Page 52: Algebra, Calculus & Probability Refresher

Solution

f (x) = x2 − 3x + 2

f (x) = 1× x2 − 3× x1 + 2× x0

f ′(x) = 1× 2× x2−1 − 3× 1× x1−1 + 2× 0× x0−1

f ′(x) = 2x1 − 3x0 + 0

f ′(x) = 2x − 3

f ′(6) = 2× 6 − 3

f ′(6) = 9

Page 53: Algebra, Calculus & Probability Refresher

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:(f + g)′ = f ′ + g ′

Page 54: Algebra, Calculus & Probability Refresher

Rules of Differentiation

• The Product Rule:

(fg)′ = f ′g + fg ′

• The Quotient Rule: (f

g

)′=

f ′g − fg ′

g2

Page 55: Algebra, Calculus & Probability Refresher

The Chain Rule

If f (g(x)) = f ◦ g :

(f ◦ g)′ =(f ′ ◦ g

)g ′

Page 56: Algebra, Calculus & Probability Refresher

Exercise

Differentiate F (x) =√x2 + 1.

Page 57: Algebra, Calculus & Probability Refresher

Solution

If we let f (x) =√x = x

12 and g(x) = x2 + 1 then we have:

f ′ =1

2x−

12 =

1

2√x

andg ′ = 2x

Using the Chain Rule we have:

F ′(x) =

(1

2√x2 + 1

)(2x)

=x√

x2 + 1

Page 58: Algebra, Calculus & Probability Refresher

Table of Derivatives

d

dxsin(x) = cos(x)

d

dxcos(x) = − sin(x)

d

dxtan(x) = sec2(x)

http://www.math.wustl.edu/~freiwald/131derivativetable.pdf

Page 59: Algebra, Calculus & Probability Refresher

Natural Exponential FunctionThe mathematical constant e can be defined as the real numbersuch that:

d

dxex = ex

1 0 1 2 3

x

0.0

2.5

5.0

7.5

10.0

12.5

15.0

17.5

20.0

y

y = ex

Page 60: Algebra, Calculus & Probability Refresher

Natural Logarithm

ln x = loge x

y = ex ⇔ x = ln y

Page 61: Algebra, Calculus & Probability Refresher

Logarithms in Statistics

A standard procedure used when analysing data is to transformwith log. Here we compare populations and areas of the countriesof the world:

0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75

Area 1e7

0.0

0.2

0.4

0.6

0.8

1.0

1.2

Pop

ulat

ion

1e9

0 1 2 3 4 5 6 7

log10(Area)

4

5

6

7

8

9

log 1

0(Po

pula

tion)

Page 62: Algebra, Calculus & Probability Refresher

Logarithms in Statistics

A standard procedure used when analysing data is to transformwith log. Here we compare populations and areas of the countriesof the world:

0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75

Area 1e7

0.0

0.2

0.4

0.6

0.8

1.0

1.2

Pop

ulat

ion

1e9

0 1 2 3 4 5 6 7

log10(Area)

4

5

6

7

8

9

log 1

0(Po

pula

tion)

Page 63: Algebra, Calculus & Probability Refresher

Area under a graph

0 2 4 6 8 10

x0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

y

y = x

Page 64: Algebra, Calculus & Probability Refresher

Area under a graph

0 2 4 6 8 10

x0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

y

y = x

Page 65: Algebra, Calculus & Probability Refresher

Area under a graph

0 2 4 6 8 10

x0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

y

y = x

Page 66: Algebra, Calculus & Probability Refresher

Area under a graph

0 2 4 6 8 10

x0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

y

y = x

Page 67: Algebra, Calculus & Probability Refresher

Area under a graph

0 2 4 6 8 10

x0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

y

y = x

Page 68: Algebra, Calculus & Probability Refresher

Fundamental Theorem of Calculus

Let f , F be continuous on [a, b] then:

1. If F (x) =∫ xa f (t)dt then F ′ = f .

2.∫ ba f (x)dx = F (b)− F (a)

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

dxF = f

Page 69: Algebra, Calculus & Probability Refresher

Fundamental Theorem of Calculus

Let f , F be continuous on [a, b] then:

1. If F (x) =∫ xa f (t)dt then F ′ = f .

2.∫ ba f (x)dx = F (b)− F (a)

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

dxF = f

Page 70: Algebra, Calculus & Probability Refresher

Tables of Indefinite Integrals

∫xndx =

xn+1

n + 1+ C (n 6= −1)∫

cf (x)dx = c

∫f (x)dx∫

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

∫f (x)dx +

∫g(x)dx

...

http://integral-table.com/downloads/single-page-integral-table.pdf

Page 71: Algebra, Calculus & Probability Refresher

Exercise

Calculate: ∫x2 + sin(x)dx

∫x2 + sin(x)dx =

x3

3− cos(x) + C

Page 72: Algebra, Calculus & Probability Refresher

Exercise

Calculate: ∫x2 + sin(x)dx

∫x2 + sin(x)dx =

x3

3− cos(x) + C

Page 73: Algebra, Calculus & Probability Refresher

Integration by Parts

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

∫vdu

Page 74: Algebra, Calculus & Probability Refresher

Exercise

Calculate: ∫x cos(x)dx

Page 75: Algebra, Calculus & Probability Refresher

Solution

Letting u = x and dv = cos(x)dx we have du = dx andv = sin(x), thus:∫

x cos(x)dx =

∫udv = uv − vdu

= x sin(x)−∫

sin(x)dx

= x sin(x) + cos(x) + C

Page 76: Algebra, Calculus & Probability Refresher

The Substitution Rule

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

∫f (u)du

Page 77: Algebra, Calculus & Probability Refresher

Exercise

Calculate: ∫x3 cos(x4 + 2)dx

Page 78: Algebra, Calculus & Probability Refresher

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

4sin(u) + C

=1

4sin(x4 + 2) + C

Page 79: Algebra, Calculus & Probability Refresher

Probability

Page 80: Algebra, Calculus & Probability Refresher

Random Variables

In trials where the outcome is numerical, the outcomes are valuesof random variables.

Example: A coin is spun 3 times, how many heads appear?Denote the random variable associated with the number of headsby X . Denote the sample space by SX then:

SX = {0, 1, 2, 3}

Page 81: Algebra, Calculus & Probability Refresher

Discrete Probability Distributions

For a probability distribution P(X = xi ) = pi :• 0 ≤ pi ≤ 1

• All probabilities sum to 1:•∑n

i=1 pi = 1 if X has n possible outcomes

•∑∞

i=1 pi = 1 if X has a countably infinite set of outcomes

Page 82: Algebra, Calculus & Probability Refresher

Exercise

Write down the state space and probability distribution for therandom variable X associated with the rolling of a six sided die.

SX = {1, 2, 3, 4, 5, 6}

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

16

16

16

16

16

16

Page 83: Algebra, Calculus & Probability Refresher

Exercise

Write down the state space and probability distribution for therandom variable X associated with the rolling of a six sided die.

SX = {1, 2, 3, 4, 5, 6}

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

16

16

16

16

16

16

Page 84: Algebra, Calculus & Probability Refresher

Cumulative Distribution for Discrete Random Variables

For P(X = xi ) = pi the cumulative distribution F (x) = P(X ≤ x):

F (x) =x∑

i=1

P(X = xi )

Page 85: Algebra, Calculus & Probability Refresher

Exercise

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

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

16

16

16

16

16

16

F (xi )16

26

36

46

56 1

Page 86: Algebra, Calculus & Probability Refresher

Exercise

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

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

16

16

16

16

16

16

F (xi )16

26

36

46

56 1

Page 87: Algebra, Calculus & Probability Refresher

Mean and Variance

Mean / Average / Expected Value:

E (X ) =n∑

i=1

xipi

Variance:

Var(X ) =n∑

i=1

(xi − E (X ))2 pi

Page 88: Algebra, Calculus & Probability Refresher

Exercise

Calculate the mean and variance for the random variable Xassociated with the rolling of a six sided dice.

Mean:

E (X ) =1

6+

2

6+

3

6+

4

6+

5

6+

6

6= 3.5

Variance:

Var(X ) =(1− 3.5)2

6+

(2− 3.5)2

6+

(3− 3.5)2

6

+(4− 3.5)2

6+

(5− 3.5)2

6+

(6− 3.5)2

6≈ 2.9

Page 89: Algebra, Calculus & Probability Refresher

Exercise

Calculate the mean and variance for the random variable Xassociated with the rolling of a six sided dice.

Mean:

E (X ) =1

6+

2

6+

3

6+

4

6+

5

6+

6

6= 3.5

Variance:

Var(X ) =(1− 3.5)2

6+

(2− 3.5)2

6+

(3− 3.5)2

6

+(4− 3.5)2

6+

(5− 3.5)2

6+

(6− 3.5)2

6≈ 2.9

Page 90: Algebra, Calculus & Probability Refresher

Continuous Random Variables

The random variable X is the time from t = 0 until a light bulbfails. X is a continuous random variable, defined for thecontinuous variable t ≥ 0, and is not a countable list of values.

Define a probability density function f (x) over R:• f (x) ≥ 0

•∫∞−∞ f (x)dx = 1

• for any x1 < x2:

P(x1 ≤ X ≤ x2) =

∫ x2

x1

f (x)dx

Page 91: Algebra, Calculus & Probability Refresher

Continuous CDF

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

∫ x

−∞f (u)du

Page 92: Algebra, Calculus & Probability Refresher

Mean and Variance of Continuous Random Variables

Mean:E (X ) =

∫ ∞−∞

xf (x)dx

Variance:Var(X ) =

∫ ∞−∞

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

Page 93: Algebra, Calculus & Probability Refresher

Exercise

Find the mean of the negative exponential distribution:

f (x) = λe−λx defined for 0 < x <∞

Page 94: Algebra, Calculus & Probability Refresher

Solution

E (X ) =

∫ ∞0

xf (x)dx

= λ

∫ ∞0

xe−λxdx

= λ

(uv −

∫vdu

)∞0

= λ

[x

λe−λx +

∫1

λe−λx

]∞0

= λ

[x

λe−λx +

1

λ2e−λx

]∞0

=

[xe−λx +

1

λe−λx

]∞0

= 0− 0− 0 +1

λ=

1

λ

Page 95: Algebra, Calculus & Probability Refresher

Support Material

• https://intranet.cardiff.ac.uk/students/

your-study/study-skills/maths-support

• https://github.com/drvinceknight/MSc_week_0/wiki

• http://www.geraintianpalmer.org.uk/teaching/