Write a MATLAB program to solve the following two-point boundary value problems and then compare numerical solutions graphically. (a) d 2 θ dt2 = −θ(t), 0 < t < 2π, θ(0) = 0.7, θ(2π) = 0.7. 2 (b) d 2 θ dt2 = − sin(θ(t)), 0 < t < 2π, θ(0) = 0.7, θ(2π) = 0.7.
Write a MATLAB program to the method of undetermined coefficients for approximating d ku(xr) dxk , k = 1, 2, 3 and xr is a reference point.