0% found this document useful (0 votes)
24 views22 pages

Basics On ODEs

The document discusses simulation methods for ordinary and partial differential equations, including defining ODEs and PDEs, examples of applying them, initial value problems, boundary value problems, reformulating higher order ODEs as systems of first order ODEs, and solving systems of first order ODEs with constant coefficients.

Uploaded by

Aperez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views22 pages

Basics On ODEs

The document discusses simulation methods for ordinary and partial differential equations, including defining ODEs and PDEs, examples of applying them, initial value problems, boundary value problems, reformulating higher order ODEs as systems of first order ODEs, and solving systems of first order ODEs with constant coefficients.

Uploaded by

Aperez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Simulation Methods

Definition: ODE/PDE

Examples:

Spring with moving mounting

Cooling of a beer bottle

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Definition: ODE/PDE

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Definition: ODE/PDE

Examples:

ordinary differential equation (ODE) of second order

ordinary differential equation (ODE) of third order

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Definition: ODE/PDE

Examples:

partial differential equation (ODE) of second order (space derivative!)

partial differential equation (ODE) of first order

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Outlook on PDEs…

We will discuss/repeat later…

first partial derivatives

second partial derivative

(temperature) gradient

divergence (related to heat flux)

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Initial value problems

We have to define the starting values…

Example: growth of bacteria population N(t)

How can we determine the constant?

(initial value)

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Initial value problems

Illustration…

We compare the situation with finding the antiderivative:

Here C is the constant of integration.

Meaning:

We know the shape of F, but the position is unknown.

Variing C moves the curve up and down.

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Direction Field

We consider a first order ODE…

Geometrically this equation prescribes


the slope of y(t)…

By defining a (t,y)-grid, we obtain


the direction field…

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Definition: Initial Value Problem

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Definition: Initial Value Problem

Example:

Initial values:

In order to determine the constants, we have to solve the following system:

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Outlook: Boundary Value Problems

Example:

Loaded horizontal beam

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Reformulation as first order system

Observation:

We can transform any ODE into a system of first order ODES.

Example:

resolve with respect to the highest derivative…

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Reformulation as first order system

Observation:

We can transform any ODE into a system of first order ODES.

Example:

2nd order, thus introduce two new functions as follows


differentiate and replace all old functions

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Reformulation as first order system

Observation:

We can transform any ODE into a system of first order ODES.

Example: We can rewrite this in matrix-vector form…

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Reformulation as first order system

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

General form…

Introducing the following vectors yields…

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

Remarks…

… if all right hand sides 𝑏𝑖 (𝑡) are zero, we have a homogeneous system

… if there is a vector 𝑏 𝑡 ≠ 0 the vector is called the inhomogeneity

… in order to obtain a unique solution, we need n initial values:

… solution of the initial value problem:

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

Solution form for inhomogeneous systems od ODES

If 𝑏 is nonzero, the system is called inhomogeneous.

Then the solution has the following general form:

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

Solving systems with constant coefficients…

We now restrict our self to homogeneous systems with


constant coefficients

There exists a solution algorithm for this type of problems…

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

Solving systems with constant coefficients…

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

Solving systems with constant coefficients…

Example:

Eigenvalues:

Eigenvectors:

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE
Simulation Methods

Systems of first order ODEs

Solving systems with constant coefficients…

Example:

Solution:

© FH AACHEN UNIVERSITY OF APPLIED SCIENCES | FACHBEREICH Energietechnik | Prof. Dr. M. Pieper | WWW.FH-AACHEN.DE

You might also like