play phryzby with physics

Total Internal Reflection

solved Reflection · TotalInternalReflection

Q. Light in a medium of index μ1 meets one of μ2 at i. How much turns back past the critical angle?

μ₁ glassμ₂ airnormalincident50.0°reflected 100%critical 41.81°trapped — every ray turns back
Inputs
i
50.00°
μ1
1.5glass
μ2
1air
Outputs
no refracted ray?yes
reflectancer100.0%

How it's solved

Solved with Reflection, TotalInternalReflection

Given

  • i, μ1, μ2 yours to vary

Find whether there is no refracted ray, r.

Working
  1. snells law when grazing exitμ1⋅sin⁡c=μ2⋅sin⁡90°
  2. 1.5⋅sin⁡c=1⋅sin⁡90°
  3. c=41.81°
  4. everything reflectsr=1
  5. r=100.0%
  6. no refracted ray?i>cyes
Conclusion

All of it turns back. Not most of it: the share is exactly one, and it is one because there is nowhere else for the light to go.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :total_internal_reflection do4  describes "Light in a medium of index %{first_index} meets one of %{second_index} at %{angle}. %{reflected}?"5  given :angle6  given :first_index7  given :second_index8  asks reflected: "How much turns back past the critical angle"9end
solution.rb
1require_relative "../questions/total_internal_reflection"2require_relative "../science/ray_optics_and_optical_instruments/reflection"3require_relative "../science/ray_optics_and_optical_instruments/total_internal_reflection"45solve :total_internal_reflection, using: [ Reflection, TotalInternalReflection ] do6  take angle: :i, first_index: :mu_1, second_index: :mu_27  find_whether :no_refracted_ray?8  take reflected: :r9  find_value :reflected1011  conclusion "All of it turns back. Not most of it: the share is exactly one, and it is one because there is nowhere else for the light to go."12end
playground.rb
1require_relative "../solutions/total_internal_reflection"2require_relative "../science/ray_optics_and_optical_instruments/refractive_media"3require_relative "../pictures/light"45INDEX = 1.0..4.067play_with :total_internal_reflection do8  title "Total Internal Reflection"910  input :i, default: 50.deg11  input :mu_1, INDEX, default: 1.5, marks: REFRACTIVE_MEDIA12  input :mu_2, INDEX, default: 1.0, marks: REFRACTIVE_MEDIA1314  output :no_refracted_ray?, alarm: true15  output :r, in: "%"1617  draw Light::Picture, rising: true do18    media :mu_1, :mu_219    ray "incident",  arriving_at: :i, angle: true20    ray "reflected", leaving_at: :i, weight: :r21    ray "refracted", crossing_at: :r_r, angle: true,22        weight: :tau, unless: :no_refracted_ray?23    mark "critical", arriving_at: :c24    note "trapped — every ray turns back", when: :no_refracted_ray?25  end26end
The laws it drew on
quantitywrittenunitswithinfrom
angle to the normalθ—0 … 1.571Incidence
angle of incidencei—0 … 1.571Incidence
angle of reflectionrl—0 … 1.571Reflection
refractive indexμ——Refraction
angle of refractionrr—0 … 1.571Refraction
refractive index of first mediumμ1——Refraction
refractive index of second mediumμ2——Refraction
critical anglec—0 … 1.571Refraction
reflectance s polarisedrs——Reflectance
reflectance p polarisedrp——Reflectance
reflectancer——Reflectance
transmittanceτ——Reflectance
i≡θi(before)
angle of incidence
rl≡θi(after)
angle of reflection
rr≡θi(after)
angle of refraction
μ1≡μb
refractive index of first medium
μ2≡μa
refractive index of second medium
i=rl
law of reflection
μ1⋅sin⁡i=μ2⋅sin⁡rr
snells law
μ1⋅sin⁡c=μ2⋅sin⁡90°
snells law when grazing exit
rs=(μ1⋅cos⁡i-μ2⋅cos⁡rrμ1⋅cos⁡i+μ2⋅cos⁡rr)2
s polarised
rp=(μ1⋅cos⁡rr-μ2⋅cos⁡iμ1⋅cos⁡rr+μ2⋅cos⁡i)2
p polarised
r=rs+rp2
unpolarised
r+τ=1
reflected and transmitted share the light
r=1
everything reflectswhen no refracted ray
rr=90°
grazing exit?
i>c
no refracted ray?
rr<i
bends toward the normal?
rr>i
bends away from the normal?