Shear and moment throughout the beam as a function of x

Determine the shear and moment throughout the beam as a function of x, then draw the shear and moment diagrams for the beam