By super –position method:
δ1=θ×L2
δ1=Q.L216EI×L2
δ1=QL332EI
A moment of PL2 at C is also acting
δ2=P(L2)33EI+(PL2).L3EI×L2
=PL324EI+PL312EI=PL38EI
For deflection at D to be zero
δ1=δ2
QL332EI=PL38EI
QP=328=4