Below is the derivation of the fixed-end-forces for a triangular load that is applied to part or the entirety of an element. If $a_1=0$ and $a_2=L$, then the solution simplifies to that of a triangular load over the entire element.

FEF - Partial Triangular Load.pdf