An implicit function is a function, in which a variable is not explicitly derived from another variable, rather is defined implicitly by an implicit equation i.e. by associating one of the variables with the other.
In such cases, we differentiate, say #y# normally, but as we derive w.r.t. say #x#, considering #y# as a function of #x#, using chain rule, we multiply by #(dy)/(dx)#.
In the given case #18=(y-x)^2+y/x#, differentiating w.r,t, #x#, we get
#0=2(y-x)((dy)/(dx)-1)+(x(dy)/(dx)-y)/x^2# or
#(y-x(dy)/(dx))/x^2=2(y-x)((dy)/(dx)-1)# or
#(y-x(dy)/(dx))=2x^2(y-x)(dy)/(dx)-(2x^2(y-x))# or
#-x(dy)/(dx)=2x^2(y-x)(dy)/(dx)-2x^2(y-x)-y# or
#2x^2(y-x)(dy)/(dx)+x(dy)/(dx)=y+2x^2(y-x)#
#(2x^2(y-x)+x)(dy)/(dx)=y+2x^2(y-x)# or
#(dy)/(dx)=(2x^2(y-x)+y)/(2x^2(y-x)+x)#