Beam deflections by integration method

For this beam, C1 and C2 are zero. We can now complete the equations for slope:

and deflection:

The equations are not quite complete because values for Ay and MA have not been determined in terms of P and L.

Here is Canvas object wihch demonstrate the problem.