play phryzby with physics

A Needle Before a Convex Mirror

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 location of the image, in cm, measured along the incoming light from the mirror?

Ffuh₀ = 0.045 mv = ?hᵢ
Inputs
ho
4.5 cm
do
12 cm
fsize
15 cm
Outputs
wherev?

How it's solved

Solved with SphericalMirror

Given

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

Find v.

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=6.667cm
  13. v=0.0666666667m=6.66666667cm
  14. v≈6.7cmto 2 significant figures
Conclusion

A convex mirror's focus lies behind it, so the image is virtual, behind the mirror and between the pole and the focus.

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_needle_before_a_convex_mirror do4  kind :numerical5  describes "A %{size} needle is placed %{distance} away from a convex mirror of focal length %{focal_length}. " \6            "%{where}, in cm, measured along the incoming light from the mirror?"7  given size: "4.5 cm"8  given distance: "12 cm"9  given focal_length: "15 cm"10  asks where: "What is the location of the image"11end
solution.rb
1require_relative "../questions/a_needle_before_a_convex_mirror"2require_relative "../science/ray_optics_and_optical_instruments/spherical_mirror"34solve :a_needle_before_a_convex_mirror, 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  where = mirror.image_distance14  answer where:, in: "cm", figures: 21516  conclusion "A convex mirror's focus lies behind it, so the image is virtual, behind the mirror and between the " \17             "pole and the focus."18end
playground.rb
1require_relative "../solutions/a_needle_before_a_convex_mirror"23play_with :a_needle_before_a_convex_mirror do4  title "A Needle Before a Convex Mirror"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