

The free body diagram is


To write the load as a singularity function,
it cannot end in the middle of the beam. So I redraw the beam with equivalent
loads
:

These distributed loads may be expressed as:

Check: function #1 - At x = 0, it yields
as
it should.

Again, I check this. At x = 0, V = 0 (as
it should be). And at x = 2a, V =
(which
is also correct). Now I am ready to compute the bending moment:

Check: At x = 0, the moment should be zero,
and it is! At x = 2a, the moment should be
,
and it is!
To determine the bending moment just to
the right of C (not required) , I substitute x = a to get
.