I'm confused about why we only differentiate with respect to the X when deriving Snell's law. Can someone explain why we do not also do a differentiation with respect to Y.
For more clarification about the question please see the following screenshots:
My question is why do they only do dt/dx and not dt/dy?

