Comparative numerical laboratory

BVP Methods: Shooting versus Finite Differences — Chapter 11

Solve \(-y''=1,\ y(0)=y(1)=0\) and compare the ideas.

\[ y(x)=\frac{x(1-x)}{2}. \]

Methods compared

MethodConvenienceInconvenience / warning
ShootingUses IVP technology and is intuitive.Can be sensitive or unstable for difficult BVPs.
Finite differencesDirectly imposes boundary values.Requires solving algebraic systems.
Exact solutionUseful benchmark here.Usually unavailable.

Illustrative plot / animation

Numerical diagnostics

What the student must compare