Solution
Before starting this example, please read a short Theoretical Introduction.
We draw the moment diagrams for the beam in the state of initial loading and separately for unit loading.
External loading state - state P + moment diagram Mp

Unit state + moment diagram M

Maximum deflection at the end of the beam:
\begin{aligned}&w_{max}=\frac{1}{EI}\int(Mp(x)\cdot M(x)) dS=\\ \end{aligned}
If you have any questions, comments, or think you have found a mistake in this solution, please send us a message at kontakt@edupanda.pl.