Step 1: What the question asks:
We must state Huygens' idea of secondary wavelets and then derive the two laws of refraction from it. We will use an equal-time argument: all parts of a wavefront must take the same time to move from the incident wavefront to the refracted wavefront.
A wavefront is a surface where the wave is in the same phase everywhere, and rays are drawn at right angles to it.
Step 2: Statement of the principle:
Every point on a wavefront behaves like a new source and sends out spherical secondary wavelets with the speed of the wave in that medium.
After a time $t$, the wavefront is the common tangent (the envelope) to all the secondary wavelets drawn from the earlier wavefront. Each wavelet has radius $vt$ in the medium where it travels.
Step 3: Set up the geometry:
Let a plane surface separate medium 1 (speed $v_1$) and medium 2 (speed $v_2$). A plane wavefront $AB$ meets the surface at an angle $i$, and the refracted wavefront $CE$ leaves the surface at an angle $r$.
Let $A$ and $C$ be the two end points on the surface, a distance $L$ apart. Wavefront $AB$ touches the surface at $A$, and the last point $B$ reaches it at $C$.
Take any ray that meets the surface at a point $P$ at distance $x$ from $A$, where $0 \le x \le L$.
Step 4: Write the total travel time along that ray:
Before reaching $P$, the ray travels from the incident wavefront $AB$ to $P$. This distance is $x \sin i$. The time taken in medium 1 is
\[ t_1 = \frac{x \sin i}{v_1} \]
After $P$, the ray travels in medium 2 up to the refracted wavefront $CE$. This distance is $(L-x)\sin r$. The time taken is
\[ t_2 = \frac{(L-x)\sin r}{v_2} \]
So the total time is
\[ T = \frac{x \sin i}{v_1} + \frac{(L-x)\sin r}{v_2} \]
Step 5: Apply the condition that all rays take equal time:
For $CE$ to be a true wavefront, every ray must take the same time, whatever the value of $x$. Rewrite $T$ as
\[ T = \frac{L \sin r}{v_2} + x\left(\frac{\sin i}{v_1} - \frac{\sin r}{v_2}\right) \]
$T$ is the same for every $x$ only if the bracket multiplying $x$ is zero:
\[ \frac{\sin i}{v_1} = \frac{\sin r}{v_2} \;\Rightarrow\; \frac{\sin i}{\sin r} = \frac{v_1}{v_2} \]
Put $v = c/n$ for each medium. Then $v_1/v_2 = n_2/n_1$, which is a constant for the two media. This is Snell's law, the second law of refraction.
Step 6: First law and physical meaning:
Wavefronts $AB$ and $CE$ are both perpendicular to the plane of the figure, and rays are perpendicular to the wavefronts. So the incident ray, the refracted ray and the normal all lie in one plane. This is the first law.
If medium 2 is denser, $v_2 < v_1$, so $\sin r < \sin i$ and the ray bends towards the normal. The frequency stays the same on crossing the surface, so the wavelength is reduced in the same ratio as the speed.
Final Answer:
Both laws of refraction follow from Huygens principle: the rays and the normal are coplanar, and the sines of the two angles are in the ratio of the speeds in the two media.
\[ \boxed{\frac{\sin i}{\sin r}=\frac{v_1}{v_2}=\frac{n_2}{n_1}} \]