According to what I've just read a vertical line has infinite gradient which makes sense since rise/run=rise/0
Therefore I do not understand how getting derivative=0 will solve this thing. Can you explain this?
At the moment I am guessing that you have to expand it and somehow the x variable cancels out and you get a constant. Getting the derivative = 0 cannot solve this. You must expand it and cancel the x.