- 1,118
- 1
Got this problem and we've been given a program which can solve for x, for the equation:
Ax = b
Where
A = \left( \begin{array}{rrrrrr}<br /> b & c & 0 & 0 & \cdots & 0 \\<br /> a & b & c & 0 & \cdots & 0\\<br /> 0 & \ddots & \ddots & \ddots & & \vdots \\<br /> \vdots & & \ddots & \ddots & \ddots & 0 \\<br /> \vdots & & & \ddots & \ddots & c\\<br /> 0 & \cdots & \cdots & 0 & a & b \\<br /> \end{array}<br /> \right)
If I left a = - 1, c = -1 and b = 2 + (1/n^2) (for my number of intervals n) and b = [1/n^2, 1/n^2, ..., 1/n^2]
Then I am approximation solutions to:
-\frac{d^2y}{dx^2} + y = 1 \quad \text{and} \quad y(0)=0 \quad y(1)=0
I kind of understand that (or at least I have notes in front of me which seem to conclude that fairly logically). However I am now asked to set up a similar system for:
-\frac{d^2y}{dx^2} + 20 \frac{dy}{dx} = 1 \quad \text{and} \quad y(0)=0 \quad y(1)=0
And I have no idea where to start, any help please.
Ax = b
Where
A = \left( \begin{array}{rrrrrr}<br /> b & c & 0 & 0 & \cdots & 0 \\<br /> a & b & c & 0 & \cdots & 0\\<br /> 0 & \ddots & \ddots & \ddots & & \vdots \\<br /> \vdots & & \ddots & \ddots & \ddots & 0 \\<br /> \vdots & & & \ddots & \ddots & c\\<br /> 0 & \cdots & \cdots & 0 & a & b \\<br /> \end{array}<br /> \right)
If I left a = - 1, c = -1 and b = 2 + (1/n^2) (for my number of intervals n) and b = [1/n^2, 1/n^2, ..., 1/n^2]
Then I am approximation solutions to:
-\frac{d^2y}{dx^2} + y = 1 \quad \text{and} \quad y(0)=0 \quad y(1)=0
I kind of understand that (or at least I have notes in front of me which seem to conclude that fairly logically). However I am now asked to set up a similar system for:
-\frac{d^2y}{dx^2} + 20 \frac{dy}{dx} = 1 \quad \text{and} \quad y(0)=0 \quad y(1)=0
And I have no idea where to start, any help please.
Last edited: