Two Charges Apart
Q. Two charges of 7 μCμC and -2 μCμC are placed at (–9 cm, 0, 0) and (9 cm, 0, 0)cm respectively. What is the electrostatic potential energy of the system, in joules?
Inputs
Outputs
energy?
How it's solved
Solved with PotentialEnergyOfCharges
Given
- μC
- μC
- cm from “(–9 cm, 0, 0) and (9 cm, 0, 0)”
Find .
Working
- μCC
- μCC
- cmm
- energy of a pair of charges(first, second)
- J
- Jto 2 significant figures
Conclusion
Opposite charges attract, so the pair has less energy together than apart: the energy is negative, and that much work separates 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.
1require_relative "../physics"23question :two_charges_apart do4 kind :numerical5 describes "Two charges of %{first} and %{second} are placed at (–9 cm, 0, 0) and (9 cm, 0, 0) respectively. " \6 "%{energy}, in joules?"7 given first: "7 μC"8 given second: "-2 μC"9 asks energy: "What is the electrostatic potential energy of the system"10end1require_relative "../questions/two_charges_apart"2require_relative "../science/electrostatic_potential_and_capacitance/potential_energy_of_charges"34solve :two_charges_apart, using: PotentialEnergyOfCharges do5 objects :first, :second67 take first: first.charge8 take second: second.charge910 deduce_from "(–9 cm, 0, 0) and (9 cm, 0, 0)", first.distance(from: second) => "18 cm"1112 energy = first.potential_energy(by: second)13 answer energy:, in: "J", figures: 21415 conclusion "Opposite charges attract, so the pair has less energy together than apart: the energy is " \16 "negative, and that much work separates them."17endplayground.rb
1require_relative "../solutions/two_charges_apart"23play_with :two_charges_apart do4 title "Two Charges Apart"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| coulomb constant | N m² C⁻² | — | PotentialEnergyOfCharges | |
| charge | C | — | PotentialEnergyOfCharges | |
| distance | m | — | PotentialEnergyOfCharges | |
| potential energy | J | — | PotentialEnergyOfCharges | |
| potential energy of ground by first | J | — | ||
| charge of ground | C | — | ||
| charge of first | C | — | ||
| distance of ground from first | m | — | ||
| potential energy of ground by second | J | — | ||
| charge of second | C | — | ||
| distance of ground from second | m | — | ||
| potential energy of first by ground | J | — | ||
| distance of first from ground | m | — | ||
| potential energy of first by second | J | — | ||
| distance of first from second | m | — | ||
| potential energy of second by ground | J | — | ||
| distance of second from ground | m | — | ||
| potential energy of second by first | J | — | ||
| distance of second from first | m | — |