Computational Neuroscience. Session 1-2

Similar documents
DIFFERENTIAL EQUATIONS

Ordinary Differential Equations

Differential Equations

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25

Chapter1. Ordinary Differential Equations

The integrating factor method (Sect. 1.1)

(1 + 2y)y = x. ( x. The right-hand side is a standard integral, so in the end we have the implicit solution. y(x) + y 2 (x) = x2 2 +C.

Practice Midterm 1 Solutions Written by Victoria Kala July 10, 2017

Math 308 Exam I Practice Problems

Homework 2 Solutions Math 307 Summer 17

The Fundamental Theorem of Calculus: Suppose f continuous on [a, b]. 1.) If G(x) = x. f(t)dt = F (b) F (a) where F is any antiderivative

Solutions to Homework 1, Introduction to Differential Equations, 3450: , Dr. Montero, Spring y(x) = ce 2x + e x

First Order ODEs, Part I

y0 = F (t0)+c implies C = y0 F (t0) Integral = area between curve and x-axis (where I.e., f(t)dt = F (b) F (a) wheref is any antiderivative 2.

Sample Questions, Exam 1 Math 244 Spring 2007

Lecture 10. (2) Functions of two variables. Partial derivatives. Dan Nichols February 27, 2018

Coordinate systems and vectors in three spatial dimensions

= 2e t e 2t + ( e 2t )e 3t = 2e t e t = e t. Math 20D Final Review

Differential Equations Class Notes

Integral Curve (generic name for a member of the collection of known as the general solution)

Definition of differential equations and their classification. Methods of solution of first-order differential equations

Lecture 19: Solving linear ODEs + separable techniques for nonlinear ODE s

An Introduction to Partial Differential Equations

Tutorial-1, MA 108 (Linear Algebra)

MATH 308 Differential Equations

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

Solutions to Math 53 First Exam April 20, 2010

First Order Differential Equations Lecture 3

Solutions to the Review Questions

Solutions to the Review Questions

Predicting the future with Newton s Second Law

These notes are based mostly on [3]. They also rely on [2] and [1], though to a lesser extent.

Chapter 1: Introduction

Homework Solutions: , plus Substitutions

The acceleration of gravity is constant (near the surface of the earth). So, for falling objects:

Math Applied Differential Equations

! 1.1 Definitions and Terminology

Review for the First Midterm Exam

DIFFERENTIAL EQUATIONS

First Order Differential Equations Chapter 1

ORDINARY DIFFERENTIAL EQUATIONS

Section 2.1 Differential Equation and Solutions

ORDINARY DIFFERENTIAL EQUATIONS

1. Diagonalize the matrix A if possible, that is, find an invertible matrix P and a diagonal

Math 2930 Worksheet Introduction to Differential Equations

Modeling with differential equations

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

MATH 23 EXAM 1 REVIEW PROBLEMS

JUST THE MATHS UNIT NUMBER PARTIAL DIFFERENTIATION 1 (Partial derivatives of the first order) A.J.Hobson

Introduction to Partial Differential Equations

Math 308 Exam I Practice Problems

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Spring Department of Mathematics

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Fall Department of Mathematics

MATH 312 Section 1.2: Initial Value Problems

Coordinate Curves for Trajectories

SMA 208: Ordinary differential equations I

Math 225 Differential Equations Notes Chapter 1

and verify that it satisfies the differential equation:

An Introduction to Numerical Methods for Differential Equations. Janet Peterson

Mathematical Computing

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

(1) Rate of change: A swimming pool is emptying at a constant rate of 90 gal/min.

Math Applied Differential Equations

1.1 Motivation: Why study differential equations?

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics

4.9 Anti-derivatives. Definition. An anti-derivative of a function f is a function F such that F (x) = f (x) for all x.

On linear and non-linear equations.(sect. 2.4).

Math 308, Sections 301, 302, Summer 2008 Review before Test I 06/09/2008

Math 2930 Worksheet Final Exam Review

HW2 Solutions. MATH 20D Fall 2013 Prof: Sun Hui TA: Zezhou Zhang (David) October 14, Checklist: Section 2.6: 1, 3, 6, 8, 10, 15, [20, 22]

Physics-I. Dr. Anurag Srivastava. Web address: Visit me: Room-110, Block-E, IIITM Campus

Chapter 2: First Order DE 2.4 Linear vs. Nonlinear DEs

Math 2a Prac Lectures on Differential Equations

Review For the Final: Problem 1 Find the general solutions of the following DEs. a) x 2 y xy y 2 = 0 solution: = 0 : homogeneous equation.

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

Solutions to Math 53 Math 53 Practice Final

MATH 1231 MATHEMATICS 1B Calculus Section 3A: - First order ODEs.

Ordinary Differential Equations (ODEs)

How to Use Calculus Like a Physicist

Old Math 330 Exams. David M. McClendon. Department of Mathematics Ferris State University

First-Order ODEs. Chapter Separable Equations. We consider in this chapter differential equations of the form dy (1.1)

Solutions of Math 53 Midterm Exam I

Quantum Mechanics in Three Dimensions

1 Differential. Equations. A differential equation is any equation that involves a derivative. For example, Newton s second law F ma

Example (#1) Example (#1) Example (#2) Example (#2) dv dt

Summer 2017 Session 1 Math 2410Q (Section 10) Elementary Differential Equations M-Th 4:45pm-7:00pm

Calculus IV - HW 2 MA 214. Due 6/29

MB4018 Differential equations

Find the Fourier series of the odd-periodic extension of the function f (x) = 1 for x ( 1, 0). Solution: The Fourier series is.

Chapter 9: Differential Analysis

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

M343 Homework 3 Enrique Areyan May 17, 2013

dy dt = 1 y t 1 +t 2 y dy = 1 +t 2 dt 1 2 y2 = 1 2 ln(1 +t2 ) +C, y = ln(1 +t 2 ) + 9.

AMATH 351 Mar 15, 2013 FINAL REVIEW. Instructor: Jiri Najemnik

Solving Differential Equations: First Steps

The Starting Point: Basic Concepts and Terminology

First-Order Differential Equations

Chapter 9: Differential Analysis of Fluid Flow

MATH 307: Problem Set #3 Solutions

Lecture 1, August 21, 2017

Transcription:

Computational Neuroscience. Session 1-2 Dr. Marco A Roque Sol 05/29/2018

Definitions Differential Equations A differential equation is any equation which contains derivatives, either ordinary or partial derivatives of an unknown function. Ordinary and Partial Differential Equations A differential equation is called an ordinary differential equation, abbreviated by ODE, if it has only ordinary derivatives in it, having the form: F (y (n), y (n 1),..., y, y(t), t) = 0 Likewise, a differential equation is called a partial differential equation, abbreviated by PDE, if it has partial derivatives in it.

Definitions There many situations where we can find such an object. Thus, for instance in the case of the study of Classical Mechanics in Physics, if an object of mass m is moving with acceleration a and being acted on with force F then NewtonâĂŹs Second Law tells us. F = ma To see that this is in fact a differential equation. First, remember that we can rewrite the acceleration, a, in one of two ways. a = dv dt or a = d 2 u dt 2 Where v is the velocity of the object and u is the position function of the object at any time t. We should also remember at this point that the force, F may also be a function of time, velocity, and/or position.

Definitions m dv dt = F (t, v) or m d 2 u = F (t, u, v) dt2 More examples of differential equations 2y + 3y 5y = 0 cos(y) d 2 y (1 + y)dy dx 2 dx + y 3 e y = 0 y (4) + 5y 4y + y = sin(x) a 2 2 u x 2 = u t a 2 2 u x 2 = 2 u t 2 u 3 2 x t = 1 + u y

Classification Order The order of a differential equation is the largest derivative present in the differential equation. The equation m dv dt = F (t, v) is a first order differential equation, the equations m d 2 u = F (t, u, v) dt2 2y + 3y 5y = 0 cos(y) d 2 y (1 + y)dy dx 2 dx + y 3 e y = 0

Classification a 2 2 u x 2 = u t a 2 2 u x 2 = 2 u t 2 are second order differential equations, the equation u 3 2 x t = 1 + u y is a third order differential equation and finally, the equation y (4) + 5y 4y + y = sin(x) is a fourth order differential equation. Note that the order does not depend on whether or not you ve got ordinary or partial derivatives in the differential equation.

Definitions Solution A solution to an ordinary differential equation (ODE) on an interval α < t < β is any function y(t) which satisfies the differential equation in question on the interval. It is important to note that the solutions are often accompanied by intervals and these intervals can impart some important information about the solution.

Classification Linear Differential Equations A linear differential equation is any differential equation that can be written in the following form. a n (t)y (n) + a n 1 (t)y (n 1) +... + a 1 (t)y + a 0 (t)y = g(t) The important thing to note about linear differential equations is that there are no products of the function and its derivatives, and neither the function or its derivatives occur to any power other than the first power.

Classification The coefficients a n (t),..., a 0 (t), g(t) can be any function. Only the function y(t) and its derivatives are used in determining if a differential equation is linear. If a differential equation cannot be written in the above form, then it is called a non-linear differential equation. In the examples above only cos(y) d 2 y (1 + y)dy dx 2 dx + y 3 e y = 0 is a non-linear equation. Note that we can t classify Newton s Second Law equations since we do not know what form the function F has. These could be either linear or non-linear depending on F.

Differential Equations in Physics Schrödinger s Equation. h2 2m 2 Ψ + V (r)ψ = i h Ψ t Is the starting point for non-relativistic Quantum Mechanics, here the solution Ψ( r, t) is the wave function. In the one-dimensional case, If we substitute into the above equation, the proposed solution Ψ(x, t) = ψ(x)φ(t)

we get h2 2m ψ (x)φ(t) + V (x)ψ(x)φ(t) = i hψ(x)φ (t) Dividing the whole equation by ψ(x)φ(t) we get h2 ψ (x) 2m ψ(x) + V (x) = i h φ (t) φ(t) = constant = E So we obtain two ODE s.

First, The Time Independent Schrödinger Equation h2 d 2 ψ(x) 2m dt 2 + V (x)ψ(x) = Eψ(x) and second, The Energy Eigenvalue Equation i h dφ(t) dt = Eφ(t)

Maxwell s equations: Ē = ρ ɛ 0, (1a) B = 0, Ē = B t, B = µ 0 ɛ 0 Ē t (1b) (1c) + µ 0 J, (1d) This is the set of fundamental equations for Classical Electromagnetism, here the solutions Ē and B represent the electrical and magnetic fields.

In the vacuum ρ = J = 0. Maxwell Equations can be written as 2 Ē = µ 0 ɛ 0 2 Ē t 2 2 B = µ 0 ɛ 0 2 B t 2 Each one of these is 3 PDE s. Consider the one-dimensional case for the Electrical Field 2 E x 2 = µ 2 E 0ɛ 0 t 2 Now, suppose that E(x, t) = X(x)T (t) making this substitution we get

X (x)t (t) = µ 0 ɛ 0 X(x)T (t) dividing by X(x)T (t) X (x) X(x) = µ 0ɛ 0 T (t) T (t) = constant = a Thus, we have to solve a couple of ODE s d 2 X(x) dx 2 = ax(x); µ 0 ɛ 0 T (t) = at (t)

Newton s Second Law. m d 2 r dt 2 = F ( r, t) Is the fundamental equation for Classical Mechanics, here the solution r(t) is the position as a function of time. In this case we have one independent variable, the time t. Solving any particular case of a Force bring us immediately to solving an ODE.

Consider the Gravity near earth s surface m d 2 r dt 2 = mg ˆk That vector equation is equivalent to the next three ODE s m d 2 x dt 2 = 0 m d 2 y dt 2 = 0 m d 2 z dt 2 = mg

Example 1.1 Show that y(x) = x 3/2 is a solution to 4x 2 y + 12xy + 3y = 0 for x > 0. Solution We will need the first and second derivatives : y (x) = 3 2 x 5/2, y (x) = 15 4 x 7/2 Plug these as well as the function into the differential equation:

4x 2 ( 15 4 x 7/2 ) + 12x( 3 2 x 5/2 ) + 3x 3/2 = 0 15x 3/2 18x 3/2 + 3x 3/2 = 0 0 = 0 So, y(x) = x 3/2 does satisfy the differential equation and hence is a solution. Why then didn t I include the condition that x > 0? I did not use this condition anywhere in the work showing that the function would satisfy the differential equation.

To see why recall that y(x) = x 3/2 = 1 x 3/2 In this form it is clear that we will need to avoid x = 0 at the least as this would give division by zero. So, we saw in the last example that even though a function may symbolically satisfy a differential equation, because of certain restrictions brought about by the solution we cannot use all values of the independent variable and hence, must make a restriction on the independent variable.

In the last example, note that there are in fact many more possible solutions to the differential equation. For instance all of the following are also solutions y(x) = x 1/2 y(x) = 5x 3/2 y(x) = 3x 1/2 y(x) = 2x 1/2 + 3x 3/2

I ll leave the details to you to check that these are in fact solutions. Given these examples can you come up with any other solutions to the differential equation? y(x) = c 1 x 1/2 + c 2 x 3/2 There are in fact an infinite number of solutions to this differential equation. So, given that there are an infinite number of solutions to the differential equation in the last example, we can ask a natural question. Which is the solution that we want or does it matter which solution we use? This question leads us to the next material in this section.

Example 1.2 Show that y(x) = x 3/2 is a solution to 4x 2 y + 12xy + 3y = 0 with initial conditions y(4) = 1 8 and y (4) = 3 64. Solution As we saw in previous example the function y(x) = x 3/2 is a solution and we can then note that y(4) = 4 3/2 = 1 4 3/2 = 1 8 y (4) = 3 2 4 5/2 = 3 1 2 4 = 3 5/2 64 and so this solution also meets the initial conditions.

In fact, y(x) = x 3/2 is the only solution to this differential equation that satisfies these two initial conditions. Initial Value Problem An Initial Value Problem (or IVP) is a differential equation along with an appropriate number of initial conditions. Example 1.3 The following is an example of IVP 4x 2 y + 12xy + 3y = 0, y(4) = 1 8, and y (4) = 3 64.

Example 1.4 This is another example of an IVP 2ty + 4y = 3, y(1) = 4. As you can notice, the number of initial conditions required will depend on the order of the differential equation. Interval of Validity The interval of validity for an IVP with initial condition(s). y(t 0 ) = y 0, y (t 0 ) = y 1,..., y k (t 0 ) = y k

is the largest possible interval on which the solution is valid and contains t 0. These are easy to define, but can be very difficult to find in the practice. General Solution The general solution to a differential equation is the most general form that the solution can take and doesn t take any initial conditions into account.

Example 1.5 y(t) = 3 4 + c t 2 is the general solution to the equation 2ty + 4y = 3 Check it out!!!!!! In fact, all solutions to this differential equation will be in this form. This is one of the first differential equations that we will learn how to solve and we will be able to verify this shortly.

Particular Solution The particular solution to a differential equation is the specific solution that not only satisfies the differential equation, but also satisfies the given initial condition(s). Example 1.6 What is the particular solution to the following IVP? 2ty + 4y = 3 y(1) = 4

Solution This is actually easier to do than it might, the general solution is of the form: y(t) = 3 4 + c t 2 All what we need is to determine the value of c that will give us the solution that we are after. To find this, all we need to do is use our initial condition as follows: 4 = 3 4 + c 1 2

c = 4 3 4 = 19 4 So, the particular solution to the IVP is: y(t) = 3 4 19 4t 2

Implicit/Explicit Solution An explicit solution is any solution that is given in the form y = y(t). An implicit solution is any solution that is not in explicit form, that is, y can not be expressed explicitly as a function of t. Note that it is possible to have either general implicit/explicit solutions and particular implicit/explicit solutions. Example 1.7 Show that y 2 = t 2 3 is an implicit solution of the differential equation yy = t.

Solution Using implicit derivation, the solution follows: 2yy = 2t + 0 yy = t Example 1.8 Find a particular explicit solution to the IVP yy = t y(2) = 1

Solution We already know from the previous example that an implicit solution to this IVP is y 2 = t 2 3. To find the explicit solution all we need to do is solve for y(t) from y(t) = ± t 2 3 Now, we ve got a problem here. There are two functions here and we only want one and in fact only one will be the correct!!! We can determine the correct function by reapplying the initial condition.

Only one of them will satisfy the initial condition. In this case we can see that the negative solution, will be the correct one. The explicit solution is then y(t) = t 2 3 In this case we were able to find an explicit solution to the differential equation. It should be noted however that it will not always be possible to find an explicit solution.

Example 1.9 A spherical raindrop evaporates at a rate proportional to its surface area. Write a differential equation for the volume of the raindrop as a function of time. Solution If the volume at time t is denoted by V (t) and the surface at time t is denoted by S(t), then the fact that raindrop evaporates at a rate proportional to its surface area can be write as dv (t) dt proportional to S(t) dv (t) dt = αs(t)

were α is a constant of proportionality. But, we have the following relationship this implies that V = 4 3 πr 3 = r = [ 3V 4π ]1/3 dv (t) dt = αs(t) = 4πr 2 = 4απ[ 3V 4π ]2/3 = 4απ[ 3 4π ]2/3 V 2/3 where c is a constant. dv (t) dt = cv 2/3

Example 1.10 A certain drug is being administered intravenously to a hospital patient. Fluid containing 5mg/cm 3 of the drug enters the patientâăźs bloodstream at a rate of 100cm 3 /h. The drug is absorbed by body tissues or otherwise leaves the bloodstream at a rate proportional to the amount present, with a rate constant of 0.4(h) 1. (a) Assuming that the drug is always uniformly distributed throughout the bloodstream, write a differential equation for the amount of the drug that is present in the bloodstream at any time. (b) How much of the drug is present in the bloodstream after a long time?

Solution (a) If the drug is always uniformly distributed throughout the bloodstream, and the amount of the drug in mg at time t is denoted by Q(t), then the equation that we will use is a balance equation Rate of change of Q(t) = Rate at which Q(t) enters the bloodstream - Rate at which Q(t) exits the bloodstream dq dt dq dt = drug entering drug exiting = (concentration)(rate of entering) (concentration)(rate of exitin

dq = (5)(100) Q(t)(0.4) dt and the final equation is (b) dq dt = 500 Q(t)(0.4) Q (t) = 500 Q(t)(0.4) Q (t) 500 Q(t)(0.4) = 1

d ln 500 Q(t)(0.4) /0.40 = 1 dt ln 500 Q(t)(0.4) = 0.4t + c 500 Q(t)(0.4) = e 0.4t+c = ce 0.4t 500 ce t Q(t) = 0.4 Thus, in the long run the amount of drug present is... 500/0.4 = 20 mg!!!