Download Math 240 – Spring 2005

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Line (geometry) wikipedia , lookup

System of polynomial equations wikipedia , lookup

Elementary algebra wikipedia , lookup

System of linear equations wikipedia , lookup

Recurrence relation wikipedia , lookup

Partial differential equation wikipedia , lookup

Transcript
Math 240 – Spring 2005
Homework #6
Due date: March 28
All work must be shown in order to receive full credit
Solve each of the difference equations given below, and check your analytic solution
against the numeric solution computed directly using the difference equation, for
values of n from 2 to 20. Present this comparison in the form of a table with four
columns: the 1st column should contain values of n, the 2nd column should contain the
corresponding yn values obtained analytically, while the 3rd column should list the yn
values computed directly (i.e. through iteration given by the difference equation).
Finally, the 4th column should show the difference between the 2nd and 3rd columns. If
you solved these equations correctly, the difference between the 2nd and 3rd columns
will be tiny.
1. Non-linear 1st-order difference equation (hint: it is very simple to solve - find the
first several numbers in the sequence, and the solution will be obvious):
 yn  yn21


2
 y0 
3

2. Linear homogeneous 2nd order difference equation:
4 yn  2  8 yn 1  3 yn  0

 y0  2
y 1
 1
3. Linear non-homogeneous (i.e. with a non-zero constant term) 2nd order difference
equation (hint: the solution is given by the solution of the corresponding
homogeneous equation of problem 2, plus a constant term, which should satisfy
the non-homogeneous equation):
4 yn  2  8 yn 1  3 yn  1

 y0  2
y 1
 1