New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a...

25
Mathematical Modelling-II (AMT221β/IMT221β) Department of Mathematics University of Ruhuna A.W.L. Pubudu Thilan Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 1/25

Transcript of New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a...

Page 1: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Mathematical Modelling-II(AMT221β/IMT221β)

Department of MathematicsUniversity of Ruhuna

A.W.L. Pubudu Thilan

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 1/25

Page 2: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

About course unit

Course unit: Mathematical Modelling-II(AMT221β/IMT221β)

Credit value: 2.5

Number of lecture hours: 30

Number of tutorial hours: 15

Method of assessment: End of semester examination

Attendance: Both tutorial and lecture will be considered

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 2/25

Page 3: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

References

1 Numerical Methods, S. Balachandra Rao and C.K. Shantha(519.4RAO)

2 Numerical Methods for Engineers and Scientists, J.N. Sharma(519.4SHA)

3 Numerical Methods, J. Douglas Faires and Richard Burden(519.4FAI)

4 Advance Engineering Mathematics, H.K. Dass (510DAS)

5 http://www.math.ruh.ac.lk/∼pubudu/

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 3/25

Page 4: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Chapter 1

Introduction to Numerical Solutionsof Differential Equations

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 4/25

Page 5: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Nature’s influence on scientific investigations

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 5/25

Page 6: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Why do we need mathematical modelling?

1 The mass of the Earth is 5.98× 1024kg . How do we find it?Can we use a balance?

2 The temperature at the very center of the Sun is about15,000,000℃. How do we measure it? Can we use athermometer?

3 A typical adult has a blood volume of approximately between4.7 and 5 litres. How do we measure it? Can we find a personfor this?

Answers to these questions require mathematical modeling !

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 6/25

Page 7: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

What is mathematical modelling?

Mathematical modelling is a process of representing real worldproblems in mathematical terms and concepts.

A mathematical model can be considered as a simplificationof real world problem into a mathematical form, therebyconverting the real world problem into a mathematicalproblem.

The mathematical problem can then be solved using whateverknown techniques to obtain a mathematical solution.

This solution is then interpreted and translated into real terms.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 7/25

Page 8: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

What is mathematical modelling?Cont...

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 8/25

Page 9: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Why do we use differential equations in modelling?

Many models in real world involve the rate of change of aquantity.

There is thus a need to incorporate derivatives into themathematical model.

These mathematical models are examples of differentialequations.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 9/25

Page 10: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Differential equations

A differential equation is a mathematical equation for anunknown function of one or several variables that relates thevalues of the function itself and its derivatives of variousorders.

Eg:

(i)dx

dt=

t2x − x

x + 1

(ii) x2d2y

dx2− 2x

dy

dx+ 5y = 9x2

(iii)∂2v

∂x2+

∂2v

∂y2= 0

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 10/25

Page 11: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Types of differential equations

Differential equations can be classified as

1 Ordinary Differential Equations (ODEs) and

2 Partial Differential Equations (PDEs).

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 11/25

Page 12: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Ordinary differential equations (ODEs)

An ordinary differential equation (ODE) is a differentialequation in which the unknown function (also known as thedependent variable) is a function of a single independentvariable.

Eg:

(i)dy

dx= x + 2

(ii) y ′ = x2 − 1

(iii)d2u

dx2+

du

dx= x + 1

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 12/25

Page 13: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Partial differential equation (PDEs)

A partial differential equation (PDE) is a differential equationin which the unknown function is a function of multipleindependent variables and the equation involves its partialderivatives.

Eg:

(i)∂2z

∂x2+

∂2z

∂y2= 1

(ii)∂R

∂u= 3w2 ∂R

∂w− 5v

∂R

∂v

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 13/25

Page 14: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Order of a differential equation

Differential equations, both ordinary and partial, are alsoclassified according to the highest ordered derivative of theunknown function.

The order of any differential equation is the highest order ofthe derivative present in the equation.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 14/25

Page 15: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Order of a differential equationExample

Classify following differential equations as ordinary or partial andthen write down the order.

(i)d3u

dx2+

d2u

dx= x + 1.

(ii) y ′′′ + 3xy ′′ +6

xy = 1− x3.

(iii) x2dy

dx+ 3yx =

sin x

x.

(iv)∂R

∂u= 3w2 ∂R

∂w− 5v

∂R

∂v.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 15/25

Page 16: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Order of a differential equationExample⇒Solution

(i)d3u

dx2+

d2u

dx= x + 1 ⇒ ODE of oder 3.

(ii) y ′′′ + 3xy ′′ +6

xy = 1− x3 ⇒ ODE of oder 3.

(iii) x2dy

dx+ 3yx =

sin x

x⇒ ODE of oder 1.

(iv)∂R

∂u= 3w2 ∂R

∂w− 5v

∂R

∂v⇒ PDE of oder 1.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 16/25

Page 17: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Linear and non-linear

Both ordinary and partial differential equations are broadlyclassified as linear and nonlinear.

If the equation is linear, then the variables and theirderivatives must always appear in first power (products arenot allowed).

An ordinary differential equation is linear if it is written in thefollowing general form:

an(x)dny

dxn+ an−1(x)

dn−1y

dxn−1+ ...+ a1(x)y + a0(x) = f (x).

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 17/25

Page 18: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Linear and non-linearExample

State whether following differential equations are linear or nonlinear.

(i)d2y

dx2+ y = 0

(ii) y ′′ + 5y ′ + 3y = 0

(iii) y ′ + y2 = 0

(iv) x ′ + 1/x = 0

(v) x ′′ + cos x = 0

(vi) xx ′ = 1

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 18/25

Page 19: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Linear and non-linearExample⇒Solution

(i)d2y

dx2+ y = 0 ⇐ linear

(ii) y ′′ + 5y ′ + 3y = 0 ⇐ linear

(iii) y ′ + y2 = 0 ⇐ non-linear because y2 is not a first power

(iv) x ′ + 1/x = 0 ⇐ non-linear because 1/x is not a first power

(v) x ′′ + cos x = 0 ⇐ non-linear because cos x is not a first power

(vi) xx ′ = 1 ⇐ non-linear because x ′ is not multiplied by aconstant

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 19/25

Page 20: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Solutions of differential equations

In the case of an ordinary differential equation, a solution is afunction defined on some interval J with the property that theequation reduces to an identity when the function issubstituted into the equation.

In the case of a partial differential equation, a solution is afunction defined on some domain D in two or higherdimensional space with the property that the equation reducesto an identity when the function is substituted into theequation.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 20/25

Page 21: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Solutions of differential equationsExample 1

Show that y = x2 + 2x3 is a solution of the following second-orderordinary differential equation:

x2d2y

dx2− 2x

dy

dx+ 2y = 4x3.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 21/25

Page 22: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Numerical vs. analytic solutionsAnalytic solutions

Suppose you have a mathematical model and you want tounderstand its behavior.

That is, you want to find a solution to the set of equations.

The best is when you can use calculus, trigonometry, andother mathematical techniques to write down the solution.

Now you know absolutely how the model will behave underany circumstances.

This is called the analytic solution, because you usedanalysis to figure it out.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 22/25

Page 23: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Numerical vs. analytic solutionsNumerical solutions

Taking analytical solutions works only for simple models.

For more complex models, the math becomes much toocomplicated.

Then you turn to numerical methods of solving the equations,such as the Runge-Kutta method.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 23/25

Page 24: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Numerical vs. analytic solutionsNumerical solutions⇒Cont...

For a differential equation that describes behavior over time,the numerical method starts with the initial values of thevariables, and then uses the equations to figure out thechanges in these variables over a very brief time period.

Its only an approximation, but it can be a very goodapproximation under certain circumstances.

A computer must be used to perform the thousands ofrepetitive calculations involved.

The result is a long list of numbers, not an equation.

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 24/25

Page 25: New Mathematical Modelling-IIpubudu/mode1.pdf · 2013. 7. 25. · Mathematical modelling is a process of representing real world problems in mathematical terms and concepts. A mathematical

Thank you !

Department of Mathematics University of Ruhuna — Mathematical Modelling-II(AMT221β/IMT221β) 25/25