Stand 2 m from a bathroom mirror and your image appears 2 m behind the glass, upright and the same size as you. Each ray from your nose leaves the glass at the same angle it arrived, and the reflected rays spread out as if they came from a point behind the mirror. Your eye follows them back to that point. No light actually goes behind the glass, so the image is virtual: you can see it, but a screen held there would stay dark.
Curve the mirror and it gains a focal point. A concave mirror, curved like the inside of a spoon, sends rays that arrive parallel to its axis through a focal point F in front of it, at a distance f equal to half its radius of curvature. Put an object farther away than F and the reflected rays really cross in front of the mirror, making a real, inverted image you can catch on a card. Bring the object inside F and the rays leave spreading apart; your face then appears enlarged and upright behind the mirror. A convex mirror, like the back of a spoon, always spreads rays out, so its images are virtual, upright and smaller.
A lens uses the same equation, but light passes through it, so a lens's real images form on the far side. A mirror sends light back, so its real images sit on the same side as the object. That is why the mirror sign convention reads positive di as in front (real) and negative di as behind (virtual).
Think of it like this. A flat mirror is a window into a copy of the room: each object appears as far behind the glass as it stands in front, at the same size. A convex mirror shrinks that copy and squeezes it toward the glass. The window picture breaks for concave mirrors, whose real images hang in front of the glass, out in your own room.
Core idea. Every ray obeys the law of reflection; a curved mirror turns that into a focal point, and the image forms where the reflected rays meet (real, in front) or seem to come from (virtual, behind).