Download presentation
Presentation is loading. Please wait.
1
MATH10001 Project 3 Difference Equations 1
ugstudies/units/ /level1/MATH10001/
2
A sequence (yn)n0 is an infinite list of terms
y0, y1, y2,… A difference equation is a relationship between the terms in a sequence. Examples yn+1 = yn, for all n 0. yn+1 = r yn (1 – yn) for all n 0. Difference equations are particularly useful when using computers because they deal with discrete data.
3
Linear Difference Equations
An m-th order linear difference equation with constant coefficients has the form am yn+m + am-1 yn+m-1 + … + a1 yn+1 + a0 yn = r(n) where a0,…,am constants and r(n) is some function of n. The solution is in two parts: (A) Solution to the homogeneous equation with r(n) = 0. (B) A particular solution ie. any function that satisfies the original difference equation. The general solution is the sum of solutions for (A) and (B).
4
(A) Homogeneous Equations
We start with the 1st order case: a1 yn+1 + a0 yn = where a1 0. We can rewrite this as yn+1=C yn for some constant C. So yn = Cyn-1 = C2 yn-2 = … = Cn y0. Example yn+1 – 3yn = 0, y0 = 1.
5
In the m-th order case, the homogeneous equation has the form
am yn+m + am-1 yn+m-1 + … + a1 yn+1 + a0 yn = 0. Again look for solutions of the form yn+1 = C yn, for all n 0. The equation becomes am Cn+m + am-1 Cn+m-1 +…+ a1Cn+1 + a0 Cn= 0. Dividing by Cn gives am Cm + am-1 Cm-1 +…+ a1C + a0 = 0. a polynomial of degree m in C.
6
This equation has m roots C1, C2, … ,Cm.
We get m solutions to the difference equation A1C1n, A2C2n, … , AmCmn. for some constants A1,…,Am. The general solution to the homogeneous difference equation is the sum of these solutions yn = A1C1n + A2C2n + … + AmCmn. Example The Fibonacci sequence 1,1,2,3,5,…
7
(A) Particular Solutions
To solve a non-homogeneous difference equation we need to find an additional function of n to account for the right-hand side of the equation r(n). We look for a single solution to the equation. This will often be a function of the same type as r(n). Example Solve yn+1 – 2yn = n, where y0 = 1.
8
The Mandelbrot Set
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.