play phryzby with physics

A Wave from Its Equation

solved ElectromagneticWave

Q. The magnetic field in a plane electromagnetic wave is given by B_y = (2 × 10⁻⁷ T) sin(0.5 × 10³ rad/mk=0.5×103rad/m x + 1.5 × 10¹¹ t). What is the wavelength of the wave, in cm?

EBλ = ?k = 500 rad/m
Inputs
k
500 rad/m
Outputs
wavelengthλ?

How it's solved

Solved with ElectromagneticWave

Given

  • k=0.5×103rad/m

Find λ.

Working
  1. k=0.5×103rad/m=500m⁻¹
  2. wave number and wavelength(wave)k=2⋅πλ
  3. 500=2⋅3.14159265λ
  4. λ=1.257cm
  5. λ=0.0125663706m=1.25663706cm
  6. λ≈1.26cmto 3 significant figures
Conclusion

The number multiplying x counts radians of phase per metre; one wavelength is a full turn.

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 :a_wave_from_its_equation do4  kind :numerical5  describes "The magnetic field in a plane electromagnetic wave is given by B_y = (2 × 10⁻⁷ T) sin(%{wave_number} x + " \6            "1.5 × 10¹¹ t). %{wavelength}, in cm?"7  given wave_number: "0.5e3 rad/m"8  asks wavelength: "What is the wavelength of the wave"9end
solution.rb
1require_relative "../questions/a_wave_from_its_equation"2require_relative "../science/electromagnetic_waves/electromagnetic_wave"34solve :a_wave_from_its_equation, using: ElectromagneticWave do5  objects :wave67  take wave_number: wave.wave_number89  wavelength = wave.wavelength10  answer wavelength:, in: "cm", figures: 31112  conclusion "The number multiplying x counts radians of phase per metre; one wavelength is a full turn."13end
playground.rb
1require_relative "../solutions/a_wave_from_its_equation"23play_with :a_wave_from_its_equation do4  title "A Wave from Its Equation"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞ElectromagneticWave
speed of lightcm/s—ElectromagneticWave
electric fieldEV/m—ElectromagneticWave
magnetic fieldBT—ElectromagneticWave
wave numberkm⁻¹—ElectromagneticWave
angular frequencyωrad/s—ElectromagneticWave
wavelengthλm0 … ∞ElectromagneticWave
frequencyνHz0 … ∞ElectromagneticWave
electric field of groundEgV/m—
magnetic field of groundBgT—
electric field of waveEV/m—
magnetic field of waveBT—
wave number of groundkgm⁻¹—
wavelength of groundλgm0 … ∞
wave number of wavekm⁻¹—
wavelength of waveλm0 … ∞
angular frequency of groundωgrad/s—
frequency of groundνgHz0 … ∞
angular frequency of waveωrad/s—
frequency of waveνHz0 … ∞
Ew=c⋅Bw
fields of a light wave
kw=2⋅πλw
wave number and wavelength
ωw=2⋅π⋅νw
angular frequency and frequency
c=νw⋅λw
light travels at c
Eg=c⋅Bg
fields of a light wave(ground)
E=c⋅B
fields of a light wave(wave)
kg=2⋅πλg
wave number and wavelength(ground)
k=2⋅πλ
wave number and wavelength(wave)
ωg=2⋅π⋅νg
angular frequency and frequency(ground)
ω=2⋅π⋅ν
angular frequency and frequency(wave)
c=νg⋅λg
light travels at c(ground)
c=ν⋅λ
light travels at c(wave)