INF-MAT Mandatory Exercise 1

Size: px
Start display at page:

Download "INF-MAT Mandatory Exercise 1"

Transcription

1 INF-MAT336 - Mandatory Exercise 1 Vegard Kjelseth University of Oslo vokjelse@ifi.uio.no March 8, 213 Exercise 1 a) The solution of the ODE u (t) = au (t), t >, u () = 1 is u (t) = Ce at. The value of C is found using the initial conditions. u () = C = 1. The full solution is u (t) = e at. b) Given the following permutation of the initial conditions, ũ () = 1 + ɛ, the solution is given by: ũ (t) = (1 + ɛ) e at The error is then given by: e (t) = ũ (t) u (t) = ɛe at The error increases exponentially with t for a >, while for a < the error decreases exponentially. It follows that the problem is stable for a < and unstable for a >. The code following below plots the difference between the solution and the perturbed solution. As expected, the difference decreases exponentially for a <, while for a > it increases exponentially. This confirms the analysis above. 1 % I n i t i a l i z e t 2 t = linspace (, 1, 1 ) ; 3 4 % I n i t i a l i z e a 5 a = 1 ; 6 7 % I n i t i a l i z e u 8 u = exp ( a * t ) ; 9 1 % I n i t i a l i z e u _ p e r t u r b e d 11 epsilon =. 1 ; 12 u_perturbed = (1+ epsilon ) * exp ( a * t ) ; % P l o t d i f f e r e n c e between s o l u t i o n s 15 plot ( t, abs ( u u_perturbed ), b ) ; 16 legend ( D i f f e r e n c e ) ; 1

2 c) The code for the forward Euler method follows below. The elements are calculated using the formula: v m+1 = v m + hav m = v m (1 + ha) Solving this yields the following general formula for the different elements: v m = (1 + ha) n This shows that there is a clear danger with this approach in cases where ha < 1 since this will result in an oscillating solution and an unstable scheme. Running the script with the given values confirm this since for k = 1 and k = 1 we get increasingly higher oscillations that don t correspond to the actual solution. Since h = 1/3 this is explained by the fact that ha < 1 for these values of k. 1 % S c r i p t f o r s o l v i n g u ( t )= a * u ( t ) using f o r w a r d E u l e r 2 3 % I n i t i a l i z e time s t e p 4 n = 3 ; % Number o f s t e p s 5 h = 1/n ; 6 7 % I n i t i a l i z e u v e c t o r 8 u = zeros ( 1, n + 1 ) ; 9 u ( 1 ) = 1 ; % I n i t a l i z e u ( t =) 1 11 % I n i t i a l i z e a 12 a = 1; % Perform f o r w a r d e u l e r 15 for i =1:n 16 der = a * u ( i ) ; 17 u ( i +1) = u ( i )+h * der ; 18 end 19 2 % P l o t s o l u t i o n 21 t = linspace (, 1, n + 1 ) ; 22 plot ( t, u, b ) ; 23 hold on ; 24 plot ( t, exp ( a * t ), g ) 25 legend ( s t r c a t ( Forward Euler s o l u t i o n to u, char ( 3 9 ), ( t )= a * u ( t ) ), Exact Solution : exp ( a * t ) ) ; The code for the backwards Euler method follows below. The backwards Euler solution is calculated using v m+1 h f (v m+1 ) = v m which yields: v m+1 h a v m+1 = v m+1 (1 ha) = v m v m+1 = v m / (1 ha) Solving this yields the following general formula: v m = 1 (1 ha) n The problem with this approach is that for ha = 1 it will divide by zero, in other words for a = 3. For 3 < a < 6 we will get an oscillating behaviour with 2

3 increasingly volatile oscillations, while for a > 6 we will get an oscillating behaviour converging towards zero. The solution is therefore not stable for any values of a resulting in ha 1, something that is confirmed by running the script for these values. 1 % S c r i p t f o r s o l v i n g u ( t )= a * u ( t ) using backward E u l e r 2 3 % I n i t i a l i z e time s t e p 4 n = 3 ; % Number o f s t e p s 5 h = 1/n ; 6 7 % I n i t i a l i z e u v e c t o r 8 u = zeros ( 1, n + 1 ) ; 9 u ( 1 ) = 1 ; % I n i t a l i z e u ( t =) 1 11 % I n i t i a l i z e a 12 a = 1 ; % Perform f o r w a r d e u l e r 15 for i =1:n 16 u ( i +1) = u ( i )/(1 h * a ) ; 17 end % P l o t s o l u t i o n 2 t = linspace (, 1, n + 1 ) ; 21 plot ( t, u, b ) ; 22 hold on ; 23 plot ( t, exp ( a * t ), g ) 24 legend ( s t r c a t ( Backward Euler s o l u t i o n to u, char ( 3 9 ), ( t )= a * u ( t ) ), Exact Solution : exp ( a * t ) ) ; Exercise 2 a The code for solving the equations follows below. The equations are solved using the forward Euler method. The plot for ζ = can be found in figure 1 on page 5, while the plot for ζ =.1 is in figure 2 on page 6. The results are similar in both cases, but clearly show that if the model is accurate there won t be a zombie apocalypse even if there is an outbreak. Both cases show that the number of infected and the number of zombies never rise significantly above. This can be explained by the fact that α > β which means that the zombies are killed faster than the susceptible are being infected. As for the difference between ζ = and ζ =.1, the plot for ζ =.1 shows a slightly higher amount of deceased people than for ζ =. Using a value of ζ = means that the number of zombies increases not just because of people being infected, but that dead susceptible people can become zombies as well. Given the model we re using this is not realistic since we are assuming that people are infected through contact with zombies, and not through black magic. Running the simulation for longer than t = 1 shows the number of suscep- 3

4 tible continuing to decrease and the the dead increasing, but with the number of zombies and infected staying close to. One could therefore argue that even though the zombies don t take over the planet, an outbreak would still cause the death of all of humandkind (assuming all people are susceptible). The reason this won t happen is that the continued decrease in the number of susceptible in the simulation is due to the fact that the number of zombies is >, but it is still << 1. Since it s not possible to have a fraction of a zombie, the reality is that given the parameters used the zombie outbreak would be put down quickly and we would all be able to continue with our lives. 1 % I n i t i a l i z e time s t e p 2 h =. 1 ; 3 n = 1/h ; 4 5 % C r e a t e v e c t o r s 6 S = zeros ( 1, n + 1 ) ; % S u s c e p t i b l e 7 I = zeros ( 1, n + 1 ) ; % I n f e c t e d 8 Z = zeros ( 1, n + 1 ) ; % Zombies 9 R = zeros ( 1, n + 1 ) ; % Removed / Dead 1 11 % I n i t i a l i z e v e c t o r s 12 S ( 1 ) = 1 ; 13 I ( 1 ) = ; 14 Z ( 1 ) = 2 ; 15 R ( 1 ) = ; % S e t c o n s t a n t s 18 Sigma = ; 19 alpha =. 3 ; 2 beta_var =. 6 ; 21 d e l t a =. 1 ; 22 sigma =. 1 ; 23 rho =. 1 ; 24 zeta = ; % Constant t o vary c o n v e r s i o n from dead t o zombie % Perform f o r w a r d e u l e r 27 for i =1:n 28 % S u s c e p t i b l e 29 der = Sigma beta_var * S ( i ) * Z( i ) d e l t a * S ( i ) ; 3 S ( i +1) = S ( i )+h * der ; % I n f e c t e d 33 der = beta_var * S ( i ) * Z( i ) rho * I ( i ) d e l t a * I ( i ) ; 34 I ( i +1) = I ( i )+h * der ; % Zombies 37 der = rho * I ( i ) alpha * S ( i ) * Z( i )+ zeta * R( i ) sigma * Z( i ) ; 38 Z( i +1) = Z( i )+h * der ; 39 4 % Removed / Dead 41 der = d e l t a * S ( i )+ d e l t a * I ( i ) zeta * R( i )+ alpha * S ( i ) * Z( i ) ; 42 R( i +1) = R( i )+h * der ; 43 end % P l o t s o l u t i o n 46 t = linspace (, 1, n + 1 ) ; 47 plot ( t, S, b ) ; 48 hold on ; 49 plot ( t, I, r ) ; 5 hold on ; 51 plot ( t, Z, k ) ; 4

5 Figure 1: Plot for ζ = 52 hold on ; 53 plot ( t, R, g ) ; 54 legend ( S u s c e p t i b l e, I n f e c t e d, Zombies, Removed / Dead ) ; b In this exercise I have used the same code as listed above, but switching the values of β and α so β =.6 and α =.3. The plot showing this scenario can be found in figure 3 on the following page. As noted briefly above using these values means that people are infected faster than zombies are being put down, and the result is a zombie apocalypse which can be seen in the figure. Exercise 3 Positive Definiteness For the operator L to be positive definite it has to satisfy Lu, u with equality only if u =. Lu, u = (u (x)) 2 u (x) u (x) dx Using integration by parts on the second expression yields: u (x) u (x) dx = u (x) u (x) 1 1 ( u (x) ) 2 dx 5

6 Figure 2: Plot for ζ =.1 Figure 3: Plot for β =.6, α =.3 6

7 u (x) u (x) 1 = since u () = u (1) =. Plugging this into the initial equation yields: Lu, u = (u (x)) 2 + ( u (x) ) 2 dx This is clearly non-negative, and for the expression to be equal to zero both u and u has to be equal to zero. This proves that the operator L is positive definite. Symmetry For the operator L to be symmetric it has to satisfy the following equality: Lu, v = u, Lv Where u, v are solutions to the system described by L. Lu, v = 1 u (x) v (x) u (x) v (x) dx u, Lv = 1 u (x) v (x) u (x) v (x) dx From this it is clear to see that for the equality to hold be equal to yields: u (x) v (x) dx must u (x) v (x) dx. Using integration by parts on the first expression u (x) v (x) dx = u (x) v (x) 1 u (x) v (x) u (x) v (x) dx Since u and v both are solutions to L this means that u () = v () = u (1) = v (1) =. It follows that u (x) v (x) 1 = u (x) v (x) 1 =, which yields : u (x) v (x) dx = So Lu, v = u, Lv and L is symmetric. u (x) v (x) dx Uniqueness Assume that u 1 and u 2 both are solutions to L, so Lu 1 = f and Lu 2 = f. I let e = u 1 u 2. This yields: Le = Lu 1 Lu 2 = f f = From this it follows that Le, e = due to the fact that Le =. Since L is positive definite it also follows from Lemma 2.4 that e = and u 1 = u 2. It is therefore clear that problem has a unique solution. 7

8 What is the solution? Since f (x) = sin (kπx) an initial guess would be that the solution is of the form u (x) = A sin (kπx). This covers the boundary conditions since u () = u (1) =. I plug this into the differential equation: u (x) u (x) = A sin ( (kπx) + A (kπ) 2 sin (kπx) = A 1 + (kπ) 2) sin (kπx) = f (x) = sin (kπx) Clearly ( the solution u (x) = A sin (kπx) solves the differential equation as long as A 1 + (kπ) 2) = 1. This gives us the following value for A: A = (kπ) 2 The final solution is then: u (x) = sin (kπx) 1 + (kπ) 2 Implement a numerical scheme to solve the PDE The differential equation can be written as: u (x) = u (x) + f (x) I will use the result of a Taylor series expansion given by: u (x + h) 2u (x) + u (x h) h 2 = u (x) + E h (x) u (x) Where the error term E h satisfies E h (x) M uh 2 12, and where the constant M u is given by : M u = sup u (4) (x) x This yields: u (x) = u (x + h) 2u (x) + u (x h) h 2 + f (x) Letting v j denote the discrete solution for u ( x j ) and rearranging the expression gives us: v j+1 + ( 2 + h 2) v j v j 1 h 2 = f ( ) x j vj+1 + (2 + h 2) v j v j 1 = h 2 f ( ) x j I let b denote the vector where b i = h 2 f (x i ) and v denote the vector where v i = v i for i = 1,..., n. v and v n+1 are not included since v = v n+1 =. The 8

9 solution can be found by solving the equation Av = b where A is given by: 2 + h h A = h h 2 We know that a solution exists if the matrix A is diagonally dominant. Here α = 2 + h 2, γ = β = 1 and the matrix is diagonally dominant if α > γ and α β + γ (I dropped subscripts since they re the same regardless of index). This is clearly true for A, so it is diagonally dominant and has a unique solution. The MATLAB code for solving this follows below: 1 % I n i t i a l i z e h and n 2 n = 1 ; % Number o f p o i n t s between and 1 3 h = 1/(n + 1 ) ; 4 5 % I n i t i a l i z e v 6 v = zeros ( 1, n + 2 ) ; 7 8 % I n i t i a l i z e x v a l u e s 9 x = linspace (, 1, n + 2 ) ; 1 11 % I n i t i a l i z e k 12 k = 1 ; % I n i t i a l i z e f u n c t i o n f 15 f x, k ) ( sin ( k * pi * x ) ) ; % I n i t i a l i z e b 18 b = h^2 * f ( x ( 2 : n +1), k ) ; 19 2 % I n i t i a l i z e A 21 A = g a l l e r y ( t r i d i a g, ones ( 1, n 1),(2+h^2) * ones ( 1, n), ones ( 1, n 1 ) ) ; % C a l c u l a t e v 24 v ( 2 : n+1) = A\b ; % P l o t s o l u t i o n 27 plot ( x, v, b ) ; 28 hold on ; 29 exact = sin ( k * pi * x ) / ( 1 + ( k * pi ) ^ 2 ) ; 3 plot ( x, exact, r ) ; 31 legend ( Numerical Solution, Exact Solution ) ; % L a r g e s t e r r o r 34 e r r o r = max( abs ( v exact ) ) ; 35 disp ( s t r c a t ( The l a r g e s t e r r o r i s :, num2str ( e r r o r ) ) ) ; Analysis Using h = 1/1 was not a problem on my computer. 9

10 k=1 For h = 1/1 to 1/1 the maximum errors are e 6, 6.857e 8 and e 1. k=1 For h = 1/1 to 1/1 the maximum errors are e 6, 8.33e 8 and e 1. k=1 For h = 1/1 to 1/1 the maximum errors are e 5, e 8 and e 1. CPU time and complexity The script I used for timing this exercise and the next follows below. The timing was done with the plot part of the exercise commented out. For a given n, h is defined as h = 1/ (n + 1). Running this exercise with n = 1 led to an average time of t.95s. Using n = 1 led to an average time of t.135s, while using n = 1 had an average time of t =.7s. Going from n = 1 to n = 1 leads to an increase in time by a factor of around 1.4, while increasing from n = 1 to n = 1 only increases the time by a factor of approximately 5. A reasonable explanation for this is that at lower n the initialization cost of variables accounts for such a large part of the total operations that the increase in the time doesn t properly reflect the complexity of the core computations in the script. I therefore increased n and performed the timing for n = 2 and n = 3 as well, yielding the times t =.14s and t =.21s respectively. This amounts to an increase in time of 2 and 3 for the same increase in n, indicating that the complexity is linear. I therefore conclude that the complexity is O (n). This complexity seemed strange to me initially since we re dealing with an n-by-n matrix A. On the other hand this matrix is initialized using the gallery function which does not save elements that are equal to, which results in the number of elements being n + 2 (n 1) = 3n 2. Additionally the script computes A\b, which is the same as inv (A) b to find the values of the elements of v. Finding the inverse of a matrix generally has a complexity larger than O ( n 2), so this requires an explanation. An alternative to this would be to use Algorithm 2.1 from the textbook to solve this problem. We could have used this since the matrix A is diagonally dominant, and this algorithm is linear in time. So it is clearly possible to solve this in linear time. My explanation for the fact that the operation A\b only is linear in time is that MATLAB exploits the fact that A is tridiagonal and diagonally dominant and that this is the reason it is able to find the solution in linear time. 1 % S c r i p t f o r t i m i n g e x e r c i s e 3 and 4 1

11 2 i t e r = 5. ; 3 t = cputime ; 4 5 for i =1: i t e r 6 run ( e x e r c i s e 4 ) ; 7 end 8 9 % Get a v e r a g e time 1 avg = ( cputime t )/ i t e r ; % P r i n t a v e r a g e time 13 disp ( s t r c a t ( Average time :, num2str ( avg ) ) ) ; Exercise 4 Positive Definiteness For the operator L to be positive definite it has to satisfy Lu, u with equality only if u =. Lu, u = u (x) u (x) cu (x) u (x) dx I use integration by parts on the first expression which yields: 1 u (x) u (x) dx = u (x) u (x) 1 + ( u (x) ) 1 2 dx = ( u (x) ) 2 dx Where I used the fact that u () = u (1) = to cancel out u (x) u (x) 1. I proceed by using integration by parts on the second expression. 1 u (x) u (x) dx = u (x) u (x) 1 + u (x) u (x) = u (x) u (x) Where I used the fact that u () = u (1) = to cancel out u (x) u (x) 1. Moving the left hand-side over yields: 2 u (x) u (x) = u (x) u (x) = Plugging these expressions into the initial equation yields: Lu, u = ( u (x) ) 2 dx This expression is clearly non-negative. For the expression to equal zero we must have u (x) =. This means that u (x) must be a constant. Since we know that u () = u (1) =, we must have u (x) =, thus Lu, u is always positive except when u =, in which case Lu, u =. It follows that L is positive definite. 11

12 Symmetry For the operator L to be symmetric it has to satisfy the following equality: Lu, v = u, Lv Where u, v are solutions to the system described by L. I showed that Lu, v = 1 u (x) v (x) cu (x) v (x) dx u, Lv = 1 u (x) v (x) cu (x) v (x) dx u (x) v (x) dx = 1 prove equality I need to show that by using integration by parts: 1 u (x) v (x) dx = u (x) v (x) 1 u (x) v (x) dx in the previous exercise. To u (x) v (x) dx = 1 u (x) v (x) dx = u (x) v (x) dx. I do this u (x) v (x) dx Where I used the fact that u () = u (1) = v () = v (1) = to cancel out u (x) v (x) 1 1. Since u (x) v (x) dx = 1 u (x) v (x) 1 dx it is clear that u (x) v (x) dx = u (x) v (x) dx, and it follows that Lu, v = u, Lv, so L is not symmetric. Uniqueness The proof for uniqueness in the following exercise was based on the fact that L was positive definite. The same proof can be applied here, since L is positive definite in this case as well. Assume that u 1 and u 2 both are solutions to L, so Lu 1 = f and Lu 2 = f. I let e = u 1 u 2. This yields: Le = Lu 1 Lu 2 = f f = From this it follows that Le, e = due to the fact that Le =. Since L is positive definite it also follows from Lemma 2.4 that e = and u 1 = u 2. It is therefore clear that problem has a unique solution. What is f? Since u (x) = sin (kπx) I simply plug this into the differential equation to find u. f (x) = u (x) cu (x) = (kπ) 2 sin (kπx) cπk cos (kπx) 12

13 Implement a numerical scheme to solve the PDE The differential equation can be written as: u (x) cu (x) = f (x) To find a numerical solution I will use the following results of Taylor series expansions: u(x+h) u(x h) 2h u(x+h) 2u(x)+u(x h) h 2 = u (x) + O ( h 2) u (x) = u (x) + E h (x) u (x) The second expression is the same as the one used in the previous exercise, while the expression O ( h 2) satisfies : ( O h 2) h 2 sup u (3) (x) x Plugging this into the differential equation gives us: u (x + h) 2u (x) + u (x h) u (x + h) u (x h) h 2 c = f (x) 2h Multiplying through by 2h 2, rearranging and letting v j denote the discrete solution for u ( x j ) yields: v j+1 ( 2 ch) + 4v j + v j 1 ( 2 + ch) = 2h 2 f (x) I let b denote the vector where b i = 2h 2 f (x i ) and v denote the vector where v i = v i for i = 1,..., n. v and v n+1 are not included since v = v n+1 =. The solution can be found by solving the equation Av = b where A is given by: ch ch ch... A = ch ch... 2 ch 4 We know that a solution exists if the matrix A is diagonally dominant. Here α = 4, γ = 2 + ch and β = 2 ch. (Like the previous exercise I ve dropped the subscripts since they re the same regardless of index.) The first requirement is that α > γ. γ = 2 ch for ch 2 which is clearly less than α = 4. For ch > 2 we have γ = ch 2 which is less than α = 4 for ch < 6. The second requirement is that α β + γ. For ch 2 we get β + γ = 2 + ch + 2 ch = 4, which satisifies the requirement since it s equal to α. For ch > 2 we get β + γ = 2 + ch 2 + ch = 2ch > 4, which does not satisfy this requirement. 13

14 In conclusion, the matrix A is diagonally dominant as long as ch is 2. Since we re only operating with values where c/h < 2 c < 2h we get ch < 2h 2 < 2 since h will always be far less than 1. The matrix A is therefore diagonally dominant for all values we operate with. The MATLAB code for solving this follows below: 1 % I n i t i a l i z e h, n, c 2 n = 3; % Number o f p o i n t s between and 1 3 h = 1/(n + 1 ) ; 4 c = h ; 5 6 % I n i t i a l i z e v 7 v = zeros ( 1, n + 2 ) ; 8 9 % I n i t i a l i z e x v a l u e s 1 x = linspace (, 1, n + 2 ) ; % I n i t i a l i z e k 13 k = 1 ; % I n i t i a l i z e f u n c t i o n f 16 f x, k ) ( ( sin ( k * pi * x ) * ( k * pi )^2) c * k * pi * cos ( k * pi * x ) ) ; % I n i t i a l i z e b 19 b = 2 * h^2 * f ( x ( 2 : n +1), k ) ; 2 21 % I n i t i a l i z e A 22 A = g a l l e r y ( t r i d i a g,( 2 c * h ) * ones ( 1, n 1),4 * ones ( 1, n),( 2+ c * h ) * ones ( 1, n 1 ) ) ; % C a l c u l a t e v 25 v ( 2 : n+1) = A\b ; % P l o t s o l u t i o n 28 %p l o t ( x, v, b ) ; 29 %h o l d on ; 3 %e x a c t = s i n ( k * p i * x ) ; 31 %p l o t ( x, e x a c t, r ) ; 32 %l e g e n d ( Numerical S o l u t i o n, Exact S o l u t i o n ) ; % L a r g e s t e r r o r 35 %e r r o r = max ( a b s ( v e x a c t ) ) ; 36 %d i s p ( s t r c a t ( The l a r g e s t e r r o r i s :, num2str ( e r r o r ) ) ) ; Analysis Using h = 1/1 was not a problem on my computer. The following errors are calculated using c = h. k=1 For h = 1/1 to 1/1 the maximum errors are :.13762, and 1.345e 5. 14

15 k=1 For h = 1/1 to 1/1 the maximum errors are.87552, and e 5. k=1 For h = 1/1 to 1/1 the maximum errors are , and e 5. CPU time and complexity I used the same script for timing the exercise as I did for exercise 3. Running this exercise with n = 1 led to an average time of t.1s. Using n = 1 led to an average time of t.14s, while using n = 1 had an average time of t =.71s. This amounts to an increase by a factor of approximately 1.4 and 5 respectively and paints the same picture as what I encountered in exercise 3. Assuming the cost of the initialization of variables takes a larger share of the computational cost for lower values of n I performed this using n = 2 and n = 3 like I did in the previous exercise. The results were average times of t =.1317s and t =.2873s respectively, corresponding to approximately an increase in time of a factor 2 for an increase in n by 2, and and increase in time by 3 for an increase in n by 3. This indicates that it runs in linear time like the script in the previous exercise. The complexity is O (n). The script for this exercise is basically the same as in exercise 3, but tailored for this specific problem, so for an explanation of this I refer to the explanation in the last exercise. 15

Finite Differences: Consistency, Stability and Convergence

Finite Differences: Consistency, Stability and Convergence Finite Differences: Consistency, Stability and Convergence Varun Shankar March, 06 Introduction Now that we have tackled our first space-time PDE, we will take a quick detour from presenting new FD methods,

More information

Notes for CS542G (Iterative Solvers for Linear Systems)

Notes for CS542G (Iterative Solvers for Linear Systems) Notes for CS542G (Iterative Solvers for Linear Systems) Robert Bridson November 20, 2007 1 The Basics We re now looking at efficient ways to solve the linear system of equations Ax = b where in this course,

More information

Lecture 9: Elementary Matrices

Lecture 9: Elementary Matrices Lecture 9: Elementary Matrices Review of Row Reduced Echelon Form Consider the matrix A and the vector b defined as follows: 1 2 1 A b 3 8 5 A common technique to solve linear equations of the form Ax

More information

Lecture 5: Special Functions and Operations

Lecture 5: Special Functions and Operations Lecture 5: Special Functions and Operations Feedback of Assignment2 Rotation Transformation To rotate by angle θ counterclockwise, set your transformation matrix A as [ ] cos θ sin θ A =. sin θ cos θ We

More information

Review for Exam 2 Ben Wang and Mark Styczynski

Review for Exam 2 Ben Wang and Mark Styczynski Review for Exam Ben Wang and Mark Styczynski This is a rough approximation of what we went over in the review session. This is actually more detailed in portions than what we went over. Also, please note

More information

Second-Order Homogeneous Linear Equations with Constant Coefficients

Second-Order Homogeneous Linear Equations with Constant Coefficients 15 Second-Order Homogeneous Linear Equations with Constant Coefficients A very important class of second-order homogeneous linear equations consists of those with constant coefficients; that is, those

More information

Linearization of Differential Equation Models

Linearization of Differential Equation Models Linearization of Differential Equation Models 1 Motivation We cannot solve most nonlinear models, so we often instead try to get an overall feel for the way the model behaves: we sometimes talk about looking

More information

QFT. Chapter 14: Loop Corrections to the Propagator

QFT. Chapter 14: Loop Corrections to the Propagator QFT Chapter 14: Loop Corrections to the Propagator Overview Here we turn to our next major topic: loop order corrections. We ll consider the effect on the propagator first. This has at least two advantages:

More information

Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology. Indian Institute of Technology, Kharagpur

Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology. Indian Institute of Technology, Kharagpur Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology Indian Institute of Technology, Kharagpur Lecture No 03 Damped Oscillator II We were discussing, the damped oscillator

More information

(17) (18)

(17) (18) Module 4 : Solving Linear Algebraic Equations Section 3 : Direct Solution Techniques 3 Direct Solution Techniques Methods for solving linear algebraic equations can be categorized as direct and iterative

More information

MITOCW watch?v=dztkqqy2jn4

MITOCW watch?v=dztkqqy2jn4 MITOCW watch?v=dztkqqy2jn4 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

Numerical Solutions to PDE s

Numerical Solutions to PDE s Introduction Numerical Solutions to PDE s Mathematical Modelling Week 5 Kurt Bryan Let s start by recalling a simple numerical scheme for solving ODE s. Suppose we have an ODE u (t) = f(t, u(t)) for some

More information

Poisson Solvers. William McLean. April 21, Return to Math3301/Math5315 Common Material.

Poisson Solvers. William McLean. April 21, Return to Math3301/Math5315 Common Material. Poisson Solvers William McLean April 21, 2004 Return to Math3301/Math5315 Common Material 1 Introduction Many problems in applied mathematics lead to a partial differential equation of the form a 2 u +

More information

Math 312 Lecture Notes Linear Two-dimensional Systems of Differential Equations

Math 312 Lecture Notes Linear Two-dimensional Systems of Differential Equations Math 2 Lecture Notes Linear Two-dimensional Systems of Differential Equations Warren Weckesser Department of Mathematics Colgate University February 2005 In these notes, we consider the linear system of

More information

One important way that you can classify differential equations is as linear or nonlinear.

One important way that you can classify differential equations is as linear or nonlinear. In This Chapter Chapter 1 Looking Closely at Linear First Order Differential Equations Knowing what a first order linear differential equation looks like Finding solutions to first order differential equations

More information

5.2 Infinite Series Brian E. Veitch

5.2 Infinite Series Brian E. Veitch 5. Infinite Series Since many quantities show up that cannot be computed exactly, we need some way of representing it (or approximating it). One way is to sum an infinite series. Recall that a n is the

More information

Introduction to numerical schemes

Introduction to numerical schemes 236861 Numerical Geometry of Images Tutorial 2 Introduction to numerical schemes Heat equation The simple parabolic PDE with the initial values u t = K 2 u 2 x u(0, x) = u 0 (x) and some boundary conditions

More information

p(t)dt a p(τ)dτ , c R.

p(t)dt a p(τ)dτ , c R. 11 3. Solutions of first order linear ODEs 3.1. Homogeneous and inhomogeneous; superposition. A first order linear equation is homogeneous if the right hand side is zero: (1) ẋ + p(t)x = 0. Homogeneous

More information

Strauss PDEs 2e: Section Exercise 4 Page 1 of 6

Strauss PDEs 2e: Section Exercise 4 Page 1 of 6 Strauss PDEs 2e: Section 5.3 - Exercise 4 Page of 6 Exercise 4 Consider the problem u t = ku xx for < x < l, with the boundary conditions u(, t) = U, u x (l, t) =, and the initial condition u(x, ) =, where

More information

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)

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) Numerical Methods - PROBLEMS. The Taylor series, about the origin, for log( + x) is x x2 2 + x3 3 x4 4 + Find an upper bound on the magnitude of the truncation error on the interval x.5 when log( + x)

More information

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra CS227-Scientific Computing Lecture 4: A Crash Course in Linear Algebra Linear Transformation of Variables A common phenomenon: Two sets of quantities linearly related: y = 3x + x 2 4x 3 y 2 = 2.7x 2 x

More information

In this section we extend the idea of Fourier analysis to multivariate functions: that is, functions of more than one independent variable.

In this section we extend the idea of Fourier analysis to multivariate functions: that is, functions of more than one independent variable. 7in x 1in Felder c9_online.tex V - January 24, 215 2: P.M. Page 9 9.8 Multivariate Fourier Series 9.8 Multivariate Fourier Series 9 In this section we extend the idea of Fourier analysis to multivariate

More information

Algebra Year 9. Language

Algebra Year 9. Language Algebra Year 9 Introduction In Algebra we do Maths with numbers, but some of those numbers are not known. They are represented with letters, and called unknowns, variables or, most formally, literals.

More information

Ordinary Differential Equations

Ordinary Differential Equations CHAPTER 8 Ordinary Differential Equations 8.1. Introduction My section 8.1 will cover the material in sections 8.1 and 8.2 in the book. Read the book sections on your own. I don t like the order of things

More information

REVIEW REVIEW. Quantum Field Theory II

REVIEW REVIEW. Quantum Field Theory II Quantum Field Theory II PHYS-P 622 Radovan Dermisek, Indiana University Notes based on: M. Srednicki, Quantum Field Theory Chapters: 13, 14, 16-21, 26-28, 51, 52, 61-68, 44, 53, 69-74, 30-32, 84-86, 75,

More information

Quantum Field Theory II

Quantum Field Theory II Quantum Field Theory II PHYS-P 622 Radovan Dermisek, Indiana University Notes based on: M. Srednicki, Quantum Field Theory Chapters: 13, 14, 16-21, 26-28, 51, 52, 61-68, 44, 53, 69-74, 30-32, 84-86, 75,

More information

c2 2 x2. (1) t = c2 2 u, (2) 2 = 2 x x 2, (3)

c2 2 x2. (1) t = c2 2 u, (2) 2 = 2 x x 2, (3) ecture 13 The wave equation - final comments Sections 4.2-4.6 of text by Haberman u(x,t), In the previous lecture, we studied the so-called wave equation in one-dimension, i.e., for a function It was derived

More information

1.6: 16, 20, 24, 27, 28

1.6: 16, 20, 24, 27, 28 .6: 6, 2, 24, 27, 28 6) If A is positive definite, then A is positive definite. The proof of the above statement can easily be shown for the following 2 2 matrix, a b A = b c If that matrix is positive

More information

Final year project. Methods for solving differential equations

Final year project. Methods for solving differential equations Final year project Methods for solving differential equations Author: Tej Shah Supervisor: Dr. Milan Mihajlovic Date: 5 th May 2010 School of Computer Science: BSc. in Computer Science and Mathematics

More information

Review of scalar field theory. Srednicki 5, 9, 10

Review of scalar field theory. Srednicki 5, 9, 10 Review of scalar field theory Srednicki 5, 9, 10 2 The LSZ reduction formula based on S-5 In order to describe scattering experiments we need to construct appropriate initial and final states and calculate

More information

Approximations of diffusions. Mathématiques appliquées (MATH0504-1) B. Dewals, Ch. Geuzaine

Approximations of diffusions. Mathématiques appliquées (MATH0504-1) B. Dewals, Ch. Geuzaine Lecture 3b Approximations of diffusions Mathématiques appliquées (MATH0504-1) B. Dewals, Ch. Geuzaine V1.1 04/10/2018 1 Learning objectives Become aware of the existence of stability conditions for the

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for solving higher order ODEs and

More information

Lecture 5: Single Step Methods

Lecture 5: Single Step Methods Lecture 5: Single Step Methods J.K. Ryan@tudelft.nl WI3097TU Delft Institute of Applied Mathematics Delft University of Technology 1 October 2012 () Single Step Methods 1 October 2012 1 / 44 Outline 1

More information

PDE: The Method of Characteristics Page 1

PDE: The Method of Characteristics Page 1 PDE: The Method of Characteristics Page y u x (x, y) + x u y (x, y) =, () u(, y) = cos y 2. Solution The partial differential equation given can be rewritten as follows: u(x, y) y, x =, (2) where = / x,

More information

MATH 552 Spectral Methods Spring Homework Set 5 - SOLUTIONS

MATH 552 Spectral Methods Spring Homework Set 5 - SOLUTIONS MATH 55 Spectral Methods Spring 9 Homework Set 5 - SOLUTIONS. Suppose you are given an n n linear system Ax = f where the matrix A is tridiagonal b c a b c. A =.........,. a n b n c n a n b n with x =

More information

BOUNDARY VALUE PROBLEMS

BOUNDARY VALUE PROBLEMS BOUNDARY VALUE PROBLEMS School of Mathematics Semester 1 2008 OUTLINE 1 REVIEW 2 BOUNDARY VALUE PROBLEMS 3 NEWTONS SHOOTING METHOD 4 SUMMARY OUTLINE 1 REVIEW 2 BOUNDARY VALUE PROBLEMS 3 NEWTONS SHOOTING

More information

Gregory's quadrature method

Gregory's quadrature method Gregory's quadrature method Gregory's method is among the very first quadrature formulas ever described in the literature, dating back to James Gregory (638-675). It seems to have been highly regarded

More information

Matrix-Exponentials. September 7, dx dt = ax. x(t) = e at x(0)

Matrix-Exponentials. September 7, dx dt = ax. x(t) = e at x(0) Matrix-Exponentials September 7, 207 In [4]: using PyPlot INFO: Recompiling stale cache file /Users/stevenj/.julia/lib/v0.5/LaTeXStrings.ji for module LaTeXString Review: Solving ODEs via eigenvectors

More information

Numerical Linear Algebra

Numerical Linear Algebra Numerical Linear Algebra Decompositions, numerical aspects Gerard Sleijpen and Martin van Gijzen September 27, 2017 1 Delft University of Technology Program Lecture 2 LU-decomposition Basic algorithm Cost

More information

Program Lecture 2. Numerical Linear Algebra. Gaussian elimination (2) Gaussian elimination. Decompositions, numerical aspects

Program Lecture 2. Numerical Linear Algebra. Gaussian elimination (2) Gaussian elimination. Decompositions, numerical aspects Numerical Linear Algebra Decompositions, numerical aspects Program Lecture 2 LU-decomposition Basic algorithm Cost Stability Pivoting Cholesky decomposition Sparse matrices and reorderings Gerard Sleijpen

More information

Solutions to Math 53 Math 53 Practice Final

Solutions to Math 53 Math 53 Practice Final Solutions to Math 5 Math 5 Practice Final 20 points Consider the initial value problem y t 4yt = te t with y 0 = and y0 = 0 a 8 points Find the Laplace transform of the solution of this IVP b 8 points

More information

Lecture 6: Differential Equations Describing Vibrations

Lecture 6: Differential Equations Describing Vibrations Lecture 6: Differential Equations Describing Vibrations In Chapter 3 of the Benson textbook, we will look at how various types of musical instruments produce sound, focusing on issues like how the construction

More information

Lecture 8: Ordinary Differential Equations

Lecture 8: Ordinary Differential Equations MIT-WHOI Joint Program Summer Math Review Summer 2015 Lecture 8: Ordinary Differential Equations Lecturer: Isabela Le Bras Date: 31 July 2015 Disclaimer: These notes are for the purposes of this review

More information

2.4 Eigenvalue problems

2.4 Eigenvalue problems 2.4 Eigenvalue problems Associated with the boundary problem (2.1) (Poisson eq.), we call λ an eigenvalue if Lu = λu (2.36) for a nonzero function u C 2 0 ((0, 1)). Recall Lu = u. Then u is called an eigenfunction.

More information

Continuum Limit and Fourier Series

Continuum Limit and Fourier Series Chapter 6 Continuum Limit and Fourier Series Continuous is in the eye of the beholder Most systems that we think of as continuous are actually made up of discrete pieces In this chapter, we show that a

More information

2 Introduction to perturbation methods

2 Introduction to perturbation methods 2 Introduction to perturbation methods 2.1 What are perturbation methods? Perturbation methods are methods which rely on there being a dimensionless parameter in the problem that is relatively small: ε

More information

6.4 Krylov Subspaces and Conjugate Gradients

6.4 Krylov Subspaces and Conjugate Gradients 6.4 Krylov Subspaces and Conjugate Gradients Our original equation is Ax = b. The preconditioned equation is P Ax = P b. When we write P, we never intend that an inverse will be explicitly computed. P

More information

Problem Set 1 October 30, 2017

Problem Set 1 October 30, 2017 1. e π can be calculated from e x = x n. But that s not a good approximation method. The n! reason is that π is not small compared to 1. If you want O(0.1) accuracy, then the last term you need to include

More information

Lecture4 INF-MAT : 5. Fast Direct Solution of Large Linear Systems

Lecture4 INF-MAT : 5. Fast Direct Solution of Large Linear Systems Lecture4 INF-MAT 4350 2010: 5. Fast Direct Solution of Large Linear Systems Tom Lyche Centre of Mathematics for Applications, Department of Informatics, University of Oslo September 16, 2010 Test Matrix

More information

20. The pole diagram and the Laplace transform

20. The pole diagram and the Laplace transform 95 0. The pole diagram and the Laplace transform When working with the Laplace transform, it is best to think of the variable s in F (s) as ranging over the complex numbers. In the first section below

More information

Chapter #4 EEE8086-EEE8115. Robust and Adaptive Control Systems

Chapter #4 EEE8086-EEE8115. Robust and Adaptive Control Systems Chapter #4 Robust and Adaptive Control Systems Nonlinear Dynamics.... Linear Combination.... Equilibrium points... 3 3. Linearisation... 5 4. Limit cycles... 3 5. Bifurcations... 4 6. Stability... 6 7.

More information

MA Macroeconomics 3. Introducing the IS-MP-PC Model

MA Macroeconomics 3. Introducing the IS-MP-PC Model MA Macroeconomics 3. Introducing the IS-MP-PC Model Karl Whelan School of Economics, UCD Autumn 2014 Karl Whelan (UCD) Introducing the IS-MP-PC Model Autumn 2014 1 / 38 Beyond IS-LM We have reviewed the

More information

Numerical algorithms for one and two target optimal controls

Numerical algorithms for one and two target optimal controls Numerical algorithms for one and two target optimal controls Sung-Sik Kwon Department of Mathematics and Computer Science, North Carolina Central University 80 Fayetteville St. Durham, NC 27707 Email:

More information

Name: INSERT YOUR NAME HERE. Due to dropbox by 6pm PDT, Wednesday, December 14, 2011

Name: INSERT YOUR NAME HERE. Due to dropbox by 6pm PDT, Wednesday, December 14, 2011 AMath 584 Name: INSERT YOUR NAME HERE Take-home Final UWNetID: INSERT YOUR NETID Due to dropbox by 6pm PDT, Wednesday, December 14, 2011 The main part of the assignment (Problems 1 3) is worth 80 points.

More information

(x 3)(x + 5) = (x 3)(x 1) = x + 5. sin 2 x e ax bx 1 = 1 2. lim

(x 3)(x + 5) = (x 3)(x 1) = x + 5. sin 2 x e ax bx 1 = 1 2. lim SMT Calculus Test Solutions February, x + x 5 Compute x x x + Answer: Solution: Note that x + x 5 x x + x )x + 5) = x )x ) = x + 5 x x + 5 Then x x = + 5 = Compute all real values of b such that, for fx)

More information

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes Math 660-Lecture 3: Gudonov s method and some theories for FVM schemes 1 The idea of FVM (You can refer to Chapter 4 in the book Finite volume methods for hyperbolic problems ) Consider the box [x 1/,

More information

Numerical Methods for Partial Differential Equations. CAAM 452 Spring 2005 Lecture 2 Instructor: Tim Warburton

Numerical Methods for Partial Differential Equations. CAAM 452 Spring 2005 Lecture 2 Instructor: Tim Warburton Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 2 Instructor: Tim Warburton Note on textbook for finite difference methods Due to the difficulty some students have experienced

More information

Phonon dispersion relation and density of states of a simple cubic lattice

Phonon dispersion relation and density of states of a simple cubic lattice Phonon dispersion relation and density of states of a simple cubic lattice Student project for the course Molecular and Solid State Physics by Eva Meisterhofer Contents 1 The linear spring model 3 1.1

More information

ODEs. September 7, Consider the following system of two coupled first-order ordinary differential equations (ODEs): A =

ODEs. September 7, Consider the following system of two coupled first-order ordinary differential equations (ODEs): A = ODEs September 7, 2017 In [1]: using Interact, PyPlot 1 Exponential growth and decay Consider the following system of two coupled first-order ordinary differential equations (ODEs): d x/dt = A x for the

More information

Math 425 Fall All About Zero

Math 425 Fall All About Zero Math 425 Fall 2005 All About Zero These notes supplement the discussion of zeros of analytic functions presented in 2.4 of our text, pp. 127 128. Throughout: Unless stated otherwise, f is a function analytic

More information

Note that we are looking at the true mean, μ, not y. The problem for us is that we need to find the endpoints of our interval (a, b).

Note that we are looking at the true mean, μ, not y. The problem for us is that we need to find the endpoints of our interval (a, b). Confidence Intervals 1) What are confidence intervals? Simply, an interval for which we have a certain confidence. For example, we are 90% certain that an interval contains the true value of something

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University A Model Problem and Its Difference Approximations 1-D Initial Boundary Value

More information

APPM 2360 Lab 3: Zombies! Due April 27, 2017 by 11:59 pm

APPM 2360 Lab 3: Zombies! Due April 27, 2017 by 11:59 pm APPM 2360 Lab 3: Zombies! Due April 27, 2017 by 11:59 pm 1 Introduction As you already know, in the past month, zombies have overrun much of North America, including all major cities on both the East and

More information

Copyright (c) 2006 Warren Weckesser

Copyright (c) 2006 Warren Weckesser 2.2. PLANAR LINEAR SYSTEMS 3 2.2. Planar Linear Systems We consider the linear system of two first order differential equations or equivalently, = ax + by (2.7) dy = cx + dy [ d x x = A x, where x =, and

More information

Chapter 3 Second Order Linear Equations

Chapter 3 Second Order Linear Equations Partial Differential Equations (Math 3303) A Ë@ Õæ Aë áöß @. X. @ 2015-2014 ú GA JË@ É Ë@ Chapter 3 Second Order Linear Equations Second-order partial differential equations for an known function u(x,

More information

The answer in each case is the error in evaluating the taylor series for ln(1 x) for x = which is 6.9.

The answer in each case is the error in evaluating the taylor series for ln(1 x) for x = which is 6.9. Brad Nelson Math 26 Homework #2 /23/2. a MATLAB outputs: >> a=(+3.4e-6)-.e-6;a- ans = 4.449e-6 >> a=+(3.4e-6-.e-6);a- ans = 2.224e-6 And the exact answer for both operations is 2.3e-6. The reason why way

More information

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series Definition 1 Fourier Series A function f is said to be piecewise continuous on [a, b] if there exists finitely many points a = x 1 < x 2

More information

Mathematics for Chemists 2 Lecture 14: Fourier analysis. Fourier series, Fourier transform, DFT/FFT

Mathematics for Chemists 2 Lecture 14: Fourier analysis. Fourier series, Fourier transform, DFT/FFT Mathematics for Chemists 2 Lecture 14: Fourier analysis Fourier series, Fourier transform, DFT/FFT Johannes Kepler University Summer semester 2012 Lecturer: David Sevilla Fourier analysis 1/25 Remembering

More information

CHAPTER 7: TECHNIQUES OF INTEGRATION

CHAPTER 7: TECHNIQUES OF INTEGRATION CHAPTER 7: TECHNIQUES OF INTEGRATION DAVID GLICKENSTEIN. Introduction This semester we will be looking deep into the recesses of calculus. Some of the main topics will be: Integration: we will learn how

More information

Summary of free theory: one particle state: vacuum state is annihilated by all a s: then, one particle state has normalization:

Summary of free theory: one particle state: vacuum state is annihilated by all a s: then, one particle state has normalization: The LSZ reduction formula based on S-5 In order to describe scattering experiments we need to construct appropriate initial and final states and calculate scattering amplitude. Summary of free theory:

More information

u(0) = u 0, u(1) = u 1. To prove what we want we introduce a new function, where c = sup x [0,1] a(x) and ɛ 0:

u(0) = u 0, u(1) = u 1. To prove what we want we introduce a new function, where c = sup x [0,1] a(x) and ɛ 0: 6. Maximum Principles Goal: gives properties of a solution of a PDE without solving it. For the two-point boundary problem we shall show that the extreme values of the solution are attained on the boundary.

More information

The Finite Difference Method

The Finite Difference Method Chapter 5. The Finite Difference Method This chapter derives the finite difference equations that are used in the conduction analyses in the next chapter and the techniques that are used to overcome computational

More information

Scientific Computing

Scientific Computing Scientific Computing Direct solution methods Martin van Gijzen Delft University of Technology October 3, 2018 1 Program October 3 Matrix norms LU decomposition Basic algorithm Cost Stability Pivoting Pivoting

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University The Implicit Schemes for the Model Problem The Crank-Nicolson scheme and θ-scheme

More information

1 GSW Sets of Systems

1 GSW Sets of Systems 1 Often, we have to solve a whole series of sets of simultaneous equations of the form y Ax, all of which have the same matrix A, but each of which has a different known vector y, and a different unknown

More information

Introduction to multiscale modeling and simulation. Explicit methods for ODEs : forward Euler. y n+1 = y n + tf(y n ) dy dt = f(y), y(0) = y 0

Introduction to multiscale modeling and simulation. Explicit methods for ODEs : forward Euler. y n+1 = y n + tf(y n ) dy dt = f(y), y(0) = y 0 Introduction to multiscale modeling and simulation Lecture 5 Numerical methods for ODEs, SDEs and PDEs The need for multiscale methods Two generic frameworks for multiscale computation Explicit methods

More information

PDEs in Spherical and Circular Coordinates

PDEs in Spherical and Circular Coordinates Introduction to Partial Differential Equations part of EM, Scalar and Vector Fields module (PHY2064) This lecture Laplacian in spherical & circular polar coordinates Laplace s PDE in electrostatics Schrödinger

More information

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

Introduction to Series and Sequences Math 121 Calculus II Spring 2015 Introduction to Series and Sequences Math Calculus II Spring 05 The goal. The main purpose of our study of series and sequences is to understand power series. A power series is like a polynomial of infinite

More information

221A Lecture Notes Convergence of Perturbation Theory

221A Lecture Notes Convergence of Perturbation Theory A Lecture Notes Convergence of Perturbation Theory Asymptotic Series An asymptotic series in a parameter ɛ of a function is given in a power series f(ɛ) = f n ɛ n () n=0 where the series actually does

More information

Finite difference method for elliptic problems: I

Finite difference method for elliptic problems: I Finite difference method for elliptic problems: I Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 560065 http://math.tifrbng.res.in/~praveen

More information

Marching on the BL equations

Marching on the BL equations Marching on the BL equations Harvey S. H. Lam February 10, 2004 Abstract The assumption is that you are competent in Matlab or Mathematica. White s 4-7 starting on page 275 shows us that all generic boundary

More information

Finite difference method for solving Advection-Diffusion Problem in 1D

Finite difference method for solving Advection-Diffusion Problem in 1D Finite difference method for solving Advection-Diffusion Problem in 1D Author : Osei K. Tweneboah MATH 5370: Final Project Outline 1 Advection-Diffusion Problem Stationary Advection-Diffusion Problem in

More information

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end. Math 307, Midterm 2 Winter 2013 Name: Instructions. DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end. There

More information

Multi-Factor Finite Differences

Multi-Factor Finite Differences February 17, 2017 Aims and outline Finite differences for more than one direction The θ-method, explicit, implicit, Crank-Nicolson Iterative solution of discretised equations Alternating directions implicit

More information

Linear Multistep Methods I: Adams and BDF Methods

Linear Multistep Methods I: Adams and BDF Methods Linear Multistep Methods I: Adams and BDF Methods Varun Shankar January 1, 016 1 Introduction In our review of 5610 material, we have discussed polynomial interpolation and its application to generating

More information

Mat1062: Introductory Numerical Methods for PDE

Mat1062: Introductory Numerical Methods for PDE Mat1062: Introductory Numerical Methods for PDE Mary Pugh January 13, 2009 1 Ownership These notes are the joint property of Rob Almgren and Mary Pugh 2 Boundary Conditions We now want to discuss in detail

More information

Properties of Arithmetic

Properties of Arithmetic Excerpt from "Prealgebra" 205 AoPS Inc. 4 6 7 4 5 8 22 23 5 7 0 Arithmetic is being able to count up to twenty without taking o your shoes. Mickey Mouse CHAPTER Properties of Arithmetic. Why Start with

More information

Learn how to use Desmos

Learn how to use Desmos Learn how to use Desmos Maclaurin and Taylor series 1 Go to www.desmos.com. Create an account (click on bottom near top right of screen) Change the grid settings (click on the spanner) to 1 x 3, 1 y 12

More information

Relevant sections from AMATH 351 Course Notes (Wainwright): 1.3 Relevant sections from AMATH 351 Course Notes (Poulin and Ingalls): 1.1.

Relevant sections from AMATH 351 Course Notes (Wainwright): 1.3 Relevant sections from AMATH 351 Course Notes (Poulin and Ingalls): 1.1. Lecture 8 Qualitative Behaviour of Solutions to ODEs Relevant sections from AMATH 351 Course Notes (Wainwright): 1.3 Relevant sections from AMATH 351 Course Notes (Poulin and Ingalls): 1.1.1 The last few

More information

Example. Evaluate. 3x 2 4 x dx.

Example. Evaluate. 3x 2 4 x dx. 3x 2 4 x 3 + 4 dx. Solution: We need a new technique to integrate this function. Notice that if we let u x 3 + 4, and we compute the differential du of u, we get: du 3x 2 dx Going back to our integral,

More information

WELL POSEDNESS OF PROBLEMS I

WELL POSEDNESS OF PROBLEMS I Finite Element Method 85 WELL POSEDNESS OF PROBLEMS I Consider the following generic problem Lu = f, where L : X Y, u X, f Y and X, Y are two Banach spaces We say that the above problem is well-posed (according

More information

PHYS 410/555 Computational Physics Solution of Non Linear Equations (a.k.a. Root Finding) (Reference Numerical Recipes, 9.0, 9.1, 9.

PHYS 410/555 Computational Physics Solution of Non Linear Equations (a.k.a. Root Finding) (Reference Numerical Recipes, 9.0, 9.1, 9. PHYS 410/555 Computational Physics Solution of Non Linear Equations (a.k.a. Root Finding) (Reference Numerical Recipes, 9.0, 9.1, 9.4) We will consider two cases 1. f(x) = 0 1-dimensional 2. f(x) = 0 d-dimensional

More information

Problem 1: Lagrangians and Conserved Quantities. Consider the following action for a particle of mass m moving in one dimension

Problem 1: Lagrangians and Conserved Quantities. Consider the following action for a particle of mass m moving in one dimension 105A Practice Final Solutions March 13, 01 William Kelly Problem 1: Lagrangians and Conserved Quantities Consider the following action for a particle of mass m moving in one dimension S = dtl = mc dt 1

More information

Appendix C: Recapitulation of Numerical schemes

Appendix C: Recapitulation of Numerical schemes Appendix C: Recapitulation of Numerical schemes August 31, 2009) SUMMARY: Certain numerical schemes of general use are regrouped here in order to facilitate implementations of simple models C1 The tridiagonal

More information

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

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y: 3 Algebraic Methods b The first appearance of the equation E Mc 2 in Einstein s handwritten notes. So far, the only general class of differential equations that we know how to solve are directly integrable

More information

A Brief Review of Elementary Ordinary Differential Equations

A Brief Review of Elementary Ordinary Differential Equations A A Brief Review of Elementary Ordinary Differential Equations At various points in the material we will be covering, we will need to recall and use material normally covered in an elementary course on

More information

DIFFERENTIAL EQUATIONS COURSE NOTES, LECTURE 2: TYPES OF DIFFERENTIAL EQUATIONS, SOLVING SEPARABLE ODES.

DIFFERENTIAL EQUATIONS COURSE NOTES, LECTURE 2: TYPES OF DIFFERENTIAL EQUATIONS, SOLVING SEPARABLE ODES. DIFFERENTIAL EQUATIONS COURSE NOTES, LECTURE 2: TYPES OF DIFFERENTIAL EQUATIONS, SOLVING SEPARABLE ODES. ANDREW SALCH. PDEs and ODEs, order, and linearity. Differential equations come in so many different

More information

Finite-Elements Method 2

Finite-Elements Method 2 Finite-Elements Method 2 January 29, 2014 2 From Applied Numerical Analysis Gerald-Wheatley (2004), Chapter 9. Finite-Elements Method 3 Introduction Finite-element methods (FEM) are based on some mathematical

More information

Chapter 6 Higher Dimensional Linear Systems

Chapter 6 Higher Dimensional Linear Systems hapter 6 Higher Dimensional Linear Systems Linear systems in R n : Observations: X x. x n X X a a n..... a n a nn ; Let T the the coordinate change matrix such that T T is in canonical form ;then Y T X

More information

Project One: C Bump functions

Project One: C Bump functions Project One: C Bump functions James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 2, 2018 Outline 1 2 The Project Let s recall what the

More information