Green s Functions Computation

Similar documents
Green s Functions with Reflection

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS

OECD QSAR Toolbox v.4.1. Tutorial illustrating new options for grouping with metabolism

Chapter 8 Linear Algebraic Equations

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012

Introduction. How to use this book. Linear algebra. Mathematica. Mathematica cells

рн PRO Controller The device is used to control and regulate ph level in hydroponic systems and water preparing units automatically USER MANUAL

Examples of linear systems and explanation of the term linear. is also a solution to this equation.

SuperCELL Data Programmer and ACTiSys IR Programmer User s Guide

Asymptotic Methods of ODEs: Exploring Singularities of the Second Kind

Dose-Response Analysis Report

Numerical Methods for Ordinary Differential Equations

Ten Hard Integrals. Nasser M. Abbasi. page compiled on November 8, 2015 at 8:25pm

MULTIFUNCTION COMPUTER METER CX-742 USERS MANUAL

hp calculators HP 33S Using the formula solver part 2 Overview of the formula solver Practice Example: A formula with several variables

Question Details sp15 u sub intro 1(MEV) [ ]

Dear Future CALCULUS Student,

C:\Dokumente und Einstellungen \All Users\Anwendungsdaten \Mathematica. C:\Dokumente und Einstellungen \albert.retey\anwendungsdaten \Mathematica

Spreadsheet Solution of Systems of Nonlinear Differential Equations

Math WW09 Solutions November 24, 2008

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION

World s First Universal Quantum Computation Simulator. Quantum Computer Simulator. For Windows/Macintosh. User Guide

Math 2Z03 - Tutorial # 6. Oct. 26th, 27th, 28th, 2015

Lecture 44. Better and successive approximations x2, x3,, xn to the root are obtained from

Chapter 2. Review of Mathematics. 2.1 Exponents

Project IV Fourier Series

Dear Future CALCULUS Student,

O P E R A T I N G M A N U A L

Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section.

4/5/2012: Second midterm practice A

Using the Budget Features in Quicken 2008

ISIS/Draw "Quick Start"

Lecture 2. Classification of Differential Equations and Method of Integrating Factors

FIT100 Spring 01. Project 2. Astrological Toys

Lab 1 Uniform Motion - Graphing and Analyzing Motion

ON SITE SYSTEMS Chemical Safety Assistant

4/8/2014: Second midterm practice C

A Brief Introduction To. GRTensor. On MAPLE Platform. A write-up for the presentation delivered on the same topic as a part of the course PHYS 601

DonnishJournals

Assignment 1 Physics/ECE 176

MEAM 520. More Velocity Kinematics

Algebra I Calculator Activities

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012

OECD QSAR Toolbox v.4.1. Step-by-step example for predicting skin sensitization accounting for abiotic activation of chemicals

Physics 212E Spring 2004 Classical and Modern Physics. Computer Exercise #2

CityGML XFM Application Template Documentation. Bentley Map V8i (SELECTseries 2)

Infinity Unit 2: Chaos! Dynamical Systems

7.1 Indefinite Integrals Calculus

Computational Methods for Engineers Programming in Engineering Problem Solving

RAM. Inventory/Disposals

In this work is used the version of the Mathematica software for Windows environment. The examples which are treated are "generic" and should ex

DISPLAYING THE POISSON REGRESSION ANALYSIS

Calculus I Maple T.A. Course Module Gord Clement and Jack Weiner, University of Guelph

Computational Chemistry Lab Module: Conformational Analysis of Alkanes

Lab 1a Wind Tunnel Testing Principles & Drag Coefficients of Golf balls

Sample Alignment Part

Mathematica Project 3

Matrices A matrix is a rectangular array of numbers. For example, the following rectangular arrays of numbers are matrices: 2 1 2

Ratio of Polynomials Search One Variable

Concepts of Approximate Error: Approximate Error, Absolute Approximate Error, Relative Approximate Error, and Absolute Relative Approximate Error

SYMBOLIC AND NUMERICAL COMPUTING FOR CHEMICAL KINETIC REACTION SCHEMES

Learning Scientific Notebook

WILEY. Differential Equations with MATLAB (Third Edition) Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg

Mathematica for Rogawski's Calculus

5/14/2011: Final exam

Center of Mass. Evaluation copy

MATH 1231 MATHEMATICS 1B CALCULUS. Section 5: - Power Series and Taylor Series.

Spatial Data Analysis in Archaeology Anthropology 589b. Kriging Artifact Density Surfaces in ArcGIS

0.1 Syntax for Taylor Polynomials

MAT300/500 Programming Project Spring 2019

CHEOPS Feasibility Checker Guidelines

Esterification in a PFR with Aspen Plus V8.0

Review of Section 1.1. Mathematical Models. Review of Section 1.1. Review of Section 1.1. Functions. Domain and range. Piecewise functions

First step: Construction of Extreme Rainfall timeseries

Designing Multilevel Models Using SPSS 11.5 Mixed Model. John Painter, Ph.D.

Linear Algebra and TI 89

Titrator 3.0 Tutorial: Calcite precipitation

Using the Fourier Series Library (fourierlib.tns)

AP CALCULUS SUMMER WORKSHEET

CHEMDRAW ULTRA ITEC107 - Introduction to Computing for Pharmacy. ITEC107 - Introduction to Computing for Pharmacy 1

Automatic differentiation with Perl

Biostatistics Student Seminar An Introduction To L A T E X

COMPOUND REGISTRATION

Sections 6.1 and 6.2: Systems of Linear Equations

16.51 RATAPRX: Rational Approximations Package for REDUCE

Location Intelligence Infrastructure Asset Management. Confirm. Confirm Mapping Link to ArcMap Version v18.00b.am

QHD- Heisenberg Equations of Motion and the Cross Terms Approximation

259 Lecture 27: Numerical Computation

Manual for some LCLS Matlab GUIs. Henrik Loos SLAC, 2575 Sand Hill Road, Menlo Park, CA 94025

Using Simulation and Symbolic Computing in Linear Programming

OECD QSAR Toolbox v.4.0. Tutorial on how to predict Skin sensitization potential taking into account alert performance

Introduction to Computer Tools and Uncertainties

Watershed Modeling Orange County Hydrology Using GIS Data

Innovative Solutions from the Process Control Professionals

Kinetics of Crystal Violet Bleaching

Unit S Student Success Sheet (SSS) Trigonometric Identities Part 3 (section 5.5)

Investigating Limits in MATLAB

HOW TO USE MIKANA. 1. Decompress the zip file MATLAB.zip. This will create the directory MIKANA.

1. Open polymath: 2. Go to Help, Contents F1 or Press F1

The Determination of an Equilibrium Constant

Transcription:

Green s Functions Computation User s manual Alberto Cabada Fernández (USC) José Ángel Cid Araújo (UVIGO) Beatriz Máquez Villamarín (USC) Universidade de Santiago de Compostela Universidade de Vigo 1

1. Language Code written in Mathematica 8.0.1.0 Version: november 2011. 2. Environment Notebook Mathematica. 3. Name of the file GFC.nb 4. Abstract This Mathematica package provides a tool valid for calculating the explicit expression of the Green s function related to a n th order linear ordinary differential equation, with constant coefficients, coupled with two point linear boundary conditions. 2

5. Flowchart Data NO Correct? YES Error message Periodic Conditions? NO YES NO Exact solution? Exact solution? NO Try with approximate coefficients YES YES Try with approximate coefficients General algorithm Periodic algorithm Overtime? NO YES Green s function? STOP NO YES Error message Parameters? NO YES Show expression and graphic Show expression 3

6. User s manual The program Green s Functions Computation calculates the Green s function,, from the boundary value problem given by a linear n th - order ODE with constant coefficients together with the boundary conditions [ ] Now, we present the definition and the main property of the Green s function. For a more detailed study, the reader is referred to the bibliography. Definition. A Green s function for problem (1)-(2) is any function satisfies the following axioms: (G1) is defined on the square [ ] [ ] that (G2) For the partial derivatives exist and they are continuous on [ ] [ ]. (G3) and exist and are continuous on the triangles and. (G4) For each there exist the lateral limits and, and moreover (G5) For each, the function is a solution of the differential equation (1), with on both intervals [ and ] (G6) For each, the function satisfies the boundary conditions (2). The next result shows the importance of the Green s function in solving boundary value problems. Theorem. Let us suppose that problem (1)-(2) with has only the trivial solution. Then there exists a unique Green s function and for each continuous function the unique solution of problem (1)-(2) is given by the expression 4

6.1. The Mathematica notebook The Green s Functions Computation is a Mathematica notebook with a dynamic environment. In order to run the program Wolfram Mathematica is needed on the user s computer. This notebook is intended for version 8.0.1.0 but it also works on less recent versions. To opening the notebook, the Enabled dynamic button must be pushed. After that it will appear the following execution corresponding to a simple second order problem. 5

The file is protected against writing, so if the user wants to save the file, he/she should use the option Save As from the menu File. The program has two different areas: input and output, both separated by the Enter button. The data must be entered in the input area by using the Mathematica notation. After that, it must be pushed Enter to start the execution and the result will be shown on the output area, which is divided again in two areas: analytical output and graphical output. Notice that while the program is running the Enter button will appear pressed. The program is inside a Mathematica cell, which is framed by a vertical line on the right of the screen. When that line is bolded, the program is running. Until a new execution is completed, the output will be the corresponding to the previous one. 6.2. The data To start an execution the following boxes must be completed: Order, Coefficients, a, b, Periodic Conditions and Boundary conditions. Notice that all the data have to be entered in Mathematica syntax. Some examples are showing in the following table: 6

Mathematica syntax Examples Power ^ m^2 Multiply * or empty space c*x, c x Divide / 1/2, -3/7 Constants Pi, E (for other constants 2 Pi, E^(-1) see the Mathematica help) Functions Sin[x], Cos[x], Tan[x], 2 Sin[3 x], Sqrt[2] Log[x], Sqrt[x] (for other functions see the Mathematica help ) Lists, vectors {,, } {1,3,2}, {u[0],u [Pi]} Derivative u [0], u [2], u [2*Pi] Grouping terms ( ) m^(2*x) The first box, Order, is referred to the order of the differential equation, so it must be a natural number. Moreover the order will set both the number of coefficients as well as the number of boundary conditions. 7

The second step consists on introducing the coefficients vector of the differential equation, {c 1,,c n }, with the same length as the order of the equation. The coefficients of the differential equation must be real constants. If those coefficients are exact (for instance: integer numbers (-1,0,5, ), fractions with integer numbers (1/3,-2/45, ) or exact real numbers (Pi, Sqrt[2], ) the computations made by Mathematica will be exact as the final result. 8

However if any of the introduced constants is an approximate number (for instance: 1.0, 3.14159, Sqrt[2.0], -0.5, ), the final result will be also approximate. 9

Sometimes, when using exact numbers, Mathematica is not able to solve the corresponding problem. The program detects this fact and, in these situations, it considers the approximate values of the introduced coefficients. For instance, if we want to obtain the Green s function of the problem u + π u +u= σ, t on [0,1], u(0)=u(1)=u (0)=0, even entering the coefficients vector {0, π,1}, the obtained solution will be the following: Entering parameters is allowed in the Coefficients box, but in this case the output will be only analytical and not graphical. 10

In the third and fourth boxes the user must enter the endpoints of the interval. These values could be also parameters (but again in this case the output would be only analytical). 11

Last box is for entering the boundary conditions. They must be a vector of the same length as the order, n, of the differential equation. Moreover the boundary conditions must depend linearly on u and its derivatives up to the n- 1 order and they must be evaluated at the endpoints of the interval. The vector with the boundary conditions will be matched to zero by the program. For instance, to use the boundary conditions u(0)=u(1), u (0)= u (1), the vector {u[0] u[1],u [0]+u [1]} must be entered. The option Periodic conditions is unmarked by default. By marking it, not only the considered boundary conditions are the periodic ones, but also a specific algorithm is used by the program to find out the Green s function. 12

The problem with periodic boundary conditions can also be solved by entering them on the Boundary conditions box. In this case, the simplified expression of the solution can be obtained on a different way. 13

6.3. Errors If the number of the coefficients or the boundary conditions is not the same as the order of the equation the program will warn us. 14

We notice again that the boundary conditions must be evaluated at the endpoints of the interval a and b. For instance, since the considered interval is [0,5], the boundary conditions {u[0],u [1]} are not valid for the following second order problem: The program will also warns about other errors, for instance, if any of the boundary conditions is not linear or if it depends on a derivative bigger than or equal to the order of the equation. Notice for example that condition [ ] is not allowed (although it is equivalent to [ ] that it would be valid): 15

The program also check if the n boundary conditions are linearly independent: The resonant problems, i. e., when the Green s function doesn t exist, are also detected by the program: 16

If Mathematica, after five minutes, is not able to calculate the Green s function for the considered problem, then an error message is shown, alerting to the user about overtime. Have been detected some examples where Mathematica were not able to show the expression obtained for the Green s function on the notebook. In this case the program seems like blocked. The evaluation can be aborted by using Evaluation > Interrupt Evaluation on the Mathematica menu. After this, to restart the initial settings the symbol + on the upperright corner of the program must be pressed and Initial Settings selected. 17

6.4. Global variables after the execution The main goal of this program is to obtain the expression of the Green s function in the most standard way. Is for this that some variables of the program are global, so, after an execution, the user can work directly with them on the Mathematica notebook. Namely, the Green s function, G[t,s], is a global variable, in consequence if, after an execution, the user writes G[t,s] on a new input cell of Mathematica, the program gives its expression. In this way it is possible to manipulate or plot it at the convenience of the user. Also G1[t,s] and G2[t,s], the Green s function restricted to s<t and s>t, respectively, are global variables. 18

Bibliography [Ca1] Cabada, A.: The method of lower and upper solutions for second, third, fourth, and higher order boundary value problems, J. Math. Anal. Appl. 185, 302--320 (1994). [Ca2] Cabada, A.: The method of lower and upper solutions for third -- order periodic boundary value problems, J. Math. Anal. Appl. 195, 568-- 589 (1995). [CaCiMa1] Cabada A., Cid, J. A., Máquez-Villamarín, B.: Computation of Green's functions for Boundary Value Problems with Mathematica, Appl. Math. Comp. (To appear) doi: 10.1016/j.amc.2012.08.035. [CaCiMa2] Cabada A., Cid, J. A., Máquez-Villamarín, B.: Green's Function, available at http://demonstrations.wolfram.com/greensfunction/, Wolfram Demonstrations Project. Published: October 3, (2011). [CoLe] Coddington, E. A., Levinson, N.: Theory of ordinary differential equations. McGraw-Hill Book Company, Inc., New York-Toronto-London, (1955). [NOR] Novo S., Obaya, R., Rojo, J.: Equations and Differential Systems (in Spanish), McGraw-Hill, (1995) [Ro] Roach, G. F.: Green's functions. Second edition, Cambridge University Press, Cambridge-New York, (1982). 19