Consider a water tank shown in the figure. It has one wall at $x = L$ and can be taken to be very wide in the $z$ direction. When filled with a liquid of surface tension $S$ and density $\rho$, the liquid surface makes angle $\theta_0$ ($\theta_0 << 1$) with the $x$-axis at $x = L$. If $y(x)$ is the height of the surface then the equation for $y(x)$ is :
(take $\theta(x) = \sin\theta(x) = \tan\theta(x) = \dfrac{dy}{dx}$, $g$ is the acceleration due to gravity)

Answer: (B) $\dfrac{d^2y}{dx^2} = \dfrac{\rho g}{S}y$
Take a thin strip of the liquid surface between $x$ and $x + dx$ (unit length along $z$). Measure $y$ from the level of the flat liquid surface far away, where the pressure just below the surface is atmospheric.
Surface tension pulls along the surface at both edges of the strip. Its net vertical component is
$$S\sin\theta(x + dx) - S\sin\theta(x) = S\frac{d\theta}{dx}dx = S\frac{d^2y}{dx^2}dx$$
Just below a surface at height $y$, the liquid pressure is lower than atmospheric by $\rho g y$. So the atmosphere pushes the strip down with a net force $\rho g y\,dx$.
For equilibrium:
$$S\frac{d^2y}{dx^2} = \rho g y \;\Rightarrow\; \frac{d^2y}{dx^2} = \frac{\rho g}{S}y$$
Solution by Sreeraj P, M.Sc Physics