Homework 5 - Solutions

Size: px
Start display at page:

Download "Homework 5 - Solutions"

Transcription

1 Spring Math 54 Homework 5 - Solutions BF d. The spline interpolation routine below produces the following coefficients: i a i b i c i d i which gives the natural cubic spline: S () = ( + ) ( + ) 3, [,.5], S () = ( +.5) ( +.5) +.887( +.5) 3, [.5, ], S () = , [,.5] Main Code function z = spline(n,, f) clear all load e344d n =length(f); for i = :n- h(i) = (i+)-(i); a = f; for i = :n-

2 alpha(i-) = (3./h(i)).*(a(i+)-a(i))-(3./h(i-)).*(a(i)-a(i-)); rhs = [ alpha ] ; for i = :n- l(i) = *(h(i)+h(i+)); T = [ h(:n-) ; l(:n-) ; h(:n-) ] ; c = trisolve(t, rhs); for j = :n- b(j) = (a(j+)-a(j))./h(j)-h(j)*(c(j+)+*c(j))./3; d(j) = (c(j+)-c(j))./(3*h(j)); y = min():.:ma(); Sy = evalspline(a,b,c,d,,y); plot(y, Sy, -,, f, o ) print -depsc spline_free.eps Evaluation Subroutine function S = evalspline(a,b,c,d,,y) Inputs: a-b-c-d the coefficients that define the spline are the node-points y the point(s) where you want to evaluate the spline function S = evalspline(a,b,c,d,,y) if( length(a) ~= length() ) error([ The first argument (a) must be the same length as the 5th... argument () ]); if( length(b) < length()- ) error([ The second argument (b) cannot be more then one element... shorter than the 5th argument () ]); if( length(c) ~= length() ) error([ The third argument (a) must be the same length as the 5th... argument () ]); if( length(d) < length()- )

3 error([ The second argument (b) cannot be more then one element... shorter than the 5th argument () ]); if( min(y) < min() ) error([ The values in the 6th argument (y) should not be less than... the values in the 5th argument () ]); if( ma(y) > ma() ) error([ The values in the 6th argument (y) should not be greather... than the values in the 5th argument () ]); S = zeros(size(y)); for k = :length(y) n = min([length(b) ma(find(<=y(k)))]); S(k) = polyval([d(n) c(n) b(n) a(n)],(y(k)-(n))); Tridiagonal solver Solver for tri-diagonal matrices. T must be in compact form: the sub-diagonal elements in the first column, the diagonal in the second column, and the super-diagonal in the third column. Note that T(,) and T(3,n) are never accessed, i.e. the subdiagonal entries start on the second row, and the superdiagonal elements on the (n-)st row. function []=trisolve(t,b) if nargin ~= error( trisolve:: two input arguments required. ) if nargout ~= error( trisolve: one output argument required. ) [n,m] = size(t); if m ~= 3 error( trisolve: matri must have three columns. )

4 [N,M] = size(b); if N ~= n error( trisolve: rhs and matri must have same number of rows. ); work = zeros(n,); work() = T(,); (,:) = b(,:); Forward sweep. for i=:n beta = T(i,)/work(i-); (i,:) = b(i,:) - beta*(i-,:); work(i) = T(i,) - beta*t(i-,3); (n,:) = (n,:)/work(n); Backward sweep. for i=n-:-: (i,:) = ((i,:) - T(i,3)*(i+,:)) / work(i); BF d. The data for the above problem were generated from the function f() = ln(e + ). We evaluate the f() and S () at =.5 and find the absolute error giving: S (.5) = f(.5) = S (.5) f(.5) =.353. Similarly, we evaluate the derivative of the spline and the function to obtain: S (.5) = f (.5) = S (.5) f (.5) = BF d. The clamped spline interpolation routine below produces the following coefficients: i a i b i c i d i which gives the clamped cubic spline:

5 S () = ( + ) ( + ) ( + ) 3, [,.5], S () = ( +.5) ( +.5) +.54( +.5) 3, [.5, ], S () = , [,.5] Main Code function z = spline_clp(n,, f) clear all load e344d fp =.55364; fpn = ; n =length(f); for i = :n- h(i) = (i+)-(i); a = f; alpha = 3*(a()-a())/h()-3*fp; alphan = 3*fpn -3*(a(n)-a(n-))/h(n-); for i = :n- alpha(i-) = (3./h(i)).*(a(i+)-a(i))-(3./h(i-)).*(a(i)-a(i-)); rhs = [alpha alpha alphan] ; t = *h();

6 tnn = *h(n-); for i = :n- l(i) = *(h(i)+h(i+)); T = [ h(:n-) ; t l(:n-) tnn ; h(:n-) ] ; c = trisolve(t, rhs); for j = :n- b(j) = (a(j+)-a(j))./h(j)-h(j)*(c(j+)+*c(j))./3; d(j) = (c(j+)-c(j))./(3*h(j)); y = min():.:ma(); Sy = evalspline(a,b,c,d,,y); plot(y, Sy, -,, f, o ) print -depsc spline_clpd.eps BF The three-point formulae for derivatives are f ( ) = h [ 3f( ) + 4f( + h) f( + h)] + h 3 f (3) (ξ ), f ( ) = h [ f( h) + f( + h)] + h 6 f (3) (ξ ), f ( ) = h [f( h) 4f( h) + 3f( + h)] + h 3 f (3) (ξ ), f() f () BF 4.4.(a). For trapezoid rule, we see that with n = BF 4.4.(c). We see that with n = cos ()d (sin ()) sin() + )d The trapezoid rule is given by the MatLab program: Trapezoid Method for BF 4.4; f = inline( (cos())^ ); n = 4;

7 a = -.5; b =.5; h = (b-a)/n; fprintf( \n ); fprintf( n h sum \n ); fprintf( \n ); sum = h*(f(a)+f(b))/; for j = :(n-) = a+j*h; sum = sum + h*f(); fprintf( 3d 8.6e.8f \n,n, h, sum); BF 4.4.4(a). For Simpson s rule, we see that with n = 4.5 cos ()d BF 4.4.4(c). We see that with n = 8.75 (sin ()) sin() + )d The Simpson s rule is given by the MatLab program: Simpson Method; f = inline( (cos())^ ); n = 4; a = -.5; b =.5; h = (b-a)/n; k = n/; fprintf( \n ); fprintf( n h sum \n ); fprintf( \n ); sum = h*(f(a)+f(b))/3; = a+h; sum = sum + (4*h/3)*f(); for j = :(k-) = a+(*j)*h; = a+(*j+)*h; sum = sum + (*h/3)*f()+(4*h/3)*f(); fprintf( 3d 8.6e.8f \n,n, h, sum);

8 BF We integrate and obtain π cos()d = π = The codes above to increase n until the accuracy is within tolerance ( 4 ). a. The Composite Trapezoid Rule requires n = 8 with h =.3779 to obtain the approimation: π cos()d b. The Composite Simpson s Rule requires n = 8 with h = to obtain the approimation: π cos()d c. The Composite Midpoint Rule requires n = 3 with h = to obtain the approimation: π cos()d BF 4.6.6(a). We want to compute. ( sin d = , ) where Maple gives us the value above. We use the Adaptive Quadrature with the Composite Simpson s rule. The tolerance is set at 3 for the program (given in class). The graphs below show the function and the refinement levels to obtain the solution to the level of desired accuracy. The computed value of the integral is , with an error of Adaptive CSR The Function 8 Adaptive CSR Refinement Levels.8 7 f() Refinement Level BF 4.7.(b). We use Maple to show that e d = 5e =

9 To use Gaussian quadrature, we first convert the integral to be defined on t [, ], so we have e d = ( ) t + t+ e ( ) dt. Using Gaussian quadrature with n =, we have e d [ (r ) + e ( r ) ( ) + r + + e ( r ) ] + = , where r = = r. The absolute error is.94. BF 4.7.(g). We use Maple to show that d = = To use Gaussian quadrature, we first convert the integral to be defined on t [, ], so we have d = (t + 3)/4 4 (t + 3) /6 4 dt. Using Gaussian quadrature with n =, we have d [ ] (r + 3)/4 4 (r + 3) /6 4 + (r + 3)/4 (r + 3) /6 4 where r = = r. The absolute error is.678. = , BF 4.7.(b). We use the conversions above to get the form for the Gaussian quadrature. Using Gaussian quadrature with n = 3, we have e d [ ( ) r + c e ( r ) ( ) + + c e ( ( ) r + ) + c e ( r ) ] + = , where r = = r and c = and c = The absolute error is BF 4.7.(g). We use the conversions above to get the form for the Gaussian quadrature. Using Gaussian quadrature with n = 3, we have d [ ] c (r + 3)/4 4 (r + 3) /6 4 + c 3/4 (3) /6 4 + c (r + 3)/4 (r + 3) /6 4 = , where r = = r and c = and c = The absolute error is

10 BF 4.8.(a). We use Maple to solve y dyd =.5. y = Net we approimate the double integral with Simpson s rule using m = n = 4. The program below produces y dyd We note that there is no error between the actual value of the double integral and the Simpson rule approimation, which should be true as Simpson s rule solves polynomials degree less than or equal to 3. (The integrand is linear in and quadratic in y, so the values will be eact in each direction.) f = inline( *y^ ); c = inline(. ); d = inline(.4 ); a =.; b =.5; m = 4; n = 4; h = (b-a)/n; An = ; Ae = ; Ao = ; for i = :n = a + i*h; ya = c(); yb = d(); hy = (d() - c())/m; Bn = f(,ya) + f(,yb); Be = ; Bo = ; for j = :m- y = ya + j*hy; z = f(,y); if rem(j,)== Be = Be + z; else Bo = Bo + z; A = (Bn + 4*Bo + *Be)*hy/3; if i == i == n An = An + A; else if rem(i,)== Ae = Ae + A;

11 else Ao = Ao + A; Dint = (An + 4*Ao + *Ae)*h/3; fprintf(, \n Double Integral is.8f \n,dint); BF 4.8.(c). We use Maple to solve. ( ). ( + y 3 y )dyd = + y4 4 =. ( ) 4 4 d = Net we approimate the double integral with Simpson s rule using m = n = 4. The program below produces. ( + y 3 )dy d Again we note that there is almost no error between the actual value of the double integral and the Simpson rule approimation. BF 4.8.(a). The notes above about Simpson s rule solving eactly any polynomial of degree less than or equal to 3 means that we can use n = m =, the smallest possible values of n and m to get the actual value of the integral, which requires 9 function evaluations. BF 4.8.(c). The notes above about Simpson s rule solving eactly any polynomial of degree less than or equal to 3 means that we can use m =, the smallest possible values of m to get the actual value of the integral in the y direction. With n =, the approimation is not quite sufficiently accurate (in the direction it is a polynomial of order 4), but increasing to n = 4 gives the approimate double integral accurate to 6 of the actual value. Thus, if we require m = n, then m = n = 4, which requires 5 function evaluations. BF 4.9.(a). u =, so This integral has a singularity at =, so we transform the integral with which is singular at u =. With e e u d = du = [ P 4 (u) ] du + G(u)du, u e u P 4 (u) = + u + u + u3 6 + u4 4 The integral with P 4 (u) is easily handled, giving and G(u) = P 4 (u) u du = { e u P 4 (u) u, u,, u =, We apply Simpson s rule with n = 6 to the integral for G(u), so G(u)du (G() + 4G(/6) + G(/3) + 4G(/) + G(/3) + 4G(5/6) + G()) 8 =.7666.

12 e d = [ P 4 (u) ] du + G(u)du ( ) = e u e BF 4.9.3(c). With the transformation of = t, we have cos() cos(/t) 3 d = t 3 ( t )dt = t cos(/t)dt. Clearly, lim t t cos(/t) =, so we directly apply the Composite Simpson s rule with n = 6. With G(t) = t cos(/t), the result is t cos(/t)dt = (G() + 4G(/6) + G(/3) + 4G(/) + G(/3) + 4G(5/6) + G()) The actual value is.876, so there a significant error in this calculation as one might epect from the rapid oscillations of the cosine function near t =. Problem. A number of these integrals have singularities, so it is useful to use a quadrature technique that does not evaluate at the points. Gaussian quadrature has the approimately the same accuracy as the Simpson s method. Below is a Composite Gaussian quadrature program that does successive halving of the interval size until the tolerance is met. f = inline( sin()/ ); a = ; b = *pi; tol = ^(-6); ma_iter = ; n = ; fprintf( \n ); fprintf( n h sum \n ); fprintf( \n ); h = b-a; u = a + h*(-/sqrt(3))/; v = a + h*(+/sqrt(3))/; sum = h*(f(u)+f(v))/; sum = sum; fprintf( 3d 8.6e.8f \n,n, h, sum); while(n < ma_iter) m = ^n; sum = ; h = (b-a)/m; for j = :m u = a + (j-)*h + h*(-/sqrt(3))/; v = a + (j-)*h + h*(+/sqrt(3))/; sum = sum + h*(f(u)+f(v))/; diff = abs(sum - sum);

13 fprintf( 3d 8.6e.8f \n,m, h, sum); if (diff < tol) return; sum = sum; n = n+; Part A. We split the integral into two parts and transform the second integral with t =, so e t4 dt = = e t4 dt + e t4 dt + e t4 dt e 4 d Each of these integrals are solved using the algorithm above. We obtain e 4 e t4 dt + d = We iterated these integrals until the tolerance was 6. The stepsize for the first was h = /3, and the second was h = /6. A graph of the integrand is seem below.

14 y = e t4 y = sin(t)/t y y Problem A Problem B Part B. We used the Gaussian quadrature algorithm above for the integral below and iterated until the tolerance was 6. The final stepsize was h = /3, and the resulting integral is approimated by π sin(t) dt t A graph of the integrand is seem above. Part C. The integrand for this integral oscillates wildly. We tried both the Gaussian quadrature formula above and the adaptive CSR. The latter should be more efficient computing the integral as the integrand for smaller t is well-behaved. The Gaussian quadrature needed to use a stepsize of h = /496 to be within a tolerance of 5, while the graph below shows the stepsizes for the adaptive CSR for a tolerance of 5 The resulting integral is approimated by 5 sin(t 4 ) dt (for ACSR = ). A graph of the integrand is seem below. y = sin(t 4 ) 4 Adaptive CSR Refinement Levels y.5.5 Refinement Level Problem C Problem C steps

Math 104A - Homework 3

Math 104A - Homework 3 Math 104A - Homework 3 Due 7/7 2.4.6 Show that the following sequences converge linearly to p = 0. How large must n be before we have p n p 5 10 2? a p n = 1/n. Since p n+1 0 p n 0 = 1/(n + 1) 1/n = n

More information

Exact and Approximate Numbers:

Exact and Approximate Numbers: Eact and Approimate Numbers: The numbers that arise in technical applications are better described as eact numbers because there is not the sort of uncertainty in their values that was described above.

More information

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines Cubic Splines MATH 375 J. Robert Buchanan Department of Mathematics Fall 2006 Introduction Given data {(x 0, f(x 0 )), (x 1, f(x 1 )),...,(x n, f(x n ))} which we wish to interpolate using a polynomial...

More information

3.1: 1, 3, 5, 9, 10, 12, 14, 18

3.1: 1, 3, 5, 9, 10, 12, 14, 18 3.:, 3, 5, 9,,, 4, 8 ) We want to solve d d c() d = f() with c() = c = constant and f() = for different boundary conditions to get w() and u(). dw d = dw d d = ( )d w() w() = w() = w() ( ) c d d = u()

More information

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004 Department of Applied Mathematics and Theoretical Physics AMA 204 Numerical analysis Exam Winter 2004 The best six answers will be credited All questions carry equal marks Answer all parts of each question

More information

Numerical Integration (Quadrature) Another application for our interpolation tools!

Numerical Integration (Quadrature) Another application for our interpolation tools! Numerical Integration (Quadrature) Another application for our interpolation tools! Integration: Area under a curve Curve = data or function Integrating data Finite number of data points spacing specified

More information

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration.

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration. Unit IV Numerical Integration and Differentiation Numerical integration and differentiation quadrature classical formulas for equally spaced nodes improper integrals Gaussian quadrature and orthogonal

More information

Mathematical Methods for Numerical Analysis and Optimization

Mathematical Methods for Numerical Analysis and Optimization Biyani's Think Tank Concept based notes Mathematical Methods for Numerical Analysis and Optimization (MCA) Varsha Gupta Poonam Fatehpuria M.Sc. (Maths) Lecturer Deptt. of Information Technology Biyani

More information

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

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam Jim Lambers MAT 460/560 Fall Semester 2009-10 Practice Final Exam 1. Let f(x) = sin 2x + cos 2x. (a) Write down the 2nd Taylor polynomial P 2 (x) of f(x) centered around x 0 = 0. (b) Write down the corresponding

More information

Wed Jan Improved Euler and Runge Kutta. Announcements: Warm-up Exercise:

Wed Jan Improved Euler and Runge Kutta. Announcements: Warm-up Exercise: Wed Jan 31 2.5-2.6 Improved Euler and Runge Kutta. Announcements: Warm-up Eercise: 2.5-2.6 Improved Euler and Runge Kutta In more complicated differential equations it is a very serious issue to find relatively

More information

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method COURSE 7 3. Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method The presence of derivatives in the remainder difficulties in applicability to practical problems

More information

Advanced Higher Grade

Advanced Higher Grade Prelim Eamination / 5 (Assessing Units & ) MATHEMATICS Advanced Higher Grade Time allowed - hours Read Carefully. Full credit will be given only where the solution contains appropriate woring.. Calculators

More information

MA 114 Worksheet #01: Integration by parts

MA 114 Worksheet #01: Integration by parts Fall 8 MA 4 Worksheet Thursday, 3 August 8 MA 4 Worksheet #: Integration by parts. For each of the following integrals, determine if it is best evaluated by integration by parts or by substitution. If

More information

8.4 Integration of Rational Functions by Partial Fractions Lets use the following example as motivation: Ex: Consider I = x+5

8.4 Integration of Rational Functions by Partial Fractions Lets use the following example as motivation: Ex: Consider I = x+5 Math 2-08 Rahman Week6 8.4 Integration of Rational Functions by Partial Fractions Lets use the following eample as motivation: E: Consider I = +5 2 + 2 d. Solution: Notice we can easily factor the denominator

More information

Introductory Numerical Analysis

Introductory Numerical Analysis Introductory Numerical Analysis Lecture Notes December 16, 017 Contents 1 Introduction to 1 11 Floating Point Numbers 1 1 Computational Errors 13 Algorithm 3 14 Calculus Review 3 Root Finding 5 1 Bisection

More information

Answers to Homework 9: Numerical Integration

Answers to Homework 9: Numerical Integration Math 8A Spring Handout # Sergey Fomel April 3, Answers to Homework 9: Numerical Integration. a) Suppose that the function f x) = + x ) is known at three points: x =, x =, and x 3 =. Interpolate the function

More information

The Fundamental Theorem of Calculus Part 3

The Fundamental Theorem of Calculus Part 3 The Fundamental Theorem of Calculus Part FTC Part Worksheet 5: Basic Rules, Initial Value Problems, Rewriting Integrands A. It s time to find anti-derivatives algebraically. Instead of saying the anti-derivative

More information

Chapter 6. Legendre and Bessel Functions

Chapter 6. Legendre and Bessel Functions Chapter 6 Legendre and Bessel Functions Legendre's Equation Legendre's Equation (order n): legendre d K y''k y'c n n C y = : is an important ode in applied mathematics When n is a non-negative integer,

More information

Numerical Analysis & Computer Programming

Numerical Analysis & Computer Programming ++++++++++ Numerical Analysis & Computer Programming Previous year Questions from 07 to 99 Ramanasri Institute W E B S I T E : M A T H E M A T I C S O P T I O N A L. C O M C O N T A C T : 8 7 5 0 7 0 6

More information

Lecture 1 INF-MAT3350/ : Some Tridiagonal Matrix Problems

Lecture 1 INF-MAT3350/ : Some Tridiagonal Matrix Problems Lecture 1 INF-MAT3350/4350 2007: Some Tridiagonal Matrix Problems Tom Lyche University of Oslo Norway Lecture 1 INF-MAT3350/4350 2007: Some Tridiagonal Matrix Problems p.1/33 Plan for the day 1. Notation

More information

Chapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence

Chapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence Chapter 6 Nonlinear Equations 6. The Problem of Nonlinear Root-finding In this module we consider the problem of using numerical techniques to find the roots of nonlinear equations, f () =. Initially we

More information

MATHEMATICAL METHODS INTERPOLATION

MATHEMATICAL METHODS INTERPOLATION MATHEMATICAL METHODS INTERPOLATION I YEAR BTech By Mr Y Prabhaker Reddy Asst Professor of Mathematics Guru Nanak Engineering College Ibrahimpatnam, Hyderabad SYLLABUS OF MATHEMATICAL METHODS (as per JNTU

More information

n 1 f n 1 c 1 n+1 = c 1 n $ c 1 n 1. After taking logs, this becomes

n 1 f n 1 c 1 n+1 = c 1 n $ c 1 n 1. After taking logs, this becomes Root finding: 1 a The points {x n+1, }, {x n, f n }, {x n 1, f n 1 } should be co-linear Say they lie on the line x + y = This gives the relations x n+1 + = x n +f n = x n 1 +f n 1 = Eliminating α and

More information

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form Qualifying exam for numerical analysis (Spring 2017) Show your work for full credit. If you are unable to solve some part, attempt the subsequent parts. 1. Consider the following finite difference: f (0)

More information

INTERPOLATION Background Polynomial Approximation Problem:

INTERPOLATION Background Polynomial Approximation Problem: INTERPOLATION Background Polynomial Approximation Problem: given f(x) C[a, b], find P n (x) = a 0 + a 1 x + a 2 x 2 + + a n x n with P n (x) close to f(x) for x [a, b]. Motivations: f(x) might be difficult

More information

2D1240 Numerical Methods II / André Jaun, NADA, KTH NADA

2D1240 Numerical Methods II / André Jaun, NADA, KTH NADA A NADA D4 Numerical Methods II / André Jaun, NADA, KTH 8. PRECISION INTEGRATION, NON-LINEAR EQUATIONS 8.. Remember: what we saw during the last lesson Numerical error propagation, convergence and Richardson

More information

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

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9 TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1 Chapter 01.01 Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9 Chapter 01.02 Measuring errors 11 True error 11 Relative

More information

MATH 3511 Lecture 1. Solving Linear Systems 1

MATH 3511 Lecture 1. Solving Linear Systems 1 MATH 3511 Lecture 1 Solving Linear Systems 1 Dmitriy Leykekhman Spring 2012 Goals Review of basic linear algebra Solution of simple linear systems Gaussian elimination D Leykekhman - MATH 3511 Introduction

More information

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by 1. QUESTION (a) Given a nth degree Taylor polynomial P n (x) of a function f(x), expanded about x = x 0, write down the Lagrange formula for the truncation error, carefully defining all its elements. How

More information

Math Review. Daniel B. Rowe, Ph.D. Professor Department of Mathematics, Statistics, and Computer Science. Copyright 2018 by D.B.

Math Review. Daniel B. Rowe, Ph.D. Professor Department of Mathematics, Statistics, and Computer Science. Copyright 2018 by D.B. Math Review Daniel B. Rowe, Ph.D. Professor Department of Mathematics, Statistics, and Computer Science Copyright 2018 by 1 Outline Differentiation Definition Analytic Approach Numerical Approach Integration

More information

Numerical Methods I: Numerical Integration/Quadrature

Numerical Methods I: Numerical Integration/Quadrature 1/20 Numerical Methods I: Numerical Integration/Quadrature Georg Stadler Courant Institute, NYU stadler@cims.nyu.edu November 30, 2017 umerical integration 2/20 We want to approximate the definite integral

More information

(a) Show that there is a root α of f (x) = 0 in the interval [1.2, 1.3]. (2)

(a) Show that there is a root α of f (x) = 0 in the interval [1.2, 1.3]. (2) . f() = 4 cosec 4 +, where is in radians. (a) Show that there is a root α of f () = 0 in the interval [.,.3]. Show that the equation f() = 0 can be written in the form = + sin 4 Use the iterative formula

More information

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations Lecture 8: Calculus and Differential Equations Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 9. Numerical Methods MATLAB provides

More information

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations Lecture 8: Calculus and Differential Equations Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE21: Computer Applications. See Textbook Chapter 9. Numerical Methods MATLAB provides

More information

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

Homework and Computer Problems for Math*2130 (W17). Homework and Computer Problems for Math*2130 (W17). MARCUS R. GARVIE 1 December 21, 2016 1 Department of Mathematics & Statistics, University of Guelph NOTES: These questions are a bare minimum. You should

More information

Initial value problems for ordinary differential equations

Initial value problems for ordinary differential equations AMSC/CMSC 660 Scientific Computing I Fall 2008 UNIT 5: Numerical Solution of Ordinary Differential Equations Part 1 Dianne P. O Leary c 2008 The Plan Initial value problems (ivps) for ordinary differential

More information

Unit 3. Integration. 3A. Differentials, indefinite integration. y x. c) Method 1 (slow way) Substitute: u = 8 + 9x, du = 9dx.

Unit 3. Integration. 3A. Differentials, indefinite integration. y x. c) Method 1 (slow way) Substitute: u = 8 + 9x, du = 9dx. Unit 3. Integration 3A. Differentials, indefinite integration 3A- a) 7 6 d. (d(sin ) = because sin is a constant.) b) (/) / d c) ( 9 8)d d) (3e 3 sin + e 3 cos)d e) (/ )d + (/ y)dy = implies dy = / d /

More information

Homework set #7 solutions, Math 128A J. Xia

Homework set #7 solutions, Math 128A J. Xia Homework set #7 solutions, Math 18A J. Xia Sec 4.4: 1a, a, 3a, 7abc, 17 1a. Compute by hand or use a program. Matlab code for the Composite Trapezoidal rule: function integral = cmptrap(a,b,n,f) h = (b-a)/n;

More information

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS 5.1 Introduction When a physical system depends on more than one variable a general

More information

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

Integration, differentiation, and root finding. Phys 420/580 Lecture 7 Integration, differentiation, and root finding Phys 420/580 Lecture 7 Numerical integration Compute an approximation to the definite integral I = b Find area under the curve in the interval Trapezoid Rule:

More information

Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page 584 Mark Sparks 2012

Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page 584 Mark Sparks 2012 The Second Fundamental Theorem of Calculus Functions Defined by Integrals Given the functions, f(t), below, use F( ) f ( t) dt to find F() and F () in terms of.. f(t) = 4t t. f(t) = cos t Given the functions,

More information

Monte Carlo Integration I

Monte Carlo Integration I Monte Carlo Integration I Digital Image Synthesis Yung-Yu Chuang with slides by Pat Hanrahan and Torsten Moller Introduction L o p,ωo L e p,ωo s f p,ωo,ω i L p,ω i cosθ i i d The integral equations generally

More information

Math 75B Practice Problems for Midterm II Solutions Ch. 16, 17, 12 (E), , 2.8 (S)

Math 75B Practice Problems for Midterm II Solutions Ch. 16, 17, 12 (E), , 2.8 (S) Math 75B Practice Problems for Midterm II Solutions Ch. 6, 7, 2 (E),.-.5, 2.8 (S) DISCLAIMER. This collection of practice problems is not guaranteed to be identical, in length or content, to the actual

More information

3.1 Interpolation and the Lagrange Polynomial

3.1 Interpolation and the Lagrange Polynomial MATH 4073 Chapter 3 Interpolation and Polynomial Approximation Fall 2003 1 Consider a sample x x 0 x 1 x n y y 0 y 1 y n. Can we get a function out of discrete data above that gives a reasonable estimate

More information

2016 FAMAT Convention Mu Integration 1 = 80 0 = 80. dx 1 + x 2 = arctan x] k2

2016 FAMAT Convention Mu Integration 1 = 80 0 = 80. dx 1 + x 2 = arctan x] k2 6 FAMAT Convention Mu Integration. A. 3 3 7 6 6 3 ] 3 6 6 3. B. For quadratic functions, Simpson s Rule is eact. Thus, 3. D.. B. lim 5 3 + ) 3 + ] 5 8 8 cot θ) dθ csc θ ) dθ cot θ θ + C n k n + k n lim

More information

Research Computing with Python, Lecture 7, Numerical Integration and Solving Ordinary Differential Equations

Research Computing with Python, Lecture 7, Numerical Integration and Solving Ordinary Differential Equations Research Computing with Python, Lecture 7, Numerical Integration and Solving Ordinary Differential Equations Ramses van Zon SciNet HPC Consortium November 25, 2014 Ramses van Zon (SciNet HPC Consortium)Research

More information

AP Calculus BC : The Fundamental Theorem of Calculus

AP Calculus BC : The Fundamental Theorem of Calculus AP Calculus BC 415 5.3: The Fundamental Theorem of Calculus Tuesday, November 5, 008 Homework Answers 6. (a) approimately 0.5 (b) approimately 1 (c) approimately 1.75 38. 4 40. 5 50. 17 Introduction In

More information

CS 257: Numerical Methods

CS 257: Numerical Methods CS 57: Numerical Methods Final Exam Study Guide Version 1.00 Created by Charles Feng http://www.fenguin.net CS 57: Numerical Methods Final Exam Study Guide 1 Contents 1 Introductory Matter 3 1.1 Calculus

More information

Thomas Algorithm for Tridiagonal Matrix

Thomas Algorithm for Tridiagonal Matrix P a g e 1 Thomas Algorithm for Tridiagonal Matrix Special Matrices Some matrices have a particular structure that can be exploited to develop efficient solution schemes. Two of those such systems are banded

More information

Math Methods 12. Portfolio Assignment 4 Type II. 1. The general formula for the binomial expansion of ( x + y) n is given by 2! 3!

Math Methods 12. Portfolio Assignment 4 Type II. 1. The general formula for the binomial expansion of ( x + y) n is given by 2! 3! Math Methods Portfolio Assignment 4 Type II Name: Rajesh Swaminathan Block: D Date: 4-Mar-5 ANALYSIS OF A QUARTIC FUNCTION. The general formula for the binomial epansion of ( + y) n is given by nn ( )

More information

Numerical Methods. King Saud University

Numerical Methods. King Saud University Numerical Methods King Saud University Aims In this lecture, we will... find the approximate solutions of derivative (first- and second-order) and antiderivative (definite integral only). Numerical Differentiation

More information

Multiple Integrals. Chapter 4. Section 7. Department of Mathematics, Kookmin Univerisity. Numerical Methods.

Multiple Integrals. Chapter 4. Section 7. Department of Mathematics, Kookmin Univerisity. Numerical Methods. 4.7.1 Multiple Integrals Chapter 4 Section 7 4.7.2 Double Integral R f ( x, y) da 4.7.3 Double Integral Apply Simpson s rule twice R [ a, b] [ c, d] a x, x,..., x b, c y, y,..., y d 0 1 n 0 1 h ( b a)

More information

Numerical Methods with MATLAB

Numerical Methods with MATLAB Numerical Methods with MATLAB A Resource for Scientists and Engineers G. J. BÖRSE Lehigh University PWS Publishing Company I(T)P AN!NTERNATIONAL THOMSON PUBLISHING COMPANY Boston Albany Bonn Cincinnati

More information

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of Scientific Computing with Case Studies SIAM Press, 2009 http://www.cs.umd.edu/users/oleary/sccswebpage Lecture Notes for Unit V Solution of Differential Equations Part 1 Dianne P. O Leary c 2008 1 The

More information

Lecture 4.2 Finite Difference Approximation

Lecture 4.2 Finite Difference Approximation Lecture 4. Finite Difference Approimation 1 Discretization As stated in Lecture 1.0, there are three steps in numerically solving the differential equations. They are: 1. Discretization of the domain by

More information

PARTIAL DIFFERENTIAL EQUATIONS

PARTIAL DIFFERENTIAL EQUATIONS MATHEMATICAL METHODS PARTIAL DIFFERENTIAL EQUATIONS I YEAR B.Tech By Mr. Y. Prabhaker Reddy Asst. Professor of Mathematics Guru Nanak Engineering College Ibrahimpatnam, Hyderabad. SYLLABUS OF MATHEMATICAL

More information

APPM 1360 Final Exam Spring 2016

APPM 1360 Final Exam Spring 2016 APPM 36 Final Eam Spring 6. 8 points) State whether each of the following quantities converge or diverge. Eplain your reasoning. a) The sequence a, a, a 3,... where a n ln8n) lnn + ) n!) b) ln d c) arctan

More information

Chapter 3: Root Finding. September 26, 2005

Chapter 3: Root Finding. September 26, 2005 Chapter 3: Root Finding September 26, 2005 Outline 1 Root Finding 2 3.1 The Bisection Method 3 3.2 Newton s Method: Derivation and Examples 4 3.3 How To Stop Newton s Method 5 3.4 Application: Division

More information

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Interpolation and Polynomial Approximation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 10, 2015 2 Contents 1.1 Introduction................................ 3 1.1.1

More information

Applied Numerical Analysis Quiz #2

Applied Numerical Analysis Quiz #2 Applied Numerical Analysis Quiz #2 Modules 3 and 4 Name: Student number: DO NOT OPEN UNTIL ASKED Instructions: Make sure you have a machine-readable answer form. Write your name and student number in the

More information

Example - Newton-Raphson Method

Example - Newton-Raphson Method Eample - Newton-Raphson Method We now consider the following eample: minimize f( 3 3 + -- 4 4 Since f ( 3 2 + 3 3 and f ( 6 + 9 2 we form the following iteration: + n 3 ( n 3 3( n 2 ------------------------------------

More information

MA 3021: Numerical Analysis I Numerical Differentiation and Integration

MA 3021: Numerical Analysis I Numerical Differentiation and Integration MA 3021: Numerical Analysis I Numerical Differentiation and Integration Suh-Yuh Yang ( 楊肅煜 ) Department of Mathematics, National Central University Jhongli District, Taoyuan City 32001, Taiwan syyang@math.ncu.edu.tw

More information

Numerical Methods. Root Finding

Numerical Methods. Root Finding Numerical Methods Solving Non Linear 1-Dimensional Equations Root Finding Given a real valued function f of one variable (say ), the idea is to find an such that: f() 0 1 Root Finding Eamples Find real

More information

Engg. Math. II (Unit-IV) Numerical Analysis

Engg. Math. II (Unit-IV) Numerical Analysis Dr. Satish Shukla of 33 Engg. Math. II (Unit-IV) Numerical Analysis Syllabus. Interpolation and Curve Fitting: Introduction to Interpolation; Calculus of Finite Differences; Finite Difference and Divided

More information

April 15 Math 2335 sec 001 Spring 2014

April 15 Math 2335 sec 001 Spring 2014 April 15 Math 2335 sec 001 Spring 2014 Trapezoid and Simpson s Rules I(f ) = b a f (x) dx Trapezoid Rule: If [a, b] is divided into n equally spaced subintervals of length h = (b a)/n, then I(f ) T n (f

More information

Statistical Geometry Processing Winter Semester 2011/2012

Statistical Geometry Processing Winter Semester 2011/2012 Statistical Geometry Processing Winter Semester 2011/2012 Linear Algebra, Function Spaces & Inverse Problems Vector and Function Spaces 3 Vectors vectors are arrows in space classically: 2 or 3 dim. Euclidian

More information

3.3.1 Linear functions yet again and dot product In 2D, a homogenous linear scalar function takes the general form:

3.3.1 Linear functions yet again and dot product In 2D, a homogenous linear scalar function takes the general form: 3.3 Gradient Vector and Jacobian Matri 3 3.3 Gradient Vector and Jacobian Matri Overview: Differentiable functions have a local linear approimation. Near a given point, local changes are determined by

More information

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems) Engineering Mathematics 8 SUBJECT NAME : Numerical Methods SUBJECT CODE : MA6459 MATERIAL NAME : University Questions REGULATION : R3 UPDATED ON : November 7 (Upto N/D 7 Q.P) (Scan the above Q.R code for

More information

Numerical Methods for Initial Value Problems; Harmonic Oscillators

Numerical Methods for Initial Value Problems; Harmonic Oscillators 1 Numerical Methods for Initial Value Problems; Harmonic Oscillators Lab Objective: Implement several basic numerical methods for initial value problems (IVPs), and use them to study harmonic oscillators.

More information

Math 56 Homework 1 Michael Downs. ne n 10 + ne n (1)

Math 56 Homework 1 Michael Downs. ne n 10 + ne n (1) . Problem (a) Yes. The following equation: ne n + ne n () holds for all n R but, since we re only concerned with the asymptotic behavior as n, let us only consider n >. Dividing both sides by n( + ne n

More information

APPM/MATH Problem Set 6 Solutions

APPM/MATH Problem Set 6 Solutions APPM/MATH 460 Problem Set 6 Solutions This assignment is due by 4pm on Wednesday, November 6th You may either turn it in to me in class or in the box outside my office door (ECOT ) Minimal credit will

More information

MAE 107 Homework 7 Solutions

MAE 107 Homework 7 Solutions MAE 107 Homework 7 Solutions 1. Tridiagonal system for u xx (x) + u(x) = 1 + sin(πx/4), for x [0, ], where u(0) =, u() = 4, with step size h = 1/. The total number of segments are: n = 0 1/ =. The nodes

More information

CLASS NOTES Computational Methods for Engineering Applications I Spring 2015

CLASS NOTES Computational Methods for Engineering Applications I Spring 2015 CLASS NOTES Computational Methods for Engineering Applications I Spring 2015 Petros Koumoutsakos Gerardo Tauriello (Last update: July 2, 2015) IMPORTANT DISCLAIMERS 1. REFERENCES: Much of the material

More information

Math 2250 Final Exam Practice Problem Solutions. f(x) = ln x x. 1 x. lim. lim. x x = lim. = lim 2

Math 2250 Final Exam Practice Problem Solutions. f(x) = ln x x. 1 x. lim. lim. x x = lim. = lim 2 Math 5 Final Eam Practice Problem Solutions. What are the domain and range of the function f() = ln? Answer: is only defined for, and ln is only defined for >. Hence, the domain of the function is >. Notice

More information

Practice Exam 2 (Solutions)

Practice Exam 2 (Solutions) Math 5, Fall 7 Practice Exam (Solutions). Using the points f(x), f(x h) and f(x + h) we want to derive an approximation f (x) a f(x) + a f(x h) + a f(x + h). (a) Write the linear system that you must solve

More information

Given the vectors u, v, w and real numbers α, β, γ. Calculate vector a, which is equal to the linear combination α u + β v + γ w.

Given the vectors u, v, w and real numbers α, β, γ. Calculate vector a, which is equal to the linear combination α u + β v + γ w. Selected problems from the tetbook J. Neustupa, S. Kračmar: Sbírka příkladů z Matematiky I Problems in Mathematics I I. LINEAR ALGEBRA I.. Vectors, vector spaces Given the vectors u, v, w and real numbers

More information

Rectilinear Motion. Velocity

Rectilinear Motion. Velocity Rectilinear Motion Motion along a line Needed three things. Zero. Positive 3. Units This was our coordinate system Motion was a vector since it had magnitude and direction Average velocity Instantaneous

More information

Chapter 8 Gauss Elimination. Gab-Byung Chae

Chapter 8 Gauss Elimination. Gab-Byung Chae Chapter 8 Gauss Elimination Gab-Byung Chae 2008 5 19 2 Chapter Objectives How to solve small sets of linear equations with the graphical method and Cramer s rule Gauss Elimination Understanding how to

More information

Math 19, Homework-1 Solutions

Math 19, Homework-1 Solutions SSEA Summer 207 Math 9, Homework- Solutions. Consider the graph of function f shown below. Find the following its or eplain why they do not eist: (a) t 2 f(t). = 0. (b) t f(t). =. (c) t 0 f(t). (d) Does

More information

Extrapolation Methods for Approximating Arc Length and Surface Area

Extrapolation Methods for Approximating Arc Length and Surface Area Extrapolation Methods for Approximating Arc Length and Surface Area Michael S. Floater, Atgeirr F. Rasmussen and Ulrich Reif March 2, 27 Abstract A well-known method of estimating the length of a parametric

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

Lectures 9-10: Polynomial and piecewise polynomial interpolation

Lectures 9-10: Polynomial and piecewise polynomial interpolation Lectures 9-1: Polynomial and piecewise polynomial interpolation Let f be a function, which is only known at the nodes x 1, x,, x n, ie, all we know about the function f are its values y j = f(x j ), j

More information

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods COSC 336 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods Fall 2005 Repetition from the last lecture (I) Initial value problems: dy = f ( t, y) dt y ( a) = y 0 a t b Goal:

More information

Math 552 Scientific Computing II Spring SOLUTIONS: Homework Set 1

Math 552 Scientific Computing II Spring SOLUTIONS: Homework Set 1 Math 552 Scientific Computing II Spring 21 SOLUTIONS: Homework Set 1 ( ) a b 1 Let A be the 2 2 matrix A = By hand, use Gaussian elimination with back c d substitution to obtain A 1 by solving the two

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

(x x 0 )(x x 1 )... (x x n ) (x x 0 ) + y 0.

(x x 0 )(x x 1 )... (x x n ) (x x 0 ) + y 0. > 5. Numerical Integration Review of Interpolation Find p n (x) with p n (x j ) = y j, j = 0, 1,,..., n. Solution: p n (x) = y 0 l 0 (x) + y 1 l 1 (x) +... + y n l n (x), l k (x) = n j=1,j k Theorem Let

More information

The stationary points will be the solutions of quadratic equation x

The stationary points will be the solutions of quadratic equation x Calculus 1 171 Review In Problems (1) (4) consider the function f ( ) ( ) e. 1. Find the critical (stationary) points; establish their character (relative minimum, relative maimum, or neither); find intervals

More information

Ordinary differential equation II

Ordinary differential equation II Ordinary Differential Equations ISC-5315 1 Ordinary differential equation II 1 Some Basic Methods 1.1 Backward Euler method (implicit method) The algorithm looks like this: y n = y n 1 + hf n (1) In contrast

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

ERRATA MATHEMATICS FOR THE INTERNATIONAL STUDENT MATHEMATICS HL (CORE) (2nd edition)

ERRATA MATHEMATICS FOR THE INTERNATIONAL STUDENT MATHEMATICS HL (CORE) (2nd edition) ERRATA MATHEMATICS FOR THE INTERNATIONAL STUDENT MATHEMATICS HL (CORE) (nd edition) Second edition - 010 reprint page 95 TEXT last paragraph on the page should read: e is a special number in mathematics.

More information

Quaternion Cubic Spline

Quaternion Cubic Spline Quaternion Cubic Spline James McEnnan jmcennan@mailaps.org May 28, 23 1. INTRODUCTION A quaternion spline is an interpolation which matches quaternion values at specified times such that the quaternion

More information

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS LECTURE 10 APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS Ordinary Differential Equations Initial Value Problems For Initial Value problems (IVP s), conditions are specified

More information

Numerical Methods - Initial Value Problems for ODEs

Numerical Methods - Initial Value Problems for ODEs Numerical Methods - Initial Value Problems for ODEs Y. K. Goh Universiti Tunku Abdul Rahman 2013 Y. K. Goh (UTAR) Numerical Methods - Initial Value Problems for ODEs 2013 1 / 43 Outline 1 Initial Value

More information

Solutions Preliminary Examination in Numerical Analysis January, 2017

Solutions Preliminary Examination in Numerical Analysis January, 2017 Solutions Preliminary Examination in Numerical Analysis January, 07 Root Finding The roots are -,0, a) First consider x 0 > Let x n+ = + ε and x n = + δ with δ > 0 The iteration gives 0 < ε δ < 3, which

More information

AP Calculus AB/BC ilearnmath.net

AP Calculus AB/BC ilearnmath.net CALCULUS AB AP CHAPTER 1 TEST Don t write on the test materials. Put all answers on a separate sheet of paper. Numbers 1-8: Calculator, 5 minutes. Choose the letter that best completes the statement or

More information

CHAPTER 10 Shape Preserving Properties of B-splines

CHAPTER 10 Shape Preserving Properties of B-splines CHAPTER 10 Shape Preserving Properties of B-splines In earlier chapters we have seen a number of examples of the close relationship between a spline function and its B-spline coefficients This is especially

More information

MATH MIDTERM 4 - SOME REVIEW PROBLEMS WITH SOLUTIONS Calculus, Fall 2017 Professor: Jared Speck. Problem 1. Approximate the integral

MATH MIDTERM 4 - SOME REVIEW PROBLEMS WITH SOLUTIONS Calculus, Fall 2017 Professor: Jared Speck. Problem 1. Approximate the integral MATH 8. - MIDTERM 4 - SOME REVIEW PROBLEMS WITH SOLUTIONS 8. Calculus, Fall 7 Professor: Jared Speck Problem. Approimate the integral 4 d using first Simpson s rule with two equal intervals and then the

More information

MATHEMATICS 9740/01 Paper 1 14 September 2012

MATHEMATICS 9740/01 Paper 1 14 September 2012 NATIONAL JUNIOR COLLEGE PRELIMINARY EXAMINATIONS Higher MATHEMATICS 9740/0 Paper 4 September 0 hours Additional Materials: Answer Paper List of Formulae (MF5) Cover Sheet 085 5 hours READ THESE INSTRUCTIONS

More information

Computer Problems for Taylor Series and Series Convergence

Computer Problems for Taylor Series and Series Convergence Computer Problems for Taylor Series and Series Convergence The two problems below are a set; the first should be done without a computer and the second is a computer-based follow up. 1. The drawing below

More information