An Introduction to Differential Algebra

Similar documents
From Particle Accelerators to Celestial Dynamics: An Introduction to Differential Algebra

Two-Point Boundary Value Problem and Optimal Feedback Control based on Differential Algebra

Accurate numerical orbit propagation using Polynomial Algebra Computational Engine PACE. ISSFD 2015 congress, Germany. Dated: September 14, 2015

Chapter 1: Introduction and mathematical preliminaries

Relevant Applications of Differential Algebra in Astrodynamics

High-Order Representation of Poincaré Maps

Verified High-Order Optimal Control in Space Flight Dynamics

Rigorous Global Optimization of Impulsive Space Trajectories

Chapter 1 Error Analysis

Midterm Review. Igor Yanovsky (Math 151A TA)

Introduction to Numerical Analysis

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162

Interval Methods and Taylor Model Methods for ODEs

Chapter 1 Mathematical Preliminaries and Error Analysis

Global Optimization of Impulsive Interplanetary Transfers

AIMS Exercise Set # 1

INTRODUCTION TO COMPUTATIONAL MATHEMATICS

ESO 208A: Computational Methods in Engineering. Saumyen Guha

Numerical Methods in Physics and Astrophysics

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

1. Introduction to commutative rings and fields

Secondary Math 3 Honors - Polynomial and Polynomial Functions Test Review

Introduction and mathematical preliminaries

Chapter 1 Mathematical Preliminaries and Error Analysis

Fourth Order RK-Method

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

ECEN 5682 Theory and Practice of Error Control Codes

Computer Arithmetic. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Computer Arithmetic

Introduction CSE 541

Notes for Chapter 1 of. Scientific Computing with Case Studies

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

ACM 106a: Lecture 1 Agenda

Application of Taylor Models to the Worst-Case Analysis of Stripline Interconnects

Nonlinear Dynamics - Methods and Tools. and a Contemporary ( ) framework. to treat Linear and Nonlinear Beam Dynamics PART 3

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

Jim Lambers MAT 610 Summer Session Lecture 2 Notes

Arithmetic and Error. How does error arise? How does error arise? Notes for Part 1 of CMSC 460

Park Forest Math Team. Meet #3. Algebra. Self-study Packet

Chapter 1. Numerical Errors. Module No. 1. Errors in Numerical Computations

Floating-point Computation

Commutative Rings and Fields

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

Notes on floating point number, numerical computations and pitfalls

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

Verified Global Optimization with Taylor Model based Range Bounders

Mathematics for Engineers. Numerical mathematics

1.2 Finite Precision Arithmetic

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Math 3 Variable Manipulation Part 3 Polynomials A

The trick is to multiply the numerator and denominator of the big fraction by the least common denominator of every little fraction.

NORTH MAHARASHTRA UNIVERSITY JALGAON.

Floating Point Number Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

1. Introduction to commutative rings and fields

ON TAYLOR MODEL BASED INTEGRATION OF ODES

Math 265 (Butler) Practice Midterm III B (Solutions)

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Functions Level 1 revision. MA2730: topics for Lecture 1

ALGEBRA+NUMBER THEORY +COMBINATORICS

Number Systems III MA1S1. Tristan McLoughlin. December 4, 2013

NUMERICAL SOLUTION OF ODE IVPs. Overview

function independent dependent domain range graph of the function The Vertical Line Test

Introduction to Gröbner Bases for Geometric Modeling. Geometric & Solid Modeling 1989 Christoph M. Hoffmann

Ch 7 Summary - POLYNOMIAL FUNCTIONS

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

REVIEW OF DIFFERENTIAL CALCULUS

Numerical Derivatives in Scilab

ABSTRACT VECTOR SPACES AND THE CONCEPT OF ISOMORPHISM. Executive summary

Trajectory Optimisation under Uncertainties

5. Hand in the entire exam booklet and your computer score sheet.

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y:

2.20 Fall 2018 Math Review

Propagation of Uncertainties in Nonlinear Dynamic Models

What Every Programmer Should Know About Floating-Point Arithmetic DRAFT. Last updated: November 3, Abstract

Math From Scratch Lesson 29: Decimal Representation

Apophis Encounter 2029: Differential Algebra and Taylor Model Approaches. 1 st IAA Planetary Defense Conference: Protecting Earth from Asteroids

Introduction to Finite Di erence Methods

Chapter 7: Exponents

Math Practice Exam 3 - solutions

THEODORE VORONOV DIFFERENTIABLE MANIFOLDS. Fall Last updated: November 26, (Under construction.)

Deterministic Global Optimization for Dynamic Systems Using Interval Analysis

EXAMPLE OF ONE-STEP METHOD

SCORE BOOSTER JAMB PREPARATION SERIES II

Homework and Computer Problems for Math*2130 (W17).

ON REPRESENTATIONS OF COEFFICIENTS IN IMPLICIT INTERVAL METHODS OF RUNGE-KUTTA TYPE

Chapter 4 Number Representations

Mathematical preliminaries and error analysis

Math 300: Final Exam Practice Solutions

B553 Lecture 1: Calculus Review

PARTIAL DIFFERENTIAL EQUATIONS

Rigorous Polynomial Approximations and Applications

Errors. Intensive Computation. Annalisa Massini 2017/2018

Exact and Approximate Numbers:

Chapter 1: Preliminaries and Error Analysis

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2018

Parent Guide. Number System. Diocese of Cleveland

Math 155 Prerequisite Review Handout

Taylor Model Range Bounding Schemes

Engg. Math. I. Unit-I. Differential Calculus

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

1 Backward and Forward Error

Definition 5.1. A vector field v on a manifold M is map M T M such that for all x M, v(x) T x M.

Transcription:

An Introduction to Differential Algebra Alexander Wittig1, P. Di Lizia, R. Armellin, et al. 1 ESA Advanced Concepts Team (TEC-SF) SRL, Milan Dinamica

Outline 1 Overview Five Views of Differential Algebra 1 Algebra of Multivariate Polynomials Computer Representation of Functional Analysis 3 Automatic Differentiation 4 Set Theory and Manifold Representation 5 Non-Archimedean Analysis 1/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Overview Differential Algebra A numerical technique based on algebraic manipulation of polynomials Its computer implementation Algorithms using this numerical technique with applications in physics, math and engineering. Various aspects of what we call Differential Algebra are known under other names: Truncated Polynomial Series Algebra (TPSA) Automatic forward differentiation Jet Transport /8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

History of Differential Algebra (Incomplete) History of Differential Algebra and similar Techniques Introduced in Beam Physics (Berz, 1987) Computation of transfer maps in particle optics Extended to Verified Numerics (Berz and Makino, 1996) Rigorous numerical treatment including truncation and round-off errors for computer assisted proofs Taylor Integrator (Jorba et al., 005) Numerical integration scheme based on arbitrary order expansions Applications to Celestial Mechanics (Di Lizia, Armellin, 007) Uncertainty propagation, Two-Point Boundary Value Problem, Optimal Control, Invariant Manifolds... Jet Transport (Gomez, Masdemont, et al., 009) Uncertainty Propagation, Invariant Manifolds, Dynamical Structure 3/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Differential Algebra Differential Algebra A numerical technique to automatically compute high order Taylor expansions of functions f ( x 0 + δx) f ( x 0 ) + f ( x 0 ) δx + + 1 n! f (n) ( x 0 ) δx n and algorithms to manipulate these expansions. Can be conceptualized in various ways from different view points: Multivariate Polynomials Functional Analysis Set Theory Automatic Differentiation Non-Archimedean Analysis (Symbolic Computation) 4/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials Multivariate Polynomials Non-Archimedean Analysis Automatic Differentiation Differential Algebra Set Theory Functional Analysis Symbolic Computation 5/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Motivation Motivation: What does an expression like this mean? r = x y + 1 1 + x Instructions of basic operations to be performed in a certain order: 1 r 1 x y r 1 r 1 + 1 3 r x x 4 r 1 + r 5 r r 6 r r 1 /r 6/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Motivation x, y can be anything for which basic operations used (e.g. +,,, /,,... ) are defined in useful way: Abstract mathematical entities: real number (R) complex number (C) matrices (R n n ) functions (e.g. C r ) Computer representations of mathematical entities floating point numbers DA objects Key idea of DA Replace all algebraic operations between numbers by ones that act on (a suitably chosen subset of) polynomials instead. 7/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Definition 1 Ring of polynomials p(x) = i=0 a ix i Natural Addition, Subtraction, Multiplication of polynomials Problems: order of polynomials not limited, grows under multiplication infinite dimensional not well suited for computations 8/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Definition 1 Ring of polynomials p(x) = i=0 a ix i Natural Addition, Subtraction, Multiplication of polynomials Problems: order of polynomials not limited, grows under multiplication infinite dimensional not well suited for computations Algebra of truncated polynomials p(x) = n i=0 a ix i Truncate all results to a fixed order n Finite dimensional space, hence computable Space n D v of polynomials of order up to n in v variables has (n+v)! n!v! dimensions Not a ring or field: e.g. many nil-potent elements (zero divisors): e.g. x, x x,... 8/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Intrinsics Can also introduce division and intrinsic functions on n D v. Division: 1 P nd v such that P 1 P = 1 Does not always exist: P(x) = x has no multiplicative inverse Exists for all polynomials with non-zero constant part Does not exist in ring of polynomials! Other intrinsic functions (e.g., sin, cos, exp,...) can be defined appropriately on n D v often with similar restrictions as division, or stricter (e.g. ) 9/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Intrinsics Can also introduce division and intrinsic functions on n D v. Division: 1 P nd v such that P 1 P = 1 Does not always exist: P(x) = x has no multiplicative inverse Exists for all polynomials with non-zero constant part Does not exist in ring of polynomials! Other intrinsic functions (e.g., sin, cos, exp,...) Result can be defined appropriately on n D v often with similar restrictions as division, or stricter (e.g. ) Now we can evaluate expressions such as r = x y + 1 1 + x in DA arithmetic using polynomials. 9/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Multivariate Polynomials: Differential Structure Last thing: Add derivation and inverse derivation 1 operators to obtain differential algebra. x : Simple polynomial derivation w.r.t. independent variable x x 1 : Simple polynomial integration w.r.t. independent variable x Now we can evaluate even complicated operators directly in DA: ˆ ˆ ( ) d g(x, y, z) = dy exp sin(x) cos(y) + 1 dx dz 1 + x + y + z Result: Differential Algebra Together with the right definitions for all these operations, we extended the basic polynomial algebra to the Differential Algebra (DA). 10/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Differential Algebra Multivariate Polynomials Non-Archimedean Analysis Automatic Differentiation Differential Algebra Set Theory Functional Analysis Symbolic Computation 11/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Floating Point Arithmetic Taking a step back R is infinite. How does arithmetic on R get into the computer? Answer: floating point numbers (F) x = ±m e Mantissa m and exponent e are integers in some range Approximate representation of real numbers R mantissa represents the most significant digits exponent represents the magnitude All algebraic operations on F defined to approximate the corresponding real operation on R 1/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Floating Point Arithmetic: Example In R and hypothetical F with 4 significant decimal digits, evaluate List of operations: start with x = perform +1 operation perform 1/ operation + 1 1 x + 1 for x =. 3 1 / 1 3 = = 3 + 1 1 / 0.3333 13/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Functional Analysis on Computers Idea: Use Taylor Expansions around 0 as approximate computer representations of functions in C r (0) function space. Each function f C r (0) is represented by a Taylor Expansion T f of order r. T f approximates f just like floating point numbers F approximate real numbers R 14/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Functional Analysis on Computers Idea: Use Taylor Expansions around 0 as approximate computer representations of functions in C r (0) function space. Each function f C r (0) is represented by a Taylor Expansion T f of order r. T f approximates f just like floating point numbers F approximate real numbers R Example for n = 3 f (x) = 1 + x + x + x 3 6 g(x) = exp(x) h(x) = exp(x) + x 3 sin(x) All three functions f, g, and h are represented by f (x). 14/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Functional Analysis on Computers Just as for floating point numbers, DA operations are defined to approximate operations in C r : Binary operators and DA equivalent (e.g. +,,, /) T f (x) T g (x) = T f g (x) Intrinsic functions g(x) and DA equivalent G(x) (e.g. sin, cos) G(T f (x)) = T g(f (x)). where T f (x) is Taylor expansion of f around 0 up to fixed order n. 15/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Functional Analysis on Computers Just as for floating point numbers, DA operations are defined to approximate operations in C r : Binary operators and DA equivalent (e.g. +,,, /) T f (x) T g (x) = T f g (x) Intrinsic functions g(x) and DA equivalent G(x) (e.g. sin, cos) G(T f (x)) = T g(f (x)). where T f (x) is Taylor expansion of f around 0 up to fixed order n. How is it done? Don t worry about the how this is implemented, just accept it is implemented correctly for you by someone (=us)! You also accepted that there exist algorithms to compute 1/3 0.3333. 15/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Functional Analysis: Example In C 3 (0) and 3rd order DA, evaluate List of operations: start with the identity x = x perform +1 operation perform 1/ operation C r (0) x + 1 1 x + 1. x+1 1 / 1 x+1 = = DA x + 1 x+1 1 / 1-x+x -x 3 16/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Automatic Differentiation Multivariate Polynomials Non-Archimedean Analysis Automatic Differentiation Differential Algebra Set Theory Functional Analysis Symbolic Computation 17/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Automatic Differentiation Let x 0 R m, f : R m R and compute the derivatives d k f d x k for any given order k at the point x 0. Automatic differentiation: Concerned with accurate computation of arbitrary derivatives of a function f at given point x 0 Algorithms that are much faster and more accurate than e.g. divided differences DA is a specific instance of a forward differentiation method x0 18/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

DA as Automatic Differentiation Given x 0 R m, f : R m R, compute P( x) = f ( x 0 + x) to some order in DA arithmetic. Then P( x) is Taylor Expansion of f around x 0 by the way we defined each operation. Contains exact derivatives d k f d x k x0 in coefficients (up to floating point error, typically 10 15 ). Coefficients can be extracted by repeated application of differentiation operator i followed by extraction of constant part. 19/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Sets and Manifolds Multivariate Polynomials Non-Archimedean Analysis Automatic Differentiation Differential Algebra Set Theory Functional Analysis Symbolic Computation 0/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Sets and Manifolds DA objects can be considered as representation of very general sets: Consider DA as a (structured) set by looking at image of domain [ 1, 1] n under a polynomial map Can approximate very complicated sets very well Much better approximation of set valued functions than Interval Arithmetic 1,1 P(1,1) P -1,-1 P( 1, 1) 1/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Sets and Manifolds Set theoretical view of DA allows: easy representation of and computation on complicated sets fast propagation of sets of points (by one single function evaluation) accurate bounding of resulting sets DA representation of sets has structure Manifolds Instead of one single map, consider many maps each covering a small part of the manifold ( Domain Splitting) Natural computer representation of the mathematical concept of a manifold by representing the charts of the atlas as DA objects Calculations on a manifold straight forward /8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Taylor Models Extension of DA techniques to automatically compute rigorous bounds of truncation errors DA: f ( x 0 + δx) f ( x 0 ) + f ( x 0 ) δx + + 1 n! f (n) ( x 0 ) δx n TM: f ( x 0 + δx) f ( x 0 ) + f ( x 0 ) δx + + 1 n! f (n) ( x 0 ) δx n +[ ε, ε] Combined with polynomial bounders provides highly accurate, rigorous bounds for range of f over given domains. Applications in verified numerics: Global Optimization Global Fixed Point Finder Verified Integration Manifold Enclosures = Computer Assisted Proofs 3/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

ODE flow expansion Several methods to compute flow expansion ϕ( x 0, t): Arbitrary order time expansion by DA Picard iteration DA evaluation of classical numerical schemes Runge Kutta (e.g. RK45, DP78) Adams-Bashforth Never: variational equations! Result of each method: P(δ x, δt) = ϕ( x 0 + δ x, t + δt) First order of P corresponds to state transition matrix Extremely useful to propagate entire sets of initial conditions 4/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Integration scheme: Runge-Kutta (variab ODE flow expansion DA-based ODE flow expansion order: 6 Uncertainty box on initial position: 0.00 Propagation of set of initial conditions in Kepler dynamics (set view): y [AU] 1.5 1 0.5 0 0.5 (a) t i = 99.8 day t 0 = 0 Com Intel Any s can b order 1 1.5 3 1 0 1 x [AU] 5/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF) Fa

ODE flow expansion Advanced set propagation techniques: Domain Splitting: nonlinear dynamics cause sets to grow. Automatically decompose polynomial into smaller polynomials covering subsets to ensure convergence. Taylor integrator: arbitrary order integrator using the Taylor flow expansion. Instead of numerical scheme, use Taylor flow expansion and compute and evaluate at each time step. Verified integration: Taylor integrator extended with verified Taylor Models. Computes verified enclosure of flow including truncation and round-off errors in each step. Yields verified enclosure of set (computer assisted proof). 6/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Non-Archimedean Analysis Multivariate Polynomials Non-Archimedean Analysis Automatic Differentiation Differential Algebra Set Theory Functional Analysis Symbolic Computation 7/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

Non-Archimedean Analysis Axiom of Archimedes ε > 0 n N s.t. 1/n < ε every positive ε can be multiplied by some n such that ε n is larger than 1 Non-Archimedean Analysis: Drop axiom to allow infinitesimals The Levi-Civita Field Rigorous mathematical treatment of algebra with infinitesimals Provides rigorous theoretical underpinning for DA Useful to develop fast implementations of the computation of basic DA algorithms contracting operators: number of correct orders increases by 1 super-convergent operators: number of correct orders doubles 8/8 DA Introduction Alexander Wittig, Advanced Concepts Team (TEC-SF)

An Introduction to Differential Algebra Alexander Wittig1, P. Di Lizia, R. Armellin, et al. 1 ESA Advanced Concepts Team (TEC-SF) SRL, Milan Dinamica