NUMERICAL ANALYSIS PROBLEMS

Similar documents
The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests.

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

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

MA2501 Numerical Methods Spring 2015

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

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

Math Numerical Analysis Mid-Term Test Solutions

CS 257: Numerical Methods

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

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

Readings: Finish Section 5.2

Midterm Review. Igor Yanovsky (Math 151A TA)

Do not turn over until you are told to do so by the Invigilator.

CS 323: Numerical Analysis and Computing

Name of the Student:

Lösning: Tenta Numerical Analysis för D, L. FMN011,

2905 Queueing Theory and Simulation PART IV: SIMULATION

3. Numerical Quadrature. Where analytical abilities end...

COURSE Numerical integration of functions

Introductory Numerical Analysis

Contents. I Basic Methods 13

Numerical Methods in Physics and Astrophysics

MATH 409 Advanced Calculus I Lecture 16: Mean value theorem. Taylor s formula.

MATHEMATICAL METHODS INTERPOLATION

Polytechnic Institute of NYU MA 2212 MIDTERM Feb 12, 2009

PARTIAL DIFFERENTIAL EQUATIONS

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

MADHAVA MATHEMATICS COMPETITION, December 2015 Solutions and Scheme of Marking

M.SC. PHYSICS - II YEAR

Computational Methods

LECTURE 16 GAUSS QUADRATURE In general for Newton-Cotes (equispaced interpolation points/ data points/ integration points/ nodes).

Previous Year Questions & Detailed Solutions

Chapter 4. Solution of Non-linear Equation. Module No. 1. Newton s Method to Solve Transcendental Equation

Numerical Methods in Physics and Astrophysics

MATH Notebook 5 Fall 2018/2019

CIVL Continuous Distributions

S n = x + X 1 + X X n.

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018

Northwestern University Department of Electrical Engineering and Computer Science

5. Hand in the entire exam booklet and your computer score sheet.

Program : M.A./M.Sc. (Mathematics) M.A./M.Sc. (Final) Paper Code:MT-08 Numerical Analysis Section A (Very Short Answers Questions)

Differential Equations 2280 Sample Midterm Exam 3 with Solutions Exam Date: 24 April 2015 at 12:50pm

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

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

Chapter 8: Taylor s theorem and L Hospital s rule

Solution of Algebric & Transcendental Equations

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 16. f(x) dx,

APPM/MATH Problem Set 6 Solutions

Chapter 5: Numerical Integration and Differentiation

5 Numerical Integration & Dierentiation

Simpson s 1/3 Rule Simpson s 1/3 rule assumes 3 equispaced data/interpolation/integration points

Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

Section 3.7. Rolle s Theorem and the Mean Value Theorem

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

Examination paper for TMA4215 Numerical Mathematics

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

Numerical and Statistical Methods

AM205: Assignment 3 (due 5 PM, October 20)

Outline. 1 Numerical Integration. 2 Numerical Differentiation. 3 Richardson Extrapolation

Numerical and Statistical Methods

Numerical Analysis Preliminary Exam 10.00am 1.00pm, January 19, 2018

12.0 Properties of orthogonal polynomials

Numerical Methods for Differential Equations Mathematical and Computational Tools

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A)

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad MECHANICAL ENGINEERING TUTORIAL QUESTION BANK

Examination paper for TMA4125 Matematikk 4N

9.6 Predictor-Corrector Methods

CS 323: Numerical Analysis and Computing

Applied Numerical Analysis (AE2220-I) R. Klees and R.P. Dwight

Numerical Analysis: Interpolation Part 1

Probability Models. 4. What is the definition of the expectation of a discrete random variable?

What is a random variable

THE UNIVERSITY OF NEW SOUTH WALES SCHOOL OF PHYSICS PHYS2020 COMPUTATIONAL PHYSICS FINAL EXAM SESSION I Answer all questions

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

MATH 56A: STOCHASTIC PROCESSES CHAPTER 6

Chap. 20: Initial-Value Problems

Computing Integrals. Lectures INF2320 p. 1/48

STAT 516 Midterm Exam 2 Friday, March 7, 2008

NUMERICAL ANALYSIS. K.D. Anderson J.S.C. Prentice C.M. Villet

Tutorial 1, B. Tech. Sem III, 24 July, (Root Findings and Linear System of Equations)

Additional exercises with Numerieke Analyse

Errata List Numerical Mathematics and Computing, 7th Edition Ward Cheney & David Kincaid Cengage Learning (c) March 2013

Numerical Integra/on

Introduction to Numerical Analysis

Root Finding (and Optimisation)

continuous random variables

Chapter 1 Mathematical Preliminaries and Error Analysis

Exam in TMA4215 December 7th 2012

Stat 451 Lecture Notes Numerical Integration

Scilab. Prof. S. A. Katre Dept. of Mathematics, University of Pune

MATH 3510: PROBABILITY AND STATS July 1, 2011 FINAL EXAM

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

Lecture Notes on Introduction to Numerical Computation 1

CSE 312, 2017 Winter, W.L. Ruzzo. 7. continuous random variables

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Transcription:

NUMERICAL ANALYSIS PROBLEMS JAMES KEESLING The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests.. Solving Equations Problem. Suppose that f : R R is continuous and suppose that for a < b R, f(a) f(b) < 0. Show that there is a c with a < c < b such that f(c) = 0. Problem 2. Solve the equation x 5 3x 4 + 2x 3 x 2 + x = 3. Solve using the Bisection method. Solve using the Newton-Raphson method. How many solutions are there? Problem 3. Solve the equation x = cos x by the Bisection method and by the Newton- Raphson method. How many solutions are there? Solve the equation sin(x) = cos x by the Bisection method and by the Newton-Raphson method. How many solutions are there? Problem 4. Let h be a continuous function h : R n R n. Let x 0 R n. Suppose that h n (x 0 ) z as n. Show that h(z) = z. Problem 5. Solve the equation x 4 = 2 by the Newton-Raphson method. How many real solutions are there? For which starting values x 0 will the method converge? Problem 6. Suppose that f : R R is continuous and that f(z) = 0. Suppose that f (z) 0. Let g(x) = x f(x) f (x). Show that there is an ε > 0 such that for any x 0 [z ε, z + ε], g n (x 0 ) z as n Problem 7. Show that the Newton-Raphson method converges quadratically. That is, show that for large n, once there are n digits correct, the next iteration has approximately 2n digits correct.

2 JAMES KEESLING 2. Lagrange Polynomials { Problem( 8. Determine the polynomial p(x) of degree 5 passing through the points (0, 0), 2, 0), (, 0), ( 3 2, ), (2, 0), ( 5 2, 0)}. Problem 9. Determine the VanderMonde matrix for the points [ 0, 9, 2 9,..., ]. 3. Numerical Integration Problem 0. Determine the closed Newton-Cotes coefficients for eleven points, {a 0, a,..., a 0 }. Use these values to estimate the integral 4 4 + x 2 dx. Problem. Suppose that {x i } n i=0 is a set of points in R such that x i x j for all i j. Let j 0 {0,,..., n}. Give a formula for a polynomial p(x) such that p(x) has degree n and such that p(x j ) = 0 for j j 0 and p(x j0 ) =. Problem 2. Estimate 0 sin(x 2 )dx using Gaussian quadrature. Problem 3. Show that Gaussian quadrature using n + points is exact for polynomials of degree k 2n +. Problem 4. Explain the Romberg method for approximating the integral. If the interval is divided into 2 n subintervals and the Romberg method is applied, what is the error of the method? Problem 5. Consider the points { x 0 = 2, x = 3 4, x 2 = 5} 4 in [0, ]. What should {a0, a, a 2 } be so that the estimate 0 f(x)dx a 0 f(x 0 ) + a f(x ) + a 2 f(x 2 ) is exact for f(x) a polynomial of degree k 2? Problem 6. Consider the points { x 0 = 2, x = 3 } 4 in [0, ]. What should {A0, A } be so that the estimate 0 f(x)dx A 0 f(x 0 ) + A f(x ) is exact for f(x) all polynomials of degree k?

NUMERICAL ANALYSIS PROBLEMS 3 Solution. Let let f(x) be a function on [0, ]. Then the estimate will be 0 p(x)dx where p(x) is the Lagrange polynomial which is f ( ) 2 at 2 and f ( ) 3 4 at 3 4. Now p(x) = f ( ) 2 p0 (x) + f ( ) 3 4 p (x) where p 0 (x) = (x 3 4 ) ( 2 3 4 ) and p (x) = (x 2 ) ( 3 4 2 ). Now 0 p(x)dx = ( ( 0 f ) 2 p0 (x) + f ( ) 3 4 p (x) ) dx. This shows that A 0 = 0 p 0(x)dx and A = 0 p (x)dx. Thus, A 0 = and A = 0. Problem 7. Give the Legendre polynomials up to degree 0. List the properties that determine these polynomials. 4. Numerical Differentiation Problem 8. Determine the coefficients to compute the first derivative of f(x) = sin(x 2 ) at a = 2 using the points {a 2h, a h, a, a+h, a+2h}. Give the estimate of the derivative as a function of h. Determine the best value of h for the greatest accuracy of the answer. How many digits accuracy can you expect with this choice of h? Problem 9. Determine the coefficients to compute the second and third derivative of f(x) = sin(x 2 ) at a = 2 using the points {a 2h, a h, a, a + h, a + 2h}. Give the estimate of the second and third derivatives as functions of h. Determine the best value of h for the greatest accuracy of the answer. How many digits accuracy can you expect with this choice of h? Problem 20. Suppose that k n. Show that when estimating the kth derivative of f(x) at a using the points {a + m 0 h, a + m h, a + m 2 h,, + m n h}, the result is exact f(x) a polynomial of degree p n. 5. Differential Equations Problem 2. Solve the differential equation for dx dt = f(t, x) = t x2 with x(0) =. Solve using Picard iteration for five iterations. Solve using the Taylor method of order 3,4, and 5. Solve using the Euler method, modified Euler, Heun, and Runge-Kutta methods using h = 20 and n = 20. Compare the answers and the errors for each of these methods. Problem 22. How would you go about solving the differential equation d2 x = x with dt 2 x(0) = and x (0) = with each of the methods listed in the previous problem. What changes would need to be made in the programs?

4 JAMES KEESLING Problem 23. Find a Taylor expansion for the solution x(t) = a 0 + a t + a 2 t 2 + for the differential equation dx dt = t x with the boundary condition x(0) =. Solve for {a 0, a, a 2, a 3, a 4, a 5 }. Do this by hand solving for these coefficients recursively. Solve for the coefficients using the Taylor Method program included in your program collection. Can you determine the general a n? 6. Simulation and Queueing Theory Problem 24. Explain the basis for the Bowling program. Run some examples with different values for the probability of a strike, spare, and open frame for each frame. Discuss the results. Problem 25. State the three assumptions for a Poisson process. For a Poisson process with rate α derive the probability of k events in an interval of length t. Show that this is Pr[k] = (α t)k k! e α t. Problem 26. Give the Kolmogoroff-Chapman equations for a queue with a single server assuming an arrival rate α and service rate σ assuming Poisson arrivals and exponential service times. Assume that σ > α > 0. The Kendall symbolism for a single server queue with classic assumptions is M/M//FIFO. Problem 27. Assume a queueing system with Poisson arrival rate of α and a single server with an exponential service rate σ. Assume that σ > α > 0. Determine the steady-state probabilities, {p n } n=0 for this system. Problem 28. Assume a queueing system with Poisson arrival rate of α and a single server with an exponential service rate σ. Assume that σ > α > 0. This is an M/M//FIFO queue. Determine the steady-state probabilities for n, {p n } n=0 for this system. Determine the expected number of customers in the system, E[n] = n = n=0 np n. Problem 29. Use the Queue program to simulate a queueing system for M/M//FIFO with α = 9 and σ = 0. Simulate a queueing system for M/M/2/FIFO with α = 9 and σ = 0. How do the results compare with the theoretical calculations for {p n } n=0 in each of these cases? Problem 30. Suppose that α and α 2 are rates of two independent Poisson processes. Show that the combined process has rate α + α 2.

NUMERICAL ANALYSIS PROBLEMS 5 Problem 3. Assume that you have a program that will generate a sequence of independent random numbers from the uniform distribution on [0, ]. Your calculator has a program that is purported to have this property. It is the rand() function. Determine a program that will generate independent random numbers from the exponential waiting time with parameter α. The probability density function for this waiting time is given by f(t) = α e α t and the cumulative distribution function is given by F (t) = e α t. Problem 32. Suppose that there are an infinite number of servers in the queueing system M/M/. Suppose that the arrival rate is α and the service rate for each server is σ. Determine the steady-state probabilities {p n } n=0 for this system. Explain how this could be used to model the population of erythrocytes in human blood. What would α and σ be in this case? Determine approximate numerical values for α and σ in this case. Problem 33. In Gambler s Ruin two players engage in a game of chance in which A wins a dollar from B with probability p and B wins a dollar from A with probability q = p. There are N dollars between A and B and A begins the n dollars. They continue to play the game until A or B has won all of the money. What is the probability that A will end up with all the money assuming that p > q. Assume that p = 20 38 which happens to be the house advantage in roulette. What is the probability that A will win all the money if n = $00 and N = $, 000, 000, 000? Problem 34. Suppose that Urn I is chosen with probability 2 and Urn II is also chosen with probability 2. Suppose that Urn I has 5 white balls and 7 black balls and Urn II has 8 white balls and 3 black balls. After one of the urns is chosen, a ball is chosen at random from the urn. What is the probability that the urn was Urn I given that the ball chosen was white? Problem 35. A test for a disease is positive with probability.95 when administered to a person with the disease. It is positive with probability.03 when administered to a person not having the disease. Suppose that the disease occurs in one in a million persons. Suppose that the test is administered to a person at random and the test is positive. What is the probability that the person has the disease. Problem 36. Let f : [a, b] [a, b] be continuous. Show that n n i= f((b a) rand()+a) (b a) converges to b a f(x)dx as n. This limit is the basic underlying principle of Monte-Carlo simulation.