dx/dy=4x-4 <----- that's supposed to be dy/dx, think of what its saying, change in y with respect to a change in x, since the RHS values are in terms of x this is the correct way of writing it. From here:
When dy/dx=0 ( a stationary point occurs)
4x-4=0
4(x-1)=0 [factorising]
x-1=0 [dividing...