Trace the three principal rays through a thin lens and watch where they cross to form the image: 1/v = 1/f + 1/u. A convex lens can make real or virtual images depending on where the object sits; a concave lens always makes a small, upright, virtual one.