Lens Equation

When a lens or mirror creates an image from an object, we define the following distances:
-
is the focal length of the device -
is the distance from the object to the device -
is the distance from the image to the device
These three distances are related by the lens equation:
Since we are normally interested in finding the image distance, this can be rewritten as
The object distance
If

We get a real image when the denominator above,

When the object is inside the focal point, on the other hand, the rays of light are diverging too much when they hit the lens, and the lens isn't strong enough to make the rays converge: the best it can do is to make the rays diverge less. An eye which sees these diverging rays on the other side traces them back to a spot behind the lens, and sees a virtual image there.
The side that the image appears on depends on whether you have a lens or a mirror. For a lens, real images appear on the far side of the lens (from the object), and virtual images appear on the near side. For a mirror, real images appear on the near side, while virtual images appear on the far side (just like with a flat mirror ).
