Ray diagrams can be used to represent the path of light waves as they interact with mirrors and lenses. There are three types of mirrors: plane mirrors form reversed virtual images, concave mirrors can form real or virtual images depending on the object's position, and convex mirrors always form smaller virtual images. Concave lenses only form virtual images while convex lenses can form real or virtual images depending on the object's distance from the lens.