MathCastle
Differential EquationsChallengeNumerical Methods: Euler to Runge–Kutta

Numerical Methods: Euler to Runge–Kutta · Challenge problem

The boundary value problem y′′=−yy'' = -y, y(0)=0y(0) = 0, y(1)=1y(1) = 1 is solved by shooting: write it as u′=vu' = v, v′=−uv' = -u with u(0)=0u(0) = 0, v(0)=sv(0) = s, march to t=1t = 1 with two steps of Heun's method (h=12h = \dfrac12; k1=F(wn)\mathbf{k}_1 = F(\mathbf{w}_n), k2=F(wn+hk1)\mathbf{k}_2 = F(\mathbf{w}_n + h\mathbf{k}_1), wn+1=wn+h2(k1+k2)\mathbf{w}_{n+1} = \mathbf{w}_n + \dfrac{h}{2}(\mathbf{k}_1 + \mathbf{k}_2)), and choose the slope ss so that the computed uu at t=1t = 1 equals 11. Find ss. Express your answer as a common fraction.