A lens is a transparent piece of glass with one or more curved sides.
A lens works by refraction i.e, bending of a ray of light as it passes through the lens.
This implies that the rays seem to be originating from a point closer or further than the actual position of the body. The object can also appear bigger or smaller than the actual size.
Mainly lenses can be classified as concave lens and convex lens.
Convex lens:
The above image shows the image formation for different positions of object when placed near a convex lens
When object is at infinity, image is obtained at focus on the other side.
When object lies at a distance more than twice the focal length(), image is formed between and on the other side of the lens,
When object lies at twice the focal length distance, image is formed at the same distance on the other side.
When object is placed between and , image is formed beyond on the other side.
When object is placed at , image is formed at infinity.
When object is at a distance lesser than focal length, a virtual image is obtained on the same side.
Concave lens:
Unlike convex lens, concave lens has only two positions of images.
When object is at infinity, virtual image is obtained at focus.
For all other positions of object, virtual image is obtained at a distance lesser than focal length.