Numerical Analysis Lecture Notes
|
|
|
- Harvey Oliver
- 9 years ago
- Views:
Transcription
1 Numerical Analysis Lecture Notes Peter J. Olver. Finite Difference Methods for Partial Differential Equations As you are well aware, most differential equations are much too complicated to be solved by an explicit analytic formula. Thus, the development of accurate numerical approximation schemes is essential for both extracting quantitative information as well as achieving a qualitative understanding of the behavior of their solutions. Even in cases, such as the heat and wave equations, where explicit solution formulas (either closed form or infinite series) exist, numerical methods still can be profitably employed. Indeed, the lessons learned in the design of numerical algorithms for solved examples are of inestimable value when confronting more challenging problems. Furthermore, one has the ability to accurately test a proposed numerical algorithm by running it on a known solution. Basic numerical solution schemes for partial differential equations fall into two broad categories. The first are the finite difference methods, obtained by replacing the derivatives in the equation by the appropriate numerical differentiation formulae. However, there is no guarantee that the resulting numerical scheme will accurately approximate the true solution, and further analysis is required to elicit bona fide, convergent numerical algorithms. We thus start with a brief discussion of simple finite difference formulae for numerically approximating low order derivatives of functions. The ensuing sections establish some of the most basic finite difference schemes for the heat equation, first order transport equations, and the second order wave equation. As we will see, not all finite difference approximations lead to accurate numerical schemes, and the issues of stability and convergence must be dealt with in order to distinguish valid from worthless methods. In fact, inspired by Fourier analysis, the basic stability criterion for a finite difference scheme is based on how the scheme handles complex exponentials. We will only introduce the most basic algorithms, leaving more sophisticated variations and extensions to a more thorough treatment, which can be found in numerical analysis texts, e.g., [5, 7, 29]... Finite Differences. In general, to approximate the derivative of a function at a point, say f (x) or f (x), one constructs a suitable combination of sampled function values at nearby points. The underlying formalism used to construct these approximation formulae is known as the calculus of finite differences. Its development has a long and influential history, dating 5/8/08 88 c 2008 Peter J. Olver
2 One-Sided Difference Figure.. Central Difference Finite Difference Approximations. back to Newton. The resulting finite difference numerical methods for solving differential equations have extremely broad applicability, and can, with proper care, be adapted to most problems that arise in mathematics and its many applications. The simplest finite difference approximation is the ordinary difference quotient u(x + h) u(x) h u (x), (.) used to approximate the first derivative of the function u(x). Indeed, if u is differentiable at x, then u (x) is, by definition, the limit, as h 0 of the finite difference quotients. Throughout our discussion, h, the step size, which may be either positive or negative, is assumed to be small: h. When h > 0, (.) is referred to as a forward difference, while h < 0 gives a backward difference. Geometrically, the difference quotient equals the slope of the secant line through the two points ( x, u(x) ) and ( x + h, u(x + h) ) on the graph of the function. For small h, this should be a reasonably good approximation to the slope of the tangent line, u (x), as illustrated in the first picture in Figure.. How close an approximation is the difference quotient? To answer this question, we assume that u(x) is at least twice continuously differentiable, and examine the first order Taylor expansion u(x + h) = u(x) + u (x) h + 2 u (ξ) h 2. (.2) We have used the Cauchy form for the remainder term, [2], in which ξ represents some point lying between x and x + h. The error or difference between the finite difference formula and the derivative being approximated is given by u(x + h) u(x) h u (x) = 2 u (ξ) h. (.3) Since the error is proportional to h, we say that the finite difference quotient (.3) is a first order approximation. When the precise formula for the error is not so important, we will write u u(x + h) u(x) (x) = + O(h). (.4) h The big Oh notation O(h) refers to a term that is proportional to h, or, more rigorously, bounded by a constant multiple of h as h 0. 5/8/08 89 c 2008 Peter J. Olver
3 Example.. Let u(x) = sin x. Let us try to approximate u () = cos = by computing finite difference quotients cos sin( + h) sin h The result for different values of h is listed in the following table. h approximation error We observe that reducing the step size by a factor of reduces the size of the error by 0 approximately the same factor. Thus, to obtain 0 decimal digits of accuracy, we anticipate needing a step size of about h = 0. The fact that the error is more of less proportional to the step size confirms that we are dealing with a first order numerical approximation. To approximate higher order derivatives, we need to evaluate the function at more than two points. In general, an approximation to the n th order derivative u (n) (x) requires at least n+ distinct sample points. For simplicity, we shall only use equally spaced points, leaving the general case to the exercises. For example, let us try to approximate u (x) by sampling u at the particular points x, x + h and x h. Which combination of the function values u(x h), u(x), u(x+h) should be used? The answer to such a question can be found by consideration of the relevant Taylor expansions u(x + h) = u(x) + u (x) h + u (x) h2 2 + u (x) h3 6 + O(h4 ), u(x h) = u(x) u (x) h + u (x) h2 2 u (x) h3 6 + O(h4 ), where the error terms are proportional to h 4. Adding the two formulae together gives Rearranging terms, we conclude that u(x + h) + u(x h) = 2u(x) + u (x) h 2 + O(h 4 ). u (x) =. (.5) u(x + h) 2u(x) + u(x h) h 2 + O(h 2 ), (.6) The result is known as the centered finite difference approximation to the second derivative of a function. Since the error is proportional to h 2, this is a second order approximation. Example.2. Let u(x) = e x2, with u (x) = (4x 2 + 2)e x2. Let us approximate u () = 6e = by using the finite difference quotient (.6): The results are listed in the following table. 6e e(+h)2 2e + e ( h)2 h 2. 5/8/08 90 c 2008 Peter J. Olver
4 h approximation error Each reduction in step size by a factor of 0 reduces the size of the error by a factor of and results in a gain of two new decimal digits of accuracy, confirming that the finite 00 difference approximation is of second order. However, this prediction is not completely borne out in practice. If we take h =.0000 then the formula produces the approximation , with an error of which is less accurate that the approximation with h =.000. The problem is that round-off errors have now begun to affect the computation, and underscores the difficulty with numerical differentiation. Finite difference formulae involve dividing very small quantities, which can induce large numerical errors due to round-off. As a result, while they typically produce reasonably good approximations to the derivatives for moderately small step sizes, to achieve high accuracy, one must switch to a higher precision. In fact, a similar comment applied to the previous Example., and our expectations about the error were not, in fact, fully justified as you may have discovered if you tried an extremely small step size. Another way to improve the order of accuracy of finite difference approximations is to employ more sample points. For instance, if the first order approximation (.4) to the first derivative based on the two points x and x+h is not sufficiently accurate, one can try combining the function values at three points x, x + h and x h. To find the appropriate combination of u(x h), u(x), u(x+h), we return to the Taylor expansions (.5). To solve for u (x), we subtract the two formulae, and so u(x + h) u(x h) = 2u (x)h + u (x) h3 3 + O(h4 ). Rearranging the terms, we are led to the well-known centered difference formula u (x) = u(x + h) u(x h) 2h + O(h 2 ), (.7) which is a second order approximation to the first derivative. Geometrically, the centered difference quotient represents the slope of the secant line through the two points ( x h, u(x h) ) and ( x + h, u(x + h) ) on the graph of u centered symmetrically about the point x. Figure. illustrates the two approximations; the advantages in accuracy in the centered difference version are graphically evident. Higher order approximations can be found by evaluating the function at yet more sample points, including, say, x+2h, x 2h, etc. This next computation depends upon the computer s precision; here we used single precision in Matlab. The terms O(h 4 ) do not cancel, since they represent potentially different multiples of h 4. 5/8/08 9 c 2008 Peter J. Olver
5 Example.3. Return to the function u(x) = sin x considered in Example.. The centered difference approximation to its derivative u () = cos = is cos The results are tabulated as follows: sin( + h) sin( h) 2h. h approximation error As advertised, the results are much more accurate than the one-sided finite difference approximation used in Example. at the same step size. Since it is a second order approximation, each reduction in the step size by a factor of 0 results in two more decimal places of accuracy. Many additional finite difference approximations can be constructed by similar manipulations of Taylor expansions, but these few very basic ones will suffice for our subsequent purposes. In the following subsection, we apply the finite difference formulae to develop numerical solution schemes for the heat and wave equations..2. Numerical Algorithms for the Heat Equation. Consider the heat equation u t = γ 2 u x 2, 0 < x < l, t 0, (.8) representing a bar of length l and constant thermal diffusivity γ > 0. To be concrete, we impose time-dependent Dirichlet boundary conditions u(t, 0) = α(t), u(t, l) = β(t), t 0, (.9) specifying the temperature at the ends of the bar, along with the initial conditions u(0, x) = f(x), 0 x l, (.0) specifying the bar s initial temperature distribution. In order to effect a numerical approximation to the solution to this initial-boundary value problem, we begin by introducing a rectangular mesh consisting of points (t i, x j ) with 0 = t 0 < t < t 2 < and 0 = x 0 < x < < x n = l. For simplicity, we maintain a uniform mesh spacing in both directions, with t = t i+ t i, x = x j+ x j = l n, representing, respectively, the time step size and the spatial mesh size. It will be essential that we do not a priori require the two to be the same. We shall use the notation u i,j u(t i, x j ) where t i = i t, x j = j x, (.) 5/8/08 92 c 2008 Peter J. Olver
6 to denote the numerical approximation to the solution value at the indicated mesh point. As a first attempt at designing a numerical method, we shall employ the simplest finite difference approximations to the derivatives. The second order space derivative is approximated by (.6), and hence 2 u x 2 (t i, x j ) u(t i, x j+ ) 2 u(t i, x j ) + u(t i, x j ) ( x) 2 + O ( ( x) ) 2 u i,j+ 2 u i,j + u i,j ( x) 2 + O ( ( x) 2 ), (.2) where the error in the approximation is proportional to ( x) 2. Similarly, the one-sided finite difference approximation (.4) is used to approximate the time derivative, and so u t (t i, x j ) u(t i+, x j ) u(t i, x j ) + O( t) u i+,j u i,j t t + O( t), (.3) where the error is proportion to t. In practice, one should try to ensure that the approximations have similar orders of accuracy, which leads us to choose t ( x) 2. Assuming x <, this requirement has the important consequence that the time steps must be much smaller than the space mesh size. Remark: At this stage, the reader might be tempted to replace (.3) by the second order central difference approximation (.7). However, this produces significant complications, and the resulting numerical scheme is not practical; see Exercise.2.. Replacing the derivatives in the heat equation (.4) by their finite difference approximations (.2), (.3), and rearranging terms, we end up with the linear system in which u i+,j = µu i,j+ + ( 2µ)u i,j + µu i,j, i = 0,, 2,..., j =,..., n, (.4) µ = γ t ( x) 2. (.5) The resulting numerical scheme takes the form of an iterative linear system, in which, starting at the initial time t 0, the solution values u i+,j u(t i+, x j ) at time t i+ are calculated from those at the preceding time t i. The initial condition (.0) means that we should initialize our numerical data by sampling the initial temperature at the mesh points: u 0,j = f j = f(x j ), j =,..., n. (.6) Similarly, the boundary conditions (.9) require that u i,0 = α i = α(t i ), u i,n = β i = β(t i ), i = 0,, 2,.... (.7) 5/8/08 93 c 2008 Peter J. Olver
7 For consistency, we should assume that the initial and boundary conditions agree at the corners of the domain: f 0 = f(0) = u(0, 0) = α(0) = α 0, f n = f(l) = u(0, l) = β(0) = β 0. The three equations (.4 7) completely prescribe the numerical approximation algorithm for solving the initial-boundary value problem (.8 0). Let us rewrite the scheme in a more transparent matrix form. First, let u (i) = ( u i,, u i,2,..., u i,n ) T ( u(ti, x ), u(t i, x 2 ),..., u(t i, x n ) ) T (.8) be the vector whose entries are the numerical approximations to the solution values at time t i at the interior nodes. We omit the boundary nodes x 0 = 0, x n = l, since those values are fixed by the boundary conditions (.9). Then (.4) has the form where 2µ µ µ 2µ µ A = µ µ 2µ µ u (i+) = Au (i) + b (i), (.9) µ µ 2µ µ α i 0, b (i) 0 =... (.20) 0 µ β i The coefficient matrix A is symmetric and tridiagonal. The contributions (.7) of the boundary nodes appear in the vector b (i). This numerical method is known as an explicit scheme since each iterate is computed directly without relying on solving an auxiliary equation unlike the implicit schemes to be discussed below. Example.4. Let us fix the diffusivity γ = and the bar length l =. For illustrative purposes, we take a spatial step size of x =.. In Figure.2 we compare two (slightly) different time step sizes on the initial data x, 0 x 5, u(0, x) = f(x) = x 2 5, 5 x 7 0, (.2) 7 x, 0 x. The first sequence uses the time step t = ( x) 2 =.0 and plots the solution at times t = 0.,.02,.04. The numerical solution is already showing signs of instability, and indeed soon thereafter becomes completely wild. The second sequence takes t =.005 and plots the solution at times t = 0.,.025,.05. (Note that the two sequences of plots have different vertical scales.) Even though we are employing a rather coarse mesh, the numerical solution is not too far away from the true solution to the initial value problem. 5/8/08 94 c 2008 Peter J. Olver
8 Figure.2. Numerical Solutions for the Heat Equation Based on the Explicit Scheme. In light of this calculation, we need to understand why our scheme sometimes gives reasonable answers but at other times utterly fails. To this end, we investigate the effect of the numerical scheme on simple functions. As we know, the general solution to the heat equation can be decomposed into a sum over the various Fourier modes. Thus, we can concentrate on understanding what the numerical scheme does to an individual complex exponential function, bearing in mind that we can then reconstruct the cumulative effect by taking suitable linear combinations. Suppose that, at a time t = t i, the solution is a pure exponential u(t i, x) = e i kx, and so u i,j = u(t i, x j ) = e i kx j. (.22) Substituting these values into our numerical equations (.4), we find the updated value at time t i+ is also an exponential: where u i+,j = µu i,j+ + ( 2µ)u i,j + µu i,j = µe i kx j+ + ( 2µ)e i kx j + µe i kx j = µe i k(x j+ x) + ( 2µ)e i kx j + µe i k(x j x) = λe i kx j, (.23) λ = µe i k x + ( 2µ) + µe i k x = 2µ( cos k x) = 4µ sin 2 2 k x. (.24) Thus, the effect of a single step of the numerical scheme is to multiply the complex exponential (.22) by the so-called magnification factor λ: u(t i+, x) = λe i kx, and so u i+,j = u(t i+, x j ) = λe i kx j. (.25) As usual, complex exponentials are much easier to work with than real trigonometric functions. 5/8/08 95 c 2008 Peter J. Olver
9 In other words, e i kx assumes the role of an eigenfunction, with the magnification factor λ being the corresponding eigenvalue, of the linear operator governing each step of the numerical scheme. Continuing, we find that the effect of n further iterations of the scheme is to multiply the exponential by the n th power of the magnification factor: u(t i+n, x) = λ n e i kx. (.26) Thus, the stability of the scheme will be governed by the size of the magnification factor. If λ >, then λ n is exponentially growing as n, and so the numerical solutions (.26) become unbounded as t. This is clearly incompatible with the analytical behavior of solutions to the heat equation, and so a necessary condition for the stability of our numerical scheme is that its magnification factor satisfy λ. (.27) This method of stability analysis was developed by the mid-twentieh century Hungarian mathematician and father of the electronic computer John von Neumann. The stability criterion (.27) effectively distinguishes the stable, and hence valid numerical algorithms from the unstable, and hence worthless schemes. For the particular case (.24), the von Neumann stability criterion requires µ = γ t ( x) ( x)2, or t, (.28) 2 2 2γ and thus restricts the allowable time step size. For instance, if we have x =.0, and γ =, then we can only use a time step size t.00005, which is minuscule. It would take an inordinately large number of time steps to compute the value of the solution at even a moderate times, e.g., t =. Moreover, owing to the limited accuracy of computers, the propagation of round-off errors might then cause a significant reduction in the overall accuracy of the final solution values. Since not all choices of space and time steps lead to a convergent scheme, the explicit scheme (.4) is called conditionally stable. An unconditionally stable method one that does not restrict the time step can be constructed by using the backwards difference formula u t (t i, x j ) u(t i, x j ) u(t i, x j ) + O ( ( t) 2 ) (.29) t to approximate the time derivative. Substituting (.29) and the same approximation (.2) for u xx into the heat equation, and then replacing i by i +, leads to the iterative system i = 0,, 2,..., µu i+,j+ + ( + 2µ)u i+,j µu i+,j = u i,j, j =,..., n, (.30) where the parameter µ = γ t/( x) 2 is as above. The initial and boundary conditions also have the same form (.6, 7). The system can be written in the matrix form Âu (i+) = u (i) + b (i+), (.3) 5/8/08 96 c 2008 Peter J. Olver
10 Figure.3. Numerical Solutions for the Heat Equation Based on the Implicit Scheme. where  is obtained from the matrix A in (.20) by replacing µ by µ. This serves to define an implicit scheme, since we have to solve a linear system of algebraic equations at each step in order to compute the next iterate u (i+). However, as the coefficient matrix  is tridiagonal, the system can be solved very rapidly, [42], and so speed is not a significant issue in the practical implementation of this implicit scheme. Let us apply the von Neumann analysis to investigate the stability of the implicit scheme. Again, we need only look at the effect of the scheme on a complex exponential. Substituting (.22, 25) into (.30) and canceling the common exponential factor leads to the equation λ ( µe i k x + + 2µ µe ) i k x =. We solve for the magnification factor λ = + 2µ ( cos k x ) = + 4µ sin 2. (.32) 2 k x Since µ > 0, the magnification factor always less than in absolute value, and so the stability criterion (.27) is satisfied for any choice of step sizes. We conclude that the implicit scheme (.4) is unconditionally stable. Example.5. Consider the same initial-boundary value problem considered in Example.4. In Figure.3, we plot the numerical solutions obtained using the implicit scheme. The initial data is not displayed, but we graph the numerical solutions at times t =.2,.4,.6 with a mesh size of x =.. On the top line, we use a time step of t =.0, while on the bottom t =.005. Unlike the explicit scheme, there is very little difference between the two both come much closer to the actual solution than the explicit scheme. Indeed, even significantly larger time steps give reasonable numerical approximations to the solution. Another popular numerical scheme for solving the heat equation is the Crank Nicolson method u i+,j u i,j = 2 µ(u i+,j+ 2 u i+,j + u i+,j + u i,j+ 2 u i,j + u i,j ). (.33) 5/8/08 97 c 2008 Peter J. Olver
11 Figure.4. Numerical Solutions for the Heat Equation Based on the Crank Nicolson Scheme. which can be obtained by averaging the explicit and implicit schemes (.4, 30). We can write (.33) in matrix form B u (i+) = C u (i) ( + 2 b (i) + b (i+) ), where + µ 2 µ µ 2 µ + µ 2 µ 2 µ B = 2 µ......, C = 2 µ µ 2 µ 2 µ (.34) Applying the von Neumann analysis as before, we deduce that the magnification factor has the form λ = 2µ sin2 2 k x + 2µ sin 2. (.35) 2 k x Since µ > 0, then λ for all choices of step size, and so the Crank Nicolson scheme is also unconditionally stable. A detailed analysis will show that the errors are of the order of ( t) 2 and ( x) 2, and so it is reasonable to choose the time step to have the same order of magnitude as the space step, t x. This gives the Crank Nicolson scheme one advantage over the previous two methods. However, applying it to the initial value problem considered earlier points out a significant weakness. Figure.4 shows the result of running the scheme on the initial data (.2). The top row has space and time step sizes t = x =., and does a rather poor job replicating the solution. The second row uses t = x =.0, and performs better except near the corners where an annoying and incorrect local time oscillation persists as the solution decays. Indeed, unlike the implicit scheme, the Crank Nicolson method fails to rapidly damp out the high frequency modes associated with small scale features such as discontinuities and corners in the initial data. In such situations, a good strategy is to first evolve using the implicit scheme until the small scale noise is dissipated away, and then switch to Crank Nicolson to use a much larger time step for the final large scale changes. 5/8/08 98 c 2008 Peter J. Olver
12 .3. Numerical Solution Methods for First Order Partial Differential Equations. We begin with the initial value problem for the elementary constant coefficient transport equation u t + c u x = 0, u(0, x) = f(x). (.36) The solution is a simple traveling wave u(t, x) = f(x ct), (.37) that is constant along the characteristic lines of slope c in the t x plane. Although the analytical solution is completely elementary, there will be valuable lessons to be learned from an attempt to reproduce it by numerical approximation. Indeed, each of the numerical schemes developed below has an evident adaptation to transport equations with variable wave speeds c(t, x), and even to nonlinear transport equations whose wave speed depends on the solution u and can admit shock wave solutions. As usual, we restrict our attention to a regular mesh (t i, x j ) with uniform time and space step sizes t = t i+ t i and x = x j+ x j. We use u i,j u(t i, x j ) to denote our numerical approximation to the solution u(t, x) at the indicated mesh point. The most elementary numerical solution scheme is obtained by replacing the time and space derivatives in the transport equation by their first order finite difference approximations (.): u t (t i, x j ) u i+,j u i,j t + O( t), The result is the explicit numerical scheme in which the parameter u x (t i, x j ) u i,j+ u i,j x + O( x). (.38) u i+,j = σu i,j+ + (σ + )u i,j, (.39) σ = c t x (.40) depends upon the wave speed and the ratio of space and time step sizes. Since we are employing first order approximations to both derivatives, we should choose the time and space step sizes to be of comparable size t x. When working on a bounded interval, say 0 x l, we will need to specify a value for the numerical solution at the left end, e.g., setting u i,n = 0; this corresponds to imposing the boundary condition u(t, l) = 0. In Figure.5, we plot the solutions arising from the following initial conditions u(0, x) = f(x) =.4 e 300(x.5)2 +. e 300(x.65)2, (.4) at times t = 0,.5 and.3. We use step sizes t = x =.005, and try four different values of the wave speed. The cases c =.5 and c =.5 are clearly exhibiting some form of numerical instability. The numerical solution c =.5 is a bit more reasonable, although one can already observe some degradation due to the relatively low accuracy of the scheme. 5/8/08 99 c 2008 Peter J. Olver
13 c = c = c = 0.7 c =.5 Figure.5. Numerical Solutions to the Transport Equation. This can be overcome by selecting a smaller step size. The case c = looks particularly good but this is an accident. The analytic solution also happens to be an exact solution to the numerical equations, and so the only possible source of error is round-off. The are two ways to understand the observed numerical instability. First, we recall the exact solution is constant along the characteristic lines x = ct + ξ, and hence the value of u(t, x) only depends on the initial value f(ξ) at the point ξ = x ct. On the other hand, at time t = t n, the numerical solution u n,j u(t n, x j ) computed using (.39) depends on the values of u n,j and u n,j+. The latter two values have been 5/8/ c 2008 Peter J. Olver
14 x x t t Stable Figure.6. The CFL Condition. Unstable computed from the previous approximations u n 2,j, u n 2,j+, u n 2,j+2. And so on. Going all the way back to the initial time t 0 = 0, we find that u n,j depends on the initial values u 0,j = f(x j ),..., u 0,j+n = f(x j + n x) at the mesh points lying in the interval x j x x j + n x. On the other hand, the actual solution u(t n, x j ) depends only on the value of f(ξ) where ξ = x j ct n = x j cn t. Thus, if ξ lies outside the interval [x j, x j + n x], then varying the initial condition f(x) nearby x = ξ will change the solution value u(t n, x j ) without affecting its numerical approximation u n,j at all! So the numerical scheme cannot possibly provide an accurate approximation to the solution value. As a result, we must require x j ξ = x j cn t x j + n x, and hence 0 cn t n x, which we rewrite as 0 σ = c t x, or, equivalently, x t c 0. (.42) This is the simplest manifestation of the Courant Friedrichs Lewy condition, or CFL condition for short, established in the 950 s by three of the pioneers in the development of numerical solutions schemes for hyperbolic partial differential equations. Note that the CFL condition requires that the wave speed be negative, but not too negative. For negative wave speeds, the method is conditionally stable, since stability restricts the possible time step sizes. The CFL condition can be recast in a more geometrically transparent manner as follows. For the finite difference scheme (.39), the numerical domain of dependence of a point (t n, x j ) is the triangle T (tn,x j ) = { (t, x) 0 t tn, x j x x j + t n t }. (.43) 5/8/08 20 c 2008 Peter J. Olver
15 The reason for this term is that the numerical approximation to the solution at (t n, x j ) depends on the computed values at the mesh points lying within its numerical domain of dependence; see Figure.6. The CFL condition (.42) requires that, for 0 t t i, the characteristic passing through the point (t n, x j ) lies entirely within the numerical domain of dependence (.43). If the characteristic ventures outside the domain, then the scheme will be numerically unstable. With this geometric formulation, the CFL criterion can be applied to both linear and nonlinear transport equations that have non-uniform wave speeds. The CFL criterion (.42) is reconfirmed by a von Neumann stability analysis. We test the numerical scheme on an exponential function, as in (.22, 25): Substituting into (.39) leads to u i,j = e i kx j, u i+,j = λe i kx, (.44) λe i kx = σe i kx j+ + (σ + )e i kx j = ( σe i k x + σ + ) e i kx j. The resulting magnification factor λ = + σ ( e i k x ) satisfies the stability criterion (.27) if and only if λ 2 = + 2σ(σ + )( cos(k x)), for all k. Thus, stability requires that σ 0, in complete accord with the CFL condition (.42). To obtain a finite difference scheme that can be used for positive wave speeds, we replace the forward finite difference approximation to u/ x by the corresponding backwards difference quotient (.) with h = x leading to the alternative first order numerical scheme u i+,j = ( σ)u i,j + σu i,j, (.45) where σ = c t/ x is as above. A similar analysis, left to the reader, produces the corresponding stability criterion 0 σ = c t x, now permitting a positive range of wave speeds. In this manner, we have produced one numerical scheme that works for a range of negative wave speeds, and an alternative scheme for positive speeds. The question arises particularly when one is desaling with equations with variable wave speeds whether one can devise a scheme that is (conditionally) stable for both positive and negative wave speeds. One might be tempted to use the centered difference approximation (.7) for u x (t i, x j ) u i,j+ u i,j x + O ( ( x) 2 ). (.46) 5/8/ c 2008 Peter J. Olver
16 Figure.7. The CFL Condition for the Centered Difference Scheme t =.5 Figure.8. t =.3 t =.45 Centered Difference Numerical Solution to the Transport Equation. Substituting this and the previous approximation to the time derivative into (.36) leads to the numerical scheme u i+,j = 2 σu i,j+ + u i,j + 2 σu i,j, (.47) where σ = c k/h is the same as above. In this case, the numerical domain of dependence of the mesh point (t n, x j ) consists of the mesh points in the triangle T (tn,x j ) = { (t, x) 0 t tn, x j t n + t x x j + t n t }. (.48) The CFL condition asks that, for 0 t t n, the characteristic going through (t n, x j ) lie within this triangle, as in Figure.7, which requires σ = c t x x, or, equivalently, c t. (.49) Unfortunately, although it satisfies the CFL condition over this range of wave speeds, the centered difference scheme is, in fact, always unstable! For instance, the instability of the numerical solution to the preceding initial value problem (.4) for c = can be seen in Figure.8. This is confirmed by applying the von Neumann analysis: We 5/8/ c 2008 Peter J. Olver
17 substitute (.44) into (.47), and cancel the common exponential factors. The resulting magnification factor λ = i σ sin(k x) satisfies λ > except when σ = 0, which would mean c = 0. Thus, the centered difference scheme (.47) is unstable for all (nonzero) wave speeds! One elementary means of overcoming the sign restriction on the wave speed is to use the forward difference scheme (.39) when the wave speed is negative and the backwards scheme (.45) when it is positive. The resulting scheme, valid for varying wave speeds c(t, x), u i+,j = { σui,j+ + (σ + )u i,j, c 0, ( σ)u i,j + σu i,j, c > 0, where σ = c t x, c = c i,j = c(t i, x j ), (.50) is known as the upwind scheme, since the second mesh point always lies upwind that is away from the direction of motion of the reference point (t i, x j ). The upwind scheme works reasonably well over short time intervals assuming the space step size is chose sufficiently small and the time step satisfies the CFL condition (.42). However, over longer time intervals, as we already observed in Figure.5, it tends to exhibit an unacceptable rate of damping of waves or, alternatively, require an unacceptably small step size. One way of overcoming this defect is to use the popular Lax Wendroff scheme u i+,j = 2 σ( + σ)u i,j+ + ( σ2 )u i,j 2 σ( σ)u i,j, (.5) which is based on a quadratic approximation to the derivatives, [39]. The stability analysis of this scheme is relegated to the exercises..4. Numerical Solution Methods for the Wave Equation. Let us now develop the basic numerical solution techniques for the second order wave equation. As above, although we are in possession of the explicit d Alembert solution formula, the lessons learned in designing stable schemes in this simple case will carry over to more complicated equations, including inhomogeneous media and higher dimensional problems, where analytic solution formulas are no longer readily available. Consider the wave equation 2 u t 2 = c2 2 u x 2, 0 < x < l, t 0, (.52) modeling vibrations of a homogeneous bar of length l with constant wave speed c > 0. We impose Dirichlet boundary conditions u(t, 0) = α(t), u(t, l) = β(t), t 0, (.53) Unless sin(k x) = 0, but we need the stability criterion to hold for all values of k. 5/8/ c 2008 Peter J. Olver
18 along with the usual initial conditions u(0, x) = f(x), We adopt the same uniformly spaced mesh as before u t (0, x) = g(x), 0 x l. (.54) t i = i t, x j = j x, where x = l n. In order to discretize the wave equation, we replace the second order derivatives by their standard finite difference approximations (.6), namely 2 u t (t 2 i, x j ) u(t i+, x j ) 2u(t i, x j ) + u(t i, x j ) + O ( ( t) 2 ), ( t) 2 2 u x (t 2 i, x j ) u(t i, x j+ ) 2u(t i, x j ) + u(t i, x j ) + O ( ( x) 2 ), ( x) 2 (.55) Since the errors are of orders of ( t) 2 and ( x) 2, we expect to be able to choose the space and time step sizes of comparable magnitude: t x. Substituting the finite difference formulae (.55) into the partial differential equation (.52), and rearranging terms, we are led to the iterative system u i+,j = σ 2 u i,j+ + 2 ( σ 2 ) u i,j + σ 2 u i,j u i,j, i =, 2,..., j =,..., n, (.56) for the numerical approximations u i,j u(t i, x j ) to the solution values at the mesh points. The positive parameter σ = c t x > 0 (.57) depends upon the wave speed and the ratio of space and time step sizes. The boundary conditions (.53) require that u i,0 = α i = α(t i ), u i,n = β i = β(t i ), i = 0,, 2,.... (.58) This allows us to rewrite the system in matrix form where B = 2 ( σ 2 ) σ 2 σ 2 2 ( σ 2 ) σ 2 u (i+) = Bu (i) u (i ) + b (i), (.59) u i, σ 2 α i u i,2 0., b (i) =... u i,n 2 0. σ 2 2 ( σ 2 ) u ii,n σ 2 β i (.60) σ σ 2 5/8/ c 2008 Peter J. Olver
19 The entries of u (i) are, as in (.8), the numerical approximations to the solution values at the interior nodes. Note that (.59) describes a second order iterative scheme, since computing the next iterate u (i+) requires the value of the preceding two, u (i) and u (i ). The one subtlety is how to get the method started. We know u (0) since u 0,j = f j = f(x j ) is determined by the initial position. However, we also need to find u () with entries u,j u( t, x j ) at time t = t in order launch the iteration and compute u (2),u (3),..., but the initial velocity u t (0, x) = g(x) prescribes the derivatives u t (0, x j ) = g j = g(x j ) at time t 0 = 0 instead. One way to resolve this difficulty would be to utilize the finite difference approximation to compute the required values g j = u t (0, x j ) u( t, x j ) u(0, x j ) t u,j = f j + t g j. u,j f j t (.6) However, the approximation (.6) is only accurate to order t, whereas the rest of the scheme has errors proportional to ( t) 2. The effect would be to introduce an unacceptably large error at the initial step. To construct an initial approximation to u () with error on the order of ( t) 2, we need to analyze the local error in (.6) in more detail. Note that, by Taylor s theorem, u( t, x j ) u(0, x j ) t = u t (0, x j ) + t 2 u 2 t (0, x 2 j ) + O( ( t) ) 2 = u t (0, x j ) + c2 t 2 u 2 x 2 (0, x j ) + O( ( t) ) 2, where, in the final equality, we have used the fact that u(t, x) solves the wave equation. Therefore, we find u,j = u( t, x j ) u(0, x j ) + t u t (0, x j ) + c2 ( t) 2 2 u 2 x (0, x 2 j ) = f(x j ) + t g(x j ) + c2 ( t) 2 f (x 2 j ) f j + t g j + c2 ( t) 2 2( x) 2 (f j+ 2f j + f j ), where we can use the finite difference approximation (.6) for the second derivative of f(x) if no explicit formula is known. Therefore, when we initiate the scheme by setting or, in matrix form, u,j = 2 σ2 f j+ + ( σ 2 )f j + 2 σ2 f j + t g j, (.62) u (0) = f, u () = 2 Bu(0) + tg + 2 b(0), (.63) we will have maintained the desired order ( t) 2 (and ( x) 2 ) accuracy. 5/8/ c 2008 Peter J. Olver
20 Figure.9. Numerically Stable Waves Figure.0. Numerically Unstable Waves. Example.6. Consider the particular initial value problem u tt = u xx, u(0, x) = e 400(x.3)2, u t (0, x) = 0, u(t, 0) = u(, 0) = 0, 0 x, t 0, subject to homogeneous Dirichlet boundary conditions on the interval [ 0, ]. The initial data is a fairly concentrated single hump centered at x =.3, and we expect it to split into two half sized humps, which then collide with the ends. Let us choose a space discretization consisting of 90 equally spaced points, and so x = = If we choose a time 90 step of t =.0, whereby σ =.9, then we get reasonably accurate solution over a fairly long time range, as plotted in Figure.9 at times t = 0,.,.2,...,.5. On the other hand, if we double the time step, setting t =.02, so σ =.8, then, as plotted in Figure.0 at times t = 0,.05,.,.4,.6,.8, we observe an instability that eventually overwhelms the numerical solution. Thus, the numerical scheme appears to only be conditionally stable. 5/8/ c 2008 Peter J. Olver
21 Stable Figure.. Unstable The CFL Condition for the Wave Equation. The stability analysis of this numerical scheme proceeds along the same lines as in the first order case. The CFL condition for stability requires that the characteristics emanating from a mesh point (t n, x j ) must, for 0 t t n, remain in its numerical domain of dependence, which, for our particular numerical scheme, is the same triangle T (tn,x j ) = { (t, x) 0 t tn, x j t n + t x x j + t n t }, that we plotted Figure.. Since the characteristics are the lines of slope ±c, the CFL condition is the same as in (.49): σ = c t x, or, equivalently, 0 c x t. (.64) This explains the difference between the numerically stable and unstable cases exhibited above. However, as we noted above, the CFL condition is only necessary for stability of the numerical scheme; one should perform a von Neumann stability analysis for a complete verification. Inspired by fourier analysis, the goal is to determine how the scheme affects complex exponentials. Specifically, after one time step, the scheme has the effect of multiplying a complex exponential e i kx by the (local) magnification factor λ = λ(k). In this case, we set u i,j = e i kx j, u i,j = λ e i kx j, u i+,j = λ 2 e i kx j, (.65) since going from t i to t i multiplies the exponential by λ, and from t i to t i+ multiplies by an additional factor λ. Substituting (.65) into (.56) and canceling the common exponential, we find that each magnification factor must satisfy the following quadratic equation: λ 2 = ( 2 4σ 2 sin 2 2 k x ) λ +, Stability is a long term effect, and so we need not concern ourselves with the anomalous first time step. 5/8/ c 2008 Peter J. Olver
22 whence λ = α ± α 2, where α = 2σ 2 sin 2 k x. (.66) 2 Thus, there are two different magnification factors associated with each complex exponential which is a consequence of the scheme being of second order. Stability requires that both be in modulus. Now, if the CFL condition (.64) holds, then α, which implies that the magnification factors (.66) are complex numbers of modulus λ =, and thus the numerical scheme satisfies the stability criterion (.27). On the other hand, if σ >, then, for some values of k, we have α <, which implies that the two factors (.66) are both real, one of which is <, and thus violates the stability criterion. Thus, the CFL condition (.64) does indeed distinguish between the (conditionally) stable and unstable numerical schemes for the wave equation. 5/8/ c 2008 Peter J. Olver
Second Order Linear Partial Differential Equations. Part I
Second Order Linear Partial Differential Equations Part I Second linear partial differential equations; Separation of Variables; - point boundary value problems; Eigenvalues and Eigenfunctions Introduction
The Heat Equation. Lectures INF2320 p. 1/88
The Heat Equation Lectures INF232 p. 1/88 Lectures INF232 p. 2/88 The Heat Equation We study the heat equation: u t = u xx for x (,1), t >, (1) u(,t) = u(1,t) = for t >, (2) u(x,) = f(x) for x (,1), (3)
7 Gaussian Elimination and LU Factorization
7 Gaussian Elimination and LU Factorization In this final section on matrix factorization methods for solving Ax = b we want to take a closer look at Gaussian elimination (probably the best known method
4.3 Lagrange Approximation
206 CHAP. 4 INTERPOLATION AND POLYNOMIAL APPROXIMATION Lagrange Polynomial Approximation 4.3 Lagrange Approximation Interpolation means to estimate a missing function value by taking a weighted average
Fourth-Order Compact Schemes of a Heat Conduction Problem with Neumann Boundary Conditions
Fourth-Order Compact Schemes of a Heat Conduction Problem with Neumann Boundary Conditions Jennifer Zhao, 1 Weizhong Dai, Tianchan Niu 1 Department of Mathematics and Statistics, University of Michigan-Dearborn,
An Introduction to Partial Differential Equations
An Introduction to Partial Differential Equations Andrew J. Bernoff LECTURE 2 Cooling of a Hot Bar: The Diffusion Equation 2.1. Outline of Lecture An Introduction to Heat Flow Derivation of the Diffusion
1 Error in Euler s Method
1 Error in Euler s Method Experience with Euler s 1 method raises some interesting questions about numerical approximations for the solutions of differential equations. 1. What determines the amount of
5 Numerical Differentiation
D. Levy 5 Numerical Differentiation 5. Basic Concepts This chapter deals with numerical approximations of derivatives. The first questions that comes up to mind is: why do we need to approximate derivatives
1 The Brownian bridge construction
The Brownian bridge construction The Brownian bridge construction is a way to build a Brownian motion path by successively adding finer scale detail. This construction leads to a relatively easy proof
Nonlinear Algebraic Equations. Lectures INF2320 p. 1/88
Nonlinear Algebraic Equations Lectures INF2320 p. 1/88 Lectures INF2320 p. 2/88 Nonlinear algebraic equations When solving the system u (t) = g(u), u(0) = u 0, (1) with an implicit Euler scheme we have
5.4 The Heat Equation and Convection-Diffusion
5.4. THE HEAT EQUATION AND CONVECTION-DIFFUSION c 6 Gilbert Strang 5.4 The Heat Equation and Convection-Diffusion The wave equation conserves energy. The heat equation u t = u xx dissipates energy. The
Inner Product Spaces
Math 571 Inner Product Spaces 1. Preliminaries An inner product space is a vector space V along with a function, called an inner product which associates each pair of vectors u, v with a scalar u, v, and
Metric Spaces. Chapter 7. 7.1. Metrics
Chapter 7 Metric Spaces A metric space is a set X that has a notion of the distance d(x, y) between every pair of points x, y X. The purpose of this chapter is to introduce metric spaces and give some
1.7 Graphs of Functions
64 Relations and Functions 1.7 Graphs of Functions In Section 1.4 we defined a function as a special type of relation; one in which each x-coordinate was matched with only one y-coordinate. We spent most
Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 10
Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 10 Boundary Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction
Continued Fractions and the Euclidean Algorithm
Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction
Eigenvalues, Eigenvectors, and Differential Equations
Eigenvalues, Eigenvectors, and Differential Equations William Cherry April 009 (with a typo correction in November 05) The concepts of eigenvalue and eigenvector occur throughout advanced mathematics They
N 1. (q k+1 q k ) 2 + α 3. k=0
Teoretisk Fysik Hand-in problem B, SI1142, Spring 2010 In 1955 Fermi, Pasta and Ulam 1 numerically studied a simple model for a one dimensional chain of non-linear oscillators to see how the energy distribution
In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.
MATHEMATICS: THE LEVEL DESCRIPTIONS In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data. Attainment target
Unified Lecture # 4 Vectors
Fall 2005 Unified Lecture # 4 Vectors These notes were written by J. Peraire as a review of vectors for Dynamics 16.07. They have been adapted for Unified Engineering by R. Radovitzky. References [1] Feynmann,
4.5 Linear Dependence and Linear Independence
4.5 Linear Dependence and Linear Independence 267 32. {v 1, v 2 }, where v 1, v 2 are collinear vectors in R 3. 33. Prove that if S and S are subsets of a vector space V such that S is a subset of S, then
1 Solving LPs: The Simplex Algorithm of George Dantzig
Solving LPs: The Simplex Algorithm of George Dantzig. Simplex Pivoting: Dictionary Format We illustrate a general solution procedure, called the simplex algorithm, by implementing it on a very simple example.
MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.
MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column
a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.
Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given
Big Ideas in Mathematics
Big Ideas in Mathematics which are important to all mathematics learning. (Adapted from the NCTM Curriculum Focal Points, 2006) The Mathematics Big Ideas are organized using the PA Mathematics Standards
Numerical Methods for Differential Equations
Numerical Methods for Differential Equations Course objectives and preliminaries Gustaf Söderlind and Carmen Arévalo Numerical Analysis, Lund University Textbooks: A First Course in the Numerical Analysis
DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents
DIFFERENTIABILITY OF COMPLEX FUNCTIONS Contents 1. Limit definition of a derivative 1 2. Holomorphic functions, the Cauchy-Riemann equations 3 3. Differentiability of real functions 5 4. A sufficient condition
Class Meeting # 1: Introduction to PDEs
MATH 18.152 COURSE NOTES - CLASS MEETING # 1 18.152 Introduction to PDEs, Fall 2011 Professor: Jared Speck Class Meeting # 1: Introduction to PDEs 1. What is a PDE? We will be studying functions u = u(x
SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I
Lennart Edsberg, Nada, KTH Autumn 2008 SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I Parameter values and functions occurring in the questions belowwill be exchanged
3.2. Solving quadratic equations. Introduction. Prerequisites. Learning Outcomes. Learning Style
Solving quadratic equations 3.2 Introduction A quadratic equation is one which can be written in the form ax 2 + bx + c = 0 where a, b and c are numbers and x is the unknown whose value(s) we wish to find.
South Carolina College- and Career-Ready (SCCCR) Pre-Calculus
South Carolina College- and Career-Ready (SCCCR) Pre-Calculus Key Concepts Arithmetic with Polynomials and Rational Expressions PC.AAPR.2 PC.AAPR.3 PC.AAPR.4 PC.AAPR.5 PC.AAPR.6 PC.AAPR.7 Standards Know
Microeconomic Theory: Basic Math Concepts
Microeconomic Theory: Basic Math Concepts Matt Van Essen University of Alabama Van Essen (U of A) Basic Math Concepts 1 / 66 Basic Math Concepts In this lecture we will review some basic mathematical concepts
Lies My Calculator and Computer Told Me
Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing
Representation of functions as power series
Representation of functions as power series Dr. Philippe B. Laval Kennesaw State University November 9, 008 Abstract This document is a summary of the theory and techniques used to represent functions
Numerical Solution of Differential
Chapter 13 Numerical Solution of Differential Equations We have considered numerical solution procedures for two kinds of equations: In chapter 10 the unknown was a real number; in chapter 6 the unknown
Constrained optimization.
ams/econ 11b supplementary notes ucsc Constrained optimization. c 2010, Yonatan Katznelson 1. Constraints In many of the optimization problems that arise in economics, there are restrictions on the values
t := maxγ ν subject to ν {0,1,2,...} and f(x c +γ ν d) f(x c )+cγ ν f (x c ;d).
1. Line Search Methods Let f : R n R be given and suppose that x c is our current best estimate of a solution to P min x R nf(x). A standard method for improving the estimate x c is to choose a direction
Parabolic Equations. Chapter 5. Contents. 5.1.2 Well-Posed Initial-Boundary Value Problem. 5.1.3 Time Irreversibility of the Heat Equation
7 5.1 Definitions Properties Chapter 5 Parabolic Equations Note that we require the solution u(, t bounded in R n for all t. In particular we assume that the boundedness of the smooth function u at infinity
NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS
NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS TEST DESIGN AND FRAMEWORK September 2014 Authorized for Distribution by the New York State Education Department This test design and framework document
MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform
MATH 433/533, Fourier Analysis Section 11, The Discrete Fourier Transform Now, instead of considering functions defined on a continuous domain, like the interval [, 1) or the whole real line R, we wish
1 Completeness of a Set of Eigenfunctions. Lecturer: Naoki Saito Scribe: Alexander Sheynis/Allen Xue. May 3, 2007. 1.1 The Neumann Boundary Condition
MAT 280: Laplacian Eigenfunctions: Theory, Applications, and Computations Lecture 11: Laplacian Eigenvalue Problems for General Domains III. Completeness of a Set of Eigenfunctions and the Justification
ASEN 3112 - Structures. MDOF Dynamic Systems. ASEN 3112 Lecture 1 Slide 1
19 MDOF Dynamic Systems ASEN 3112 Lecture 1 Slide 1 A Two-DOF Mass-Spring-Dashpot Dynamic System Consider the lumped-parameter, mass-spring-dashpot dynamic system shown in the Figure. It has two point
Introduction to the Finite Element Method
Introduction to the Finite Element Method 09.06.2009 Outline Motivation Partial Differential Equations (PDEs) Finite Difference Method (FDM) Finite Element Method (FEM) References Motivation Figure: cross
4 Lyapunov Stability Theory
4 Lyapunov Stability Theory In this section we review the tools of Lyapunov stability theory. These tools will be used in the next section to analyze the stability properties of a robot controller. We
This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.
Algebra I Overview View unit yearlong overview here Many of the concepts presented in Algebra I are progressions of concepts that were introduced in grades 6 through 8. The content presented in this course
Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON
Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON John Burkardt Information Technology Department Virginia Tech http://people.sc.fsu.edu/ jburkardt/presentations/cg lab fem basis tetrahedron.pdf
Numerical methods for American options
Lecture 9 Numerical methods for American options Lecture Notes by Andrzej Palczewski Computational Finance p. 1 American options The holder of an American option has the right to exercise it at any moment
1 if 1 x 0 1 if 0 x 1
Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or
CURVE FITTING LEAST SQUARES APPROXIMATION
CURVE FITTING LEAST SQUARES APPROXIMATION Data analysis and curve fitting: Imagine that we are studying a physical system involving two quantities: x and y Also suppose that we expect a linear relationship
Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities
Algebra 1, Quarter 2, Unit 2.1 Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Overview Number of instructional days: 15 (1 day = 45 60 minutes) Content to be learned
MATH 425, PRACTICE FINAL EXAM SOLUTIONS.
MATH 45, PRACTICE FINAL EXAM SOLUTIONS. Exercise. a Is the operator L defined on smooth functions of x, y by L u := u xx + cosu linear? b Does the answer change if we replace the operator L by the operator
Lecture L3 - Vectors, Matrices and Coordinate Transformations
S. Widnall 16.07 Dynamics Fall 2009 Lecture notes based on J. Peraire Version 2.0 Lecture L3 - Vectors, Matrices and Coordinate Transformations By using vectors and defining appropriate operations between
Roots of Equations (Chapters 5 and 6)
Roots of Equations (Chapters 5 and 6) Problem: given f() = 0, find. In general, f() can be any function. For some forms of f(), analytical solutions are available. However, for other functions, we have
LINEAR EQUATIONS IN TWO VARIABLES
66 MATHEMATICS CHAPTER 4 LINEAR EQUATIONS IN TWO VARIABLES The principal use of the Analytic Art is to bring Mathematical Problems to Equations and to exhibit those Equations in the most simple terms that
The one dimensional heat equation: Neumann and Robin boundary conditions
The one dimensional heat equation: Neumann and Robin boundary conditions Ryan C. Trinity University Partial Differential Equations February 28, 2012 with Neumann boundary conditions Our goal is to solve:
SIGNAL PROCESSING & SIMULATION NEWSLETTER
1 of 10 1/25/2008 3:38 AM SIGNAL PROCESSING & SIMULATION NEWSLETTER Note: This is not a particularly interesting topic for anyone other than those who ar e involved in simulation. So if you have difficulty
Review of Fundamental Mathematics
Review of Fundamental Mathematics As explained in the Preface and in Chapter 1 of your textbook, managerial economics applies microeconomic theory to business decision making. The decision-making tools
6.4 Logarithmic Equations and Inequalities
6.4 Logarithmic Equations and Inequalities 459 6.4 Logarithmic Equations and Inequalities In Section 6.3 we solved equations and inequalities involving exponential functions using one of two basic strategies.
Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.
Polynomial and Rational Functions Outline 3-1 Polynomial Functions 3-2 Finding Rational Zeros of Polynomials 3-3 Approximating Real Zeros of Polynomials 3-4 Rational Functions Chapter 3 Group Activity:
MATH 132: CALCULUS II SYLLABUS
MATH 32: CALCULUS II SYLLABUS Prerequisites: Successful completion of Math 3 (or its equivalent elsewhere). Math 27 is normally not a sufficient prerequisite for Math 32. Required Text: Calculus: Early
3.3 Real Zeros of Polynomials
3.3 Real Zeros of Polynomials 69 3.3 Real Zeros of Polynomials In Section 3., we found that we can use synthetic division to determine if a given real number is a zero of a polynomial function. This section
Understanding Poles and Zeros
MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING 2.14 Analysis and Design of Feedback Control Systems Understanding Poles and Zeros 1 System Poles and Zeros The transfer function
Math 4310 Handout - Quotient Vector Spaces
Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable
Nonlinear Algebraic Equations Example
Nonlinear Algebraic Equations Example Continuous Stirred Tank Reactor (CSTR). Look for steady state concentrations & temperature. s r (in) p,i (in) i In: N spieces with concentrations c, heat capacities
Høgskolen i Narvik Sivilingeniørutdanningen STE6237 ELEMENTMETODER. Oppgaver
Høgskolen i Narvik Sivilingeniørutdanningen STE637 ELEMENTMETODER Oppgaver Klasse: 4.ID, 4.IT Ekstern Professor: Gregory A. Chechkin e-mail: [email protected] Narvik 6 PART I Task. Consider two-point
9.2 Summation Notation
9. Summation Notation 66 9. Summation Notation In the previous section, we introduced sequences and now we shall present notation and theorems concerning the sum of terms of a sequence. We begin with a
Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur
Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur Module No. #01 Lecture No. #15 Special Distributions-VI Today, I am going to introduce
Common Core Unit Summary Grades 6 to 8
Common Core Unit Summary Grades 6 to 8 Grade 8: Unit 1: Congruence and Similarity- 8G1-8G5 rotations reflections and translations,( RRT=congruence) understand congruence of 2 d figures after RRT Dilations
POLYNOMIAL FUNCTIONS
POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a
CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA
We Can Early Learning Curriculum PreK Grades 8 12 INSIDE ALGEBRA, GRADES 8 12 CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA April 2016 www.voyagersopris.com Mathematical
Chapter 9 Partial Differential Equations
363 One must learn by doing the thing; though you think you know it, you have no certainty until you try. Sophocles (495-406)BCE Chapter 9 Partial Differential Equations A linear second order partial differential
Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization
Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization 2.1. Introduction Suppose that an economic relationship can be described by a real-valued
2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system
1. Systems of linear equations We are interested in the solutions to systems of linear equations. A linear equation is of the form 3x 5y + 2z + w = 3. The key thing is that we don t multiply the variables
LINEAR INEQUALITIES. Mathematics is the art of saying many things in many different ways. MAXWELL
Chapter 6 LINEAR INEQUALITIES 6.1 Introduction Mathematics is the art of saying many things in many different ways. MAXWELL In earlier classes, we have studied equations in one variable and two variables
Chapter 4 One Dimensional Kinematics
Chapter 4 One Dimensional Kinematics 41 Introduction 1 4 Position, Time Interval, Displacement 41 Position 4 Time Interval 43 Displacement 43 Velocity 3 431 Average Velocity 3 433 Instantaneous Velocity
Section 1.4. Difference Equations
Difference Equations to Differential Equations Section 1.4 Difference Equations At this point almost all of our sequences have had explicit formulas for their terms. That is, we have looked mainly at sequences
Section 1.3 P 1 = 1 2. = 1 4 2 8. P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., = 1 2 4.
Difference Equations to Differential Equations Section. The Sum of a Sequence This section considers the problem of adding together the terms of a sequence. Of course, this is a problem only if more than
CHAPTER 5 Round-off errors
CHAPTER 5 Round-off errors In the two previous chapters we have seen how numbers can be represented in the binary numeral system and how this is the basis for representing numbers in computers. Since any
Chapter 10. Key Ideas Correlation, Correlation Coefficient (r),
Chapter 0 Key Ideas Correlation, Correlation Coefficient (r), Section 0-: Overview We have already explored the basics of describing single variable data sets. However, when two quantitative variables
Georgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1
Accelerated Mathematics 3 This is a course in precalculus and statistics, designed to prepare students to take AB or BC Advanced Placement Calculus. It includes rational, circular trigonometric, and inverse
Moving Least Squares Approximation
Chapter 7 Moving Least Squares Approimation An alternative to radial basis function interpolation and approimation is the so-called moving least squares method. As we will see below, in this method the
PYTHAGOREAN TRIPLES KEITH CONRAD
PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient
Numerical Analysis Lecture Notes
Numerical Analysis Lecture Notes Peter J. Olver 5. Inner Products and Norms The norm of a vector is a measure of its size. Besides the familiar Euclidean norm based on the dot product, there are a number
Numerical Analysis Lecture Notes
Numerical Analysis Lecture Notes Peter J. Olver 6. Eigenvalues and Singular Values In this section, we collect together the basic facts about eigenvalues and eigenvectors. From a geometrical viewpoint,
Week 13 Trigonometric Form of Complex Numbers
Week Trigonometric Form of Complex Numbers Overview In this week of the course, which is the last week if you are not going to take calculus, we will look at how Trigonometry can sometimes help in working
Equations, Inequalities & Partial Fractions
Contents Equations, Inequalities & Partial Fractions.1 Solving Linear Equations 2.2 Solving Quadratic Equations 1. Solving Polynomial Equations 1.4 Solving Simultaneous Linear Equations 42.5 Solving Inequalities
Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks
Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks Welcome to Thinkwell s Homeschool Precalculus! We re thrilled that you ve decided to make us part of your homeschool curriculum. This lesson
Chapter 3 RANDOM VARIATE GENERATION
Chapter 3 RANDOM VARIATE GENERATION In order to do a Monte Carlo simulation either by hand or by computer, techniques must be developed for generating values of random variables having known distributions.
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a
x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1
Implicit Functions Defining Implicit Functions Up until now in this course, we have only talked about functions, which assign to every real number x in their domain exactly one real number f(x). The graphs
CHAPTER II THE LIMIT OF A SEQUENCE OF NUMBERS DEFINITION OF THE NUMBER e.
CHAPTER II THE LIMIT OF A SEQUENCE OF NUMBERS DEFINITION OF THE NUMBER e. This chapter contains the beginnings of the most important, and probably the most subtle, notion in mathematical analysis, i.e.,
DRAFT. Further mathematics. GCE AS and A level subject content
Further mathematics GCE AS and A level subject content July 2014 s Introduction Purpose Aims and objectives Subject content Structure Background knowledge Overarching themes Use of technology Detailed
Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test
Math Review for the Quantitative Reasoning Measure of the GRE revised General Test www.ets.org Overview This Math Review will familiarize you with the mathematical skills and concepts that are important
Chapter 4 Online Appendix: The Mathematics of Utility Functions
Chapter 4 Online Appendix: The Mathematics of Utility Functions We saw in the text that utility functions and indifference curves are different ways to represent a consumer s preferences. Calculus can
APPLIED MATHEMATICS ADVANCED LEVEL
APPLIED MATHEMATICS ADVANCED LEVEL INTRODUCTION This syllabus serves to examine candidates knowledge and skills in introductory mathematical and statistical methods, and their applications. For applications
Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics
Undergraduate Notes in Mathematics Arkansas Tech University Department of Mathematics An Introductory Single Variable Real Analysis: A Learning Approach through Problem Solving Marcel B. Finan c All Rights
SOLVING LINEAR SYSTEMS
SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis
TOPIC 4: DERIVATIVES
TOPIC 4: DERIVATIVES 1. The derivative of a function. Differentiation rules 1.1. The slope of a curve. The slope of a curve at a point P is a measure of the steepness of the curve. If Q is a point on the
4.5 Chebyshev Polynomials
230 CHAP. 4 INTERPOLATION AND POLYNOMIAL APPROXIMATION 4.5 Chebyshev Polynomials We now turn our attention to polynomial interpolation for f (x) over [ 1, 1] based on the nodes 1 x 0 < x 1 < < x N 1. Both
