I think the easiest thing is to define the loading using singularity functions, set it equal to EIy'''' (where E = elastic mod, I = moment of inertia, y'''' = fourth derivative of deflection); then successively integrate to get the shear force, moment, and finally the deflection as a function...