play phryzby with physics

Bringing In a Charge

solved ElectrostaticPotential

Q. A charge of 4 × 10⁻⁷ Cqs=4×10−7C is located 9 cmrbs=9cm from a point P. What is the work done in bringing a charge of 2 × 10⁻⁹ Cqb=2×10−9C from infinity to the point P, in joules?

++source 4×10⁻⁷ Cbrought 2×10⁻⁹ Cr = 0.09 mVW = ?
Inputs
qs
4e-07 C
rbs
9 cm
qb
2e-09 C
Outputs
workWbs?

How it's solved

Solved with ElectrostaticPotential

Given

  • qs=4×10−7C
  • rbs=9cm
  • qb=2×10−9C

Find Wbs.

Working
  1. rbs=9cm=0.09m
  2. potential of a point charge(brought, source)Vbs=k⋅qsrbs
  3. Vbs=8.98755179×109⋅4×10−70.09
  4. Vbs=39944.6746V
  5. work is charge times potential(brought, source)Wbs=qb⋅Vbs
  6. Wbs=2×10−9⋅39944.6746
  7. Wbs=7.989×10−5J
  8. Wbs≈8.0×10−5Jto 2 significant figures
Conclusion

The potential at P is the work per unit charge to bring a charge there from far away, by any path; the charge brought in times that potential is the work.

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 :bringing_in_a_charge do4  kind :numerical5  describes "A charge of %{source} is located %{distance} from a point P. %{work} in bringing a charge of %{brought} " \6            "from infinity to the point P, in joules?"7  given source: "4e-7 C"8  given distance: "9 cm"9  given brought: "2e-9 C"10  asks work: "What is the work done"11end
solution.rb
1require_relative "../questions/bringing_in_a_charge"2require_relative "../science/electrostatic_potential_and_capacitance/electrostatic_potential"34solve :bringing_in_a_charge, using: ElectrostaticPotential do5  objects :source, :brought67  take source: source.charge8  take distance: brought.distance(from: source)9  take brought: brought.charge1011  work = brought.work_to_bring_in(by: source)12  answer work:, in: "J", figures: 21314  conclusion "The potential at P is the work per unit charge to bring a charge there from far away, by any " \15             "path; the charge brought in times that potential is the work."16end
playground.rb
1require_relative "../solutions/bringing_in_a_charge"23play_with :bringing_in_a_charge do4  title "Bringing In a Charge"5end
The laws it drew on
quantitywrittenunitswithinfrom
coulomb constantkN m² C⁻²—ElectrostaticPotential
chargeqC—ElectrostaticPotential
distancerm—ElectrostaticPotential
potentialVV—ElectrostaticPotential
work to bring inWJ—ElectrostaticPotential
potential of ground by sourceVgsV—
charge of sourceqsC—
distance of ground from sourcergsm—
potential of ground by broughtVgbV—
charge of broughtqbC—
distance of ground from broughtrgbm—
potential of source by groundVsgV—
charge of groundqgC—
distance of source from groundrsm—
potential of source by broughtVsbV—
distance of source from broughtrsbm—
potential of brought by groundVbgV—
distance of brought from groundrbm—
potential of brought by sourceVbsV—
distance of brought from sourcerbsm—
work to bring in on ground by sourceWgsJ—
work to bring in on ground by broughtWgbJ—
work to bring in on source by groundWsgJ—
work to bring in on source by broughtWsbJ—
work to bring in on brought by groundWbgJ—
work to bring in on brought by sourceWbsJ—
Vps=k⋅qsrps
potential of a point charge
Wbs=qb⋅Vbs
work is charge times potential
Vgs=k⋅qsrgs
potential of a point charge(ground, source)
Vgb=k⋅qbrgb
potential of a point charge(ground, brought)
Vsg=k⋅qgrs
potential of a point charge(source, ground)
Vsb=k⋅qbrsb
potential of a point charge(source, brought)
Vbg=k⋅qgrb
potential of a point charge(brought, ground)
Vbs=k⋅qsrbs
potential of a point charge(brought, source)
Wgs=qg⋅Vgs
work is charge times potential(ground, source)
Wgb=qg⋅Vgb
work is charge times potential(ground, brought)
Wsg=qs⋅Vsg
work is charge times potential(source, ground)
Wsb=qs⋅Vsb
work is charge times potential(source, brought)
Wbg=qb⋅Vbg
work is charge times potential(brought, ground)
Wbs=qb⋅Vbs
work is charge times potential(brought, source)