Solution (source code)

= Solution

Local <force balance> and <moment balance> on a slender rod are
$$
\boxed{
\partial_s\mathbf F+\mathbf f=0,
\qquad
\partial_s\mathbf M+\mathbf t\times\mathbf F+\mathbf m=0
}.
$$
In a planar rod, $\mathbf M$ and $\mathbf m$ point perpendicular to the plane.