Substitute the boundary condition
into the slope equation
Substitute 0 for each occurrence of x in the slope equation.
Next, substitute the second boundary condition
into the deflection equation