play phryzby with physics

The Needle's Magnification

solved SphericalMirror

Q. A 4.5 cmho=4.5cm needle is placed 12 cmdo=12cm away from a convex mirrorf=fsize of focal length 15 cmfsize=15cm. What is the magnification?

Ffuh₀ = 0.045 mvhᵢm = ?
Inputs
ho
4.5 cm
do
12 cm
fsize
15 cm
Outputs
magnificationm?

How it's solved

Solved with SphericalMirror

Given

  • ho=4.5cm
  • do=12cm
  • fsize=15cm
  • f=fsize from “convex mirror”

Find m.

Working
  1. ho=4.5cm=0.045m
  2. do=12cm=0.12m
  3. fsize=15cm=0.15m
  4. an object in front is against the light(mirror)u=−do
  5. u=−0.12
  6. u=−0.12m
  7. convex mirrorf=fsize
  8. f=0.15
  9. f=0.15m
  10. mirror equation(mirror)1v+1u=1f
  11. 1v+1(−0.12)=10.15
  12. v=0.0666666667m
  13. magnification of a mirror(mirror)m=−vu
  14. m=−0.0666666667(−0.12)
  15. m=0.555555556
  16. m≈0.56to 2 significant figures
Conclusion

A convex mirror always gives an upright image smaller than the object, so the magnification is positive and less than one.

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 :the_needle_s_magnification do4  kind :numerical5  describes "A %{size} needle is placed %{distance} away from a convex mirror of focal length %{focal_length}. " \6            "%{magnification}?"7  given size: "4.5 cm"8  given distance: "12 cm"9  given focal_length: "15 cm"10  asks magnification: "What is the magnification"11end
solution.rb
1require_relative "../questions/the_needle_s_magnification"2require_relative "../science/ray_optics_and_optical_instruments/spherical_mirror"34solve :the_needle_s_magnification, using: SphericalMirror do5  objects :mirror67  take size: mirror.object_height8  take distance: mirror.distance_in_front9  take focal_length: mirror.size_of_the_focal_length1011  deduce_from "convex mirror", mirror.focal_length => mirror.size_of_the_focal_length1213  magnification = mirror.magnification14  answer magnification:, figures: 21516  conclusion "A convex mirror always gives an upright image smaller than the object, so the magnification is " \17             "positive and less than one."18end
playground.rb
1require_relative "../solutions/the_needle_s_magnification"23play_with :the_needle_s_magnification do4  title "The Needle's Magnification"5end
The laws it drew on
quantitywrittenunitswithinfrom
radius of curvatureRm—SphericalMirror
size of the radiusrsizem—SphericalMirror
distance in frontdom—SphericalMirror
focal lengthfm—SphericalMirror
size of the focal lengthfsizem—SphericalMirror
object distanceum—SphericalMirror
image distancevm—SphericalMirror
magnificationm——SphericalMirror
object heighthom—SphericalMirror
image heighthim—SphericalMirror
object distance of groundugm—
distance in front of grounddo,gm—
object distance of mirrorum—
distance in front of mirrordom—
focal length of groundfgm—
radius of curvature of groundRgm—
focal length of mirrorfm—
radius of curvature of mirrorRm—
image distance of groundvgm—
image distance of mirrorvm—
magnification of groundmg——
magnification of mirrorm——
image height of groundhi,gm—
object height of groundho,gm—
image height of mirrorhim—
object height of mirrorhom—
size of the radius of mirrorrsizem—
size of the focal length of mirrorfsizem—
um=−do,m
an object in front is against the light
fm=Rm2
focus halfway to the centre
1vm+1um=1fm
mirror equation
mm=−vmum
magnification of a mirror
mm=hi,mho,m
magnification compares the heights
ug=−do,g
an object in front is against the light(ground)
u=−do
an object in front is against the light(mirror)
fg=Rg2
focus halfway to the centre(ground)
f=R2
focus halfway to the centre(mirror)
1vg+1ug=1fg
mirror equation(ground)
1v+1u=1f
mirror equation(mirror)
mg=−vgug
magnification of a mirror(ground)
m=−vu
magnification of a mirror(mirror)
mg=hi,gho,g
magnification compares the heights(ground)
m=hiho
magnification compares the heights(mirror)
f=fsize
convex mirror