Why does a shaving mirror enlarge your face up close but flip it farther away?
Hold a shaving mirror close and your face looks bigger and upright. Move it far enough away and your reflection flips. The mirror hasn't changed shape. What changes is where the reflected rays go.
You already know that a light ray travels in a straight line between reflections. The principal axis passes through C, the centre of curvature, and P, the pole of the mirror. A ray parallel and close to the axis reflects through F, the principal focus. The distance from P to F is the focal length.
From the object tip, draw a ray parallel to the axis. It reflects through F. Draw a second ray through F. It reflects parallel to the axis. Mark the image tip where the reflected rays cross and draw the image down from the axis. The rays really meet, so the image is real.
Start at the tip of the object again. Follow the sloping ray that crosses the principal axis at F before reaching the mirror. Which way does it travel after reflection? Pick one answer.
Start with a distant point on a cricket floodlight. In the infinity limit, its parallel rays meet at F. Move the object to beyond C. Its image is smaller and lies between C and F. At C, the image is also at C and the same size. In both positions the image is real and inverted.
Between C and F, the rays meet beyond C, making a real, enlarged, inverted image. With the object at F, the ray from the tip that travels parallel to the axis reflects through F. The ray to the pole reflects at an equal angle to the axis. The reflected rays are parallel, so the image is at infinity.
Measure from the pole, with the incoming light's direction positive. So the focal length and object distance are negative ten and negative fifteen centimetres. Use the mirror formula. Minus one tenth plus one fifteenth is minus one thirtieth, so v is minus thirty centimetres. The magnification is minus two: inverted, twice as tall.
Keep the same mirror, with a signed focal length of negative ten centimetres. Move the object to thirty centimetres in front of it. Use the mirror formula and magnification to pick the correct pair.
Put your face inside F, as when shaving. The parallel ray reflects through F. At P, the ray reflects at the same angle to the axis. The reflected rays spread apart. Extend them backwards with dotted lines. Only those extensions meet behind the mirror, giving an enlarged, upright virtual image.
How do you determine the focal length of a concave mirror by obtaining the image of a distant object? Aim the mirror at a distant building, never at the Sun. Move a white screen in front of the mirror until the image is sharp. Measure from the pole to the screen.