play phryzby with physics

A Rocket Fired Straight Up

solved GravitationalPotentialEnergy

Q. A rocket is fired vertically with a speed of 5 km/sv0,r=5km/s from the earth's surfaceh0,re=0m. How far from the earth does the rocket go before returningv1,r=0m/s to the earth? Mass of the earth = 6.0 × 10²⁴ kgme=6.0×1024kg; mean radius of the earth = 6.4 × 10⁶ mRe=6.4×106m. Answer in metres.

earthv₀ = 5000 m/sv = 0 m/sh = ?V₀VM = 6×10²⁴ kgR = 6.4×10⁶ mg
Inputs
v0,r
5 km/s
me
6e+24 kg
Re
6400000.00 m
Outputs
heighth1,re?

How it's solved

Solved with GravitationalPotentialEnergy

Given

  • v0,r=5km/s
  • me=6.0×1024kg
  • Re=6.4×106m
  • h0,re=0m from “from the earth's surface”
  • v1,r=0m/s from “before returning”

Find h1,re.

Working
  1. v0,r=5km/s=5000m/s
  2. height is measured from the surface(rocket, earth, rising, 1)h0,re=r0,re-Re
  3. 0=r0,re-6.4×106
  4. r0,re=6.4×106m
  5. potential of a mass(rocket, earth, rising, 1)Vg,0,re=−G⋅mer0,re
  6. Vg,0,re=−6.674×10−11⋅6×10246.4×106
  7. Vg,0,re=−6.256875×107J/kg
  8. energy kept in free flight(rocket, earth, rising)v1,r22+Vg,1,re=v0,r22+Vg,0,re
  9. 022+Vg,1,re=500022+(−6.256875×107)
  10. Vg,1,re=−5.006875×107J/kg
  11. potential of a mass(rocket, earth, rising, 2)Vg,1,re=−G⋅mer1,re
  12. (−5.006875×107)=−6.674×10−11⋅6×1024r1,re
  13. r1,re=7.99780302×106m
  14. height is measured from the surface(rocket, earth, rising, 2)h1,re=r1,re-Re
  15. h1,re=7.99780302×106-6.4×106
  16. h1,re=1.598×106m
  17. h1,re≈1.6×106mto 2 significant figures
Conclusion

The rocket climbs until its kinetic energy has all gone into climbing out of the earth's pull; the pull weakens with height, so it rises further than it would under a steady g.

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_rocket_fired_straight_up do4  kind :numerical5  describes "A rocket is fired vertically with a speed of %{speed} from the earth's surface. %{height} before " \6            "returning to the earth? Mass of the earth = %{mass}; mean radius of the earth = %{radius}. Answer in " \7            "metres."8  given speed: "5 km/s"9  given mass: "6.0e24 kg"10  given radius: "6.4e6 m"11  asks height: "How far from the earth does the rocket go"12end
solution.rb
1require_relative "../questions/a_rocket_fired_straight_up"2require_relative "../science/gravitation/gravitational_potential_energy"34solve :a_rocket_fired_straight_up, using: GravitationalPotentialEnergy do5  objects :rocket, :earth6  rocket.goes(:rising)78  take speed: rocket.initial_speed9  take mass: earth.mass10  take radius: earth.radius_of_the_body1112  deduce_from "from the earth's surface", rocket.height_above_the_surface(from: earth, at: rising.start) => "0 m"13  deduce_from "before returning", rocket.final_speed => "0 m/s"1415  height = rocket.height_above_the_surface(from: earth, at: rising.end)16  answer height:, in: "m", figures: 21718  conclusion "The rocket climbs until its kinetic energy has all gone into climbing out of the earth's pull; " \19             "the pull weakens with height, so it rises further than it would under a steady g."20end
playground.rb
1require_relative "../solutions/a_rocket_fired_straight_up"23play_with :a_rocket_fired_straight_up do4  title "A Rocket Fired Straight Up"5end
The laws it drew on
quantitywrittenunitswithinfrom
gravitational constantGN m² kg⁻²—UniversalGravitation
massmkg0 … ∞UniversalGravitation
radius of the bodyRm0 … ∞UniversalGravitation
surface gravitygsm/s²—UniversalGravitation
separationrgm0 … ∞UniversalGravitation
gravitational intensityEgm/s²—UniversalGravitation
distance from the centrerm—GravitationalPotentialEnergy
height above the surfacehm—GravitationalPotentialEnergy
gravitational potentialVgJ/kg—GravitationalPotentialEnergy
escape speedvem/s—GravitationalPotentialEnergy
speedvm/s0 … ∞GravitationalPotentialEnergy
surface gravity of groundgs,gm/s²—
mass of groundmgkg0 … ∞
radius of the body of groundRgm0 … ∞
surface gravity of rocketgs,rm/s²—
mass of rocketmrkg0 … ∞
radius of the body of rocketRrm0 … ∞
surface gravity of earthgs,em/s²—
mass of earthmekg0 … ∞
radius of the body of earthRem0 … ∞
gravitational intensity of ground by rocketEg,grm/s²—
separation of ground from rocketrg,grm0 … ∞
gravitational intensity of ground by earthEg,gem/s²—
separation of ground from earthrg,gem0 … ∞
gravitational intensity of rocket by groundEg,rgm/s²—
separation of rocket from groundrg,rm0 … ∞
gravitational intensity of rocket by earthEg,rem/s²—
separation of rocket from earthrg,rem0 … ∞
gravitational intensity of earth by groundEg,egm/s²—
separation of earth from groundrg,em0 … ∞
gravitational intensity of earth by rocketEg,erm/s²—
separation of earth from rocketrg,erm0 … ∞
height above the surface of rocket from ground at start of risingh0,rm—
distance from the centre of rocket from ground at start of risingr0,rm—
height above the surface of rocket from ground at end of risingh1,rm—
distance from the centre of rocket from ground at end of risingr1,rm—
height above the surface of rocket from earth at start of risingh0,rem—
distance from the centre of rocket from earth at start of risingr0,rem—
height above the surface of rocket from earth at end of risingh1,rem—
distance from the centre of rocket from earth at end of risingr1,rem—
gravitational potential of rocket from ground at start of risingVg,0,rJ/kg—
gravitational potential of rocket from ground at end of risingVg,1,rJ/kg—
gravitational potential of rocket from earth at start of risingVg,0,reJ/kg—
gravitational potential of rocket from earth at end of risingVg,1,reJ/kg—
escape speed of rocket from ground at start of risingve,0,rm/s—
escape speed of rocket from ground at end of risingve,1,rm/s—
escape speed of rocket from earth at start of risingve,0,rem/s—
escape speed of rocket from earth at end of risingve,1,rem/s—
speed of rocket at end of risingv1,rm/s0 … ∞
speed of rocket at start of risingv0,rm/s0 … ∞
gs,b=G⋅mbRb2
gravity at the surface
Eg,oo=G⋅morg,oo2
law of gravitation
gs,g=G⋅mgRg2
gravity at the surface(ground)
gs,r=G⋅mrRr2
gravity at the surface(rocket)
gs,e=G⋅meRe2
gravity at the surface(earth)
Eg,gr=G⋅mrrg,gr2
law of gravitation(ground, rocket)
Eg,ge=G⋅merg,ge2
law of gravitation(ground, earth)
Eg,rg=G⋅mgrg,r2
law of gravitation(rocket, ground)
Eg,re=G⋅merg,re2
law of gravitation(rocket, earth)
Eg,eg=G⋅mgrg,e2
law of gravitation(earth, ground)
Eg,er=G⋅mrrg,er2
law of gravitation(earth, rocket)
h0,r=r0,r-Rg
height is measured from the surface(rocket, ground, rising, 1)
h1,r=r1,r-Rg
height is measured from the surface(rocket, ground, rising, 2)
h0,re=r0,re-Re
height is measured from the surface(rocket, earth, rising, 1)
h1,re=r1,re-Re
height is measured from the surface(rocket, earth, rising, 2)
Vg,0,r=−G⋅mgr0,r
potential of a mass(rocket, ground, rising, 1)
Vg,1,r=−G⋅mgr1,r
potential of a mass(rocket, ground, rising, 2)
Vg,0,re=−G⋅mer0,re
potential of a mass(rocket, earth, rising, 1)
Vg,1,re=−G⋅mer1,re
potential of a mass(rocket, earth, rising, 2)
ve,0,r2=-2⋅Vg,0,r
escape speed from where it is(rocket, ground, rising, 1)
ve,1,r2=-2⋅Vg,1,r
escape speed from where it is(rocket, ground, rising, 2)
ve,0,re2=-2⋅Vg,0,re
escape speed from where it is(rocket, earth, rising, 1)
ve,1,re2=-2⋅Vg,1,re
escape speed from where it is(rocket, earth, rising, 2)
v1,r22+Vg,1,r=v0,r22+Vg,0,r
energy kept in free flight(rocket, ground, rising)
v1,r22+Vg,1,re=v0,r22+Vg,0,re
energy kept in free flight(rocket, earth, rising)