x'' - 2x' + x = 4t, x(0) = 1, x'(0)=1 Introducing and we have the system right? Using Euler's method with step size h=0.1, we get It's easy to see that , but what is ?
What issues do you have with euler's method? What don't you understand? Why are you asking us to do simple problems for you? -blazed
I don't see what the issue is here man... Well, first of all, I'm going to see that by: You actually meant: In which case You have y_{2,0} and you have y_{1,0}. Proceed. Good luck. -blazed Edit: Your t should be where
Actually, this is a good question and this issue can be a point of confusion when first learning. One often hears of Forward Euler and Backward Euler methods. The forward method is probably what you are using since it is more common and I think BlazedAces' answer is correct for that approach. However, in the backward Euler method the time value would be t(n+1) instead of t(n). Anyway, I thought I'd mention that since what appears to be a simple problem can often have little points of confusion. This simple Forward Euler method is generally not used for numerical analysis since the accuracy is much poorer than higher order methods. However, it is often used in real-time micorprocessor based control systems since the calculations can be perfomed quickly and with minimal delay.