I often work with expressions in one or more arbitrary function, and would like to get simplified expressions for their derivatives.
For example I would like to define the normal to a graph as follows
and then compute symbolically its derivatives, and second derivatives etc. WITHOUT specifying the arbitrary function u.
Thank-you for any help.
PS. Apologies if my question has been asked before, I was not able to find an answer on the site yet.
EDIT: this is the error I get trying to naively differentiate


Block[{u}, n[x_, y_] = .... // SimplifyOrSomethingnotice no:=. – Kuba Jul 24 '17 at 16:35u? What is wrong withD[n[x, y], x]? – Carl Woll Jul 24 '17 at 16:42Derivative[1,0][n][x,y]or something likeBlock[{x, y}, D[n[x,y], x]]. I prefer the former. – Carl Woll Jul 24 '17 at 16:52xandylingering – Marius Ladegård Meyer Jul 24 '17 at 16:53xandy. JustClear[x, y]and try again. – Carl Woll Jul 24 '17 at 16:58