concepts and algorithms of scientific and visual
play

Concepts and Algorithms of Scientific and Visual Computing Ordinary - PowerPoint PPT Presentation

Concepts and Algorithms of Scientific and Visual Computing Ordinary Di ff erential Equations CS448J, Autumn 2015, Stanford University Dominik L. Michels Cauchy-Kovalevskaya and Picard-Lindel of Theorem Consider the ordinary di ff


  1. Concepts and Algorithms of Scientific and Visual Computing –Ordinary Di ff erential Equations– CS448J, Autumn 2015, Stanford University Dominik L. Michels

  2. Cauchy-Kovalevskaya and Picard-Lindel¨ of Theorem Consider the ordinary di ff erential equation d x ( y ( x )) = f ( x , y ( x )) . According to the famous theorem of Augustin Cauchy and Sofia V. Kovalevskaya, there exists a solution y with the initial value y 0 ( x 0 ) = y 0 and continuity in a well defined interval around x 0 , if f is continuous in the neighborhood G of the point ( x 0 , y 0 ) defined by | x � x 0 | < a and | y � y 0 | < b . Furthermore, if f is Lipschitz continuous, i.e. | f ( x , y 1 ) � f ( x , y 2 ) |  N | y 1 � y 2 | for all ( x , y 1 ) and ( x , y 2 ) in G and a constant N , then the solution y is unique according to the theorem named after ´ Emile Picard and Ernst L. Lindel¨ of.

  3. Numerical Integration Although, there is a solution to an initial value (Cauchy) problem of ordinary kind according to the Cauchy-Kovalevskaya theorem, it is often not possible to formulate the solution as a composition of analytical expressions. In such cases, we have to determine particular solutions by applying numerical methods. Without a loss of generalization, we will focus on the formulation of numerical schemes for ordinary Cauchy problems of first order given by y 0 := d x y = f ( x , y ) , y ( x 0 ) = y 0 . In particular, for the function y , we are searching for appropriate numerical approximations of y i := y ( x i ) at the sampling points x i .

  4. (Explicit) Euler Method The integration of the Cauchy problem leads to Z x y ( x ) = y 0 + f ( x , y ( x ))d x . x 0 For x 1 := x 0 + ∆ x we obtain Z x 0 + ∆ x y ( x 1 ) = y 0 + f ( x , y ( x ))d x ⇡ y 0 + ∆ x f ( x 0 , y 0 ) =: y 1 . x 0 For equidistant sampling points x i := x 0 + i ∆ x , this can be generalized to the so-called (explicit) Euler method y i +1 = y i + ∆ x f ( x i , y i ) .

  5. (Explicit) Euler Method According to Taylor’s theorem, y ( x 1 ) = y ( x 0 + ∆ x ) = y 0 + f ( x 0 , y 0 ) ∆ x + y 00 ( x 0 ) ∆ x 2 + ... 2 holds, so that the explicit Euler method is of first order corresponding to an error | y ( x 1 ) � y 1 | 2 O ( ∆ x 2 ) of second order.

  6. Classical Runge-Kutta Method (RK4, 4th-order) function RK4 begin for i 0 to N � 1 do x i i ∆ x y 0 i F ( x i , y i ) y A y i + ∆ x 2 y 0 i A F ( x i + ∆ x y 0 2 , y A ) y B y i + ∆ x 2 y 0 A B F ( x i + ∆ x y 0 2 , y B ) y C y i + ∆ xy 0 B y 0 C F ( x i + ∆ x , y C ) ⇣ ⇣ ⌘ ⌘ y i +1 y i + ∆ x y 0 y 0 A + y 0 + y 0 i + 2 6 B C end return ( y 1 , y 2 ,..., y N ) end

  7. Linear Multistep Methods The (explicit) Euler and the classical Runge-Kutta method are so-called (linear) one-step methods since the computation of y i +1 only requires y i . More general, linear multistep methods are given by y i + k + α k � 1 y i + k � 1 + α k � 2 y i + k � 2 + ··· + α 1 y i +1 + α 0 y i = ∆ t ( β k f i + k + β k � 1 f i + k � 1 + ··· + β 1 f i +1 + β 0 f i ) with appropriate constants α j and β j . For α k , 0 and β k , 0 such a scheme is called a linear k -step method. It is called explicit, if β k = 0 holds, so that only the already known approximation values y i ,..., y i + k � 1 occur on the right side. For β k , 0, the method is called implicit because the new approximation value y i + k occurs on both sides.

  8. Explicit vs. Implicit in Practice Figure : Numerical phase space of a pendulum with one degree of freedom integrated with an explicit, an implicit, and a structure-preserving (covered in the next lecture) numerical method.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend