We discuss the application of the forward-mode differentiation method to Maxwell’s equations, which is useful for the sensitivity analysis of photonic devices. This approach yields exact gradients and ...