play phryzby with physics

Two Small Spheres Thirty Centimetres Apart

solved CoulombsLaw

Q. Two small charged spheres having charges of 2 × 10⁻⁷ Cqf=2×10−7C and 3 × 10⁻⁷ Cqs=3×10−7C are placed 30 cmrfs=30cm apart in air. What is the force between them, in newtons?

++first 2×10⁻⁷ Csecond 3×10⁻⁷ Cr = 0.3 mF = ?
Inputs
qf
2e-07 C
qs
3e-07 C
rfs
30 cm
Outputs
forceFe,fs?

How it's solved

Solved with CoulombsLaw

Given

  • qf=2×10−7C
  • qs=3×10−7C
  • rfs=30cm

Find Fe,fs.

Working
  1. rfs=30cm=0.3m
  2. coulombs law(first, second)Fe,fs=k⋅qf⋅qsrfs2
  3. Fe,fs=8.98755179×109⋅2×10−7⋅3×10−70.32
  4. Fe,fs=0.005992N
  5. Fe,fs≈0.0060Nto 2 significant figures
Conclusion

Like charges push each other apart with a force that grows with each charge and falls off as the square of the distance between them.

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 :two_small_spheres_thirty_centimetres_apart do4  kind :numerical5  describes "Two small charged spheres having charges of %{first} and %{second} are placed %{apart} apart in air. " \6            "%{force}, in newtons?"7  given first: "2e-7 C"8  given second: "3e-7 C"9  given apart: "30 cm"10  asks force: "What is the force between them"11end
solution.rb
1require_relative "../questions/two_small_spheres_thirty_centimetres_apart"2require_relative "../science/electric_charges_and_fields/coulombs_law"34solve :two_small_spheres_thirty_centimetres_apart, using: CoulombsLaw do5  objects :first, :second67  take first: first.charge8  take second: second.charge9  take apart: first.separation(from: second)1011  force = first.electric_force(by: second)12  answer force:, in: "N", figures: 21314  conclusion "Like charges push each other apart with a force that grows with each charge and falls off as the " \15             "square of the distance between them."16end
playground.rb
1require_relative "../solutions/two_small_spheres_thirty_centimetres_apart"23play_with :two_small_spheres_thirty_centimetres_apart do4  title "Two Small Spheres Thirty Centimetres Apart"5end
The laws it drew on
quantitywrittenunitswithinfrom
chargeqC—CoulombsLaw
coulomb constantkN m² C⁻²—CoulombsLaw
separationrm0 … ∞CoulombsLaw
electric forceFeN—CoulombsLaw
electric force on ground by firstFe,gfN—
charge of groundqgC—
charge of firstqfC—
separation of ground from firstrgfm0 … ∞
electric force on ground by secondFe,gsN—
charge of secondqsC—
separation of ground from secondrgsm0 … ∞
electric force on first by groundFe,fgN—
separation of first from groundrfm0 … ∞
electric force on first by secondFe,fsN—
separation of first from secondrfsm0 … ∞
electric force on second by groundFe,sgN—
separation of second from groundrsm0 … ∞
electric force on second by firstFe,sfN—
separation of second from firstrsfm0 … ∞
Fe,oo=k⋅qo⋅qoroo2
coulombs law
Fe,gf=k⋅qg⋅qfrgf2
coulombs law(ground, first)
Fe,gs=k⋅qg⋅qsrgs2
coulombs law(ground, second)
Fe,fg=k⋅qf⋅qgrf2
coulombs law(first, ground)
Fe,fs=k⋅qf⋅qsrfs2
coulombs law(first, second)
Fe,sg=k⋅qs⋅qgrs2
coulombs law(second, ground)
Fe,sf=k⋅qs⋅qfrsf2
coulombs law(second, first)