In the second diagram, at the point $x$ what is the moment due to
the axial force?
The mathematics behind moments of
forces are typically covered in early A-level Mechanics modules.
The methods for solving 2nd order differential equations are
typically done in the A-level module FP2.