
I am confused as to how they got from the two equations being equal to 0 to the derivative being 0. I could be really tired right now but this isn't really making sense to me. I was thinking of doing cases where u isn't 0 and v isn't 0 separately and they assume both aren't 0 and then just solve it out. I feel like I could brute force this but is there a shorter way of doing this without these cases.