Explanation:

To find maximum deflection expression.
Students are advised to memorise the standard results. This δ=30EIqL4 is a standard result for cantilever beam with UVL.
For derivation of formula refer this

Here w=Lpx per unit length at a distance x from O
∴EIdx4d4y=−Lpx
EIdx3d3y=−2Lpx2+C1
S.F. is zero at x = 0, giving C1 = 0
∴EIdx3d3y=−2Lpx2
EIdx2d2y=−6Lpx3+C2
B.M. is zero at x = 0, giving C2 = 0
∴EIdx2d2y=−6Lpx3
Integrate again
EIdxdy=−24Lpx4+C3
But;dxdy=0;at;x=L,;giving
0=−24LpL4+C3
i.e.,;C3=24pL3
∴dxdy=EI1(−24Lpx4+24pL3)=24LEIp(L4−x4)
y=24LEIp(L4x−5x5)+C4
Now y = 0 at x = L, giving
0=24EILp(L5−5L5)+C4
C4=−5×24EIL4pL5=−30EIpL4
∴y=24LEIp(L4x−5x5)−30EIpL4
y=−120EILp(4L5−5L4x+x5)
Since the deflection will be maximum at the end O i.e. at x = 0, put this in the above obtained expression to get δ=30EIpL4, where negative indicates the deflection is towards negative y axis.