The velocity of water waves v may depend upon their wavelength λ the density of water ρ and the acceleration due to gravity g. The method of dimensions gives the relation between these quantities as
v2∝ g λ
Let vx=kgyλzρδ
Now by substituting the dimensions of each quantities and equating the powers of M,L and T, we get δ = 0 and x = 2,y = 1,z = 1.