Chapter 8: Problem 2
Consider the linear equation $$ Y^{\prime}(x)=\lambda Y(x)+(1-\lambda) \cos (x)-(1+\lambda) \sin (x), \quad Y(0)=1 $$ from (8.3) of Section 8.1. The true solution is \(Y(x)=\sin (x)+\cos (x)\). Solve this problem using Euler's method with several values of \(\lambda\) and \(h\), for \(0 \leq x \leq 10\). Comment on the results. (a) \(\quad \lambda=-1 ; \quad h=0.5,0.25,0.125\) (b) \(\lambda=1 ; \quad h=0.5,0.25,0.125\) (c) \(\quad \lambda=-5 ; \quad h=0.5,0.25,0.125,0.0625\) (d) \(\quad \lambda=5 ; \quad h=0.0625\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.