3 (a) In this case $N(x)=\frac{1}{2} \rho g b h(l-x)^{2}$ where $b=$ width of the girder.
Also $I=b h^{3} / 12$. Then,
$$
\frac{E b h^{2}}{12} \frac{d^{2} y}{d x^{2}}=\frac{\rho g b h}{2}\left(l^{2}-2 l x+x^{2}\right)
$$
Integrating, $\quad \frac{d y}{d x}=\frac{6 \rho g}{E h^{2}}\left(l^{2} x-l x^{2}+\frac{x^{3}}{3}\right)$
using $\frac{d y}{d x}=0$ for $x=0 .$ Again integrating
$$
y=\frac{6 \rho g}{E h^{2}}\left(\frac{l^{2} x^{2}}{2}-\frac{b x^{3}}{3}+\frac{x^{4}}{12}\right)
$$
Thus
$$
\begin{aligned}
&\lambda=\frac{6 \rho g l^{4}}{E h^{2}}\left(\frac{1}{2}-\frac{1}{3}+\frac{1}{12}\right) \\
&=\frac{6 \rho g l^{4}}{E h^{2}} \frac{3}{12}=\frac{3 \rho g l^{4}}{2 E h^{2}}
\end{aligned}
$$
(b) As before, $E I \frac{d^{2} y}{d x^{2}}=N(x)$ where $N(x)$ is the bending moment due to section $P B$. This bending moment is clearly
$$
\begin{aligned}
N &=\int_{x}^{2} w d \xi(\xi-x)-w l(2 l-x) \\
&=w\left(2 l^{2}-2 x l+\frac{x^{2}}{2}\right)-w l(2 l-x)=w\left(\frac{x^{2}}{2}-x l\right)
\end{aligned}
$$$$
=\frac{6 \rho g l^{4}}{E h^{2}} \frac{3}{12}=\frac{3 \rho g l^{4}}{2 E h^{2}}
$$
(b) As before, $E I \frac{d^{2} y}{d x^{2}}=N(x)$ where $N(x)$ is the bending moment due to section $P B$.
This bending moment is clearly
$$
\begin{aligned}
N &=\int_{x}^{2} w d \xi(\xi-x)-w l(2 l-x) \\
&=w\left(2 l^{2}-2 x l+\frac{x^{2}}{2}\right)-w l(2 l-x)=w\left(\frac{x^{2}}{2}-x l\right)
\end{aligned}
$$
(Here $w=\rho g b h$ is weight of the beam per unit length)
Integrating again, $E I y=w\left(\frac{x^{4}}{24}-\frac{x^{3} l}{6}\right)+\frac{w l^{3} x}{3}+c_{1}$
As $y=0$ for $x=0, c_{1}=0 .$ From this we find
$$
\lambda=y(x=l)=\frac{5 w l^{4}}{24} / E I=\frac{5 \rho g l^{4}}{2 E h^{2}}
$$