I am now taking optics class at my school. Fermat principle can be applied on mirror of course. Then what about Concave mirror? According to the calculus of variation. the optimized path(actual path of the light) should be the shortest path. but in the concave mirror case, it goes through the longest path. Like above. How can I apply Fermat's principle on concave mirror?