Ordinary refraction occurs when a light ray passes from one medium into another and changes direction according to Snell’s law.
In most familiar materials, the refractive index is positive, so the transmitted ray appears on the opposite side of the normal from the incident ray in the usual way.
Metamaterials introduce a striking variation of this picture: in an effective negative-index medium, the refracted phase ray can bend to the “wrong” side of the normal.
This phenomenon is called negative refraction.
In the simplified ray-level model used in this calculator, Snell’s law is written as
\[
n_1\sin\theta_i=n_2\sin\theta_t.
\]
Solving for the transmitted angle gives
\[
\sin\theta_t=\frac{n_1}{n_2}\sin\theta_i.
\]
If the transmitted medium has a negative refractive index
\((n_2<0)\),
then the right-hand side can become negative even when the incident angle is positive.
As a result, the transmitted angle
\(\theta_t\)
becomes negative.
In this ray convention, that means the refracted ray lies on the same side of the normal as the incident ray, which is the hallmark of negative refraction.
Consider the prompt’s sample values:
\(n_1=1\),
\(n_2=-1.5\),
and
\(\theta_i=30^\circ\).
Then
\[
\sin\theta_t=\frac{1}{-1.5}\sin30^\circ
=-\frac{1}{1.5}\cdot\frac12
=-\frac13.
\]
Taking the inverse sine gives
\[
\theta_t=\sin^{-1}\!\left(-\frac13\right)\approx -19.5^\circ.
\]
So the numerical value implied by the formula is about
\(-19.5^\circ\),
not
\(-41.8^\circ\).
The negative sign is the important feature: it shows the ray bending to the opposite side compared with ordinary positive-index transmission.
Another useful observation is that a real transmitted angle exists only if
\[
\left|\frac{n_1}{n_2}\sin\theta_i\right|\le 1.
\]
If this condition fails, then the simple ray picture gives no real propagating transmitted angle.
In more advanced treatments this corresponds to evanescent behavior or total-internal-reflection-like situations, depending on the full electromagnetic boundary-value problem.
Why does a negative index matter so much conceptually?
Because in effective negative-index media, the phase velocity direction and the direction of energy flow can behave in unusual ways.
At an introductory level, this shows up as reversed ray bending.
At a more advanced level, it leads to ideas such as backward waves, reversed Doppler and Cherenkov effects, and the Veselago lens or “perfect lens” concept.
The Veselago-lens idea is especially famous.
A slab with negative refractive index can, in an idealized model, refocus rays in a way that differs fundamentally from ordinary positive-index lenses.
That is why negative-index metamaterials are so important in wave engineering, super-resolution concepts, and transformation optics.
Still, this calculator deliberately stays at the ray level.
It illustrates the sign reversal in Snell’s law and the geometry of the refracted ray without trying to solve the full electromagnetic field problem.
That makes it a useful first step for understanding how negative refraction differs from ordinary optical bending.
\[
n_1\sin\theta_i=n_2\sin\theta_t,
\qquad
\sin\theta_t=\frac{n_1}{n_2}\sin\theta_i.
\]
These relations are enough to show the central point:
when \(n_2<0\), the transmitted angle can become negative, producing the striking ray-bending reversal associated with metamaterials.