Below is the derivation of the fixed-end-forces for a uniformly distributed load applied along the full length of an element.

FEF - Uniformly Distributed Load.pdf