November 1997  ICTCM X (Chicago)  7

Multi-point Boundary Conditions

> ODE := diff( y(x), x$2 ) + y(x) = 0:
> BC2p := D(y)(Pi/2)+D(y)(Pi/4)=-1, y(Pi/4)+y(Pi/2)=1;

BC2p := D(y)(\frac{1}{2} π) + D(y)(\frac{1}{4} π) = −1, y(\frac{1}{4} π) + y(\frac{1}{2} π) = 1

> dsolve( { ODE, BC2p }, y(x) );
> BVPsolve( { ODE, BC2p }, y(x) );

y(x) = \frac{1}{2} \sqrt{2} cos(x) + (1 − \frac{1}{2} \sqrt{2}) sin(x)