I have a higher dimensional function:
$$f(x,t)=-\ln(t)-\ln(1-\left\|x\right\|^2-t^2)$$ where $x\in\mathbb{R}^n,~t\in\mathbb{R}$.
I want to compute the derivatives with the commands
D[f, xi]
D[f, t]
D[f, xi, t]
and higher, to check my own computations which I do by hand. I dont know how to define the function $f$ to apply the commands.
Im new Mathematica user and I've not found a right solution Documentation Center.
n=36. On the other hand example withArrayis not obvious for someone who has experience with WolframAlpha,D[Sin[x[1]],x[1]]is not interpreted there as in Mathematica – Kuba Dec 09 '13 at 11:54nis given or not. In the latter case your post doesn't answer the question. If you provide an answer without specifying explicitlyn(e.g. using new tensor capabilities) I'll retract my close vote. – Artes Dec 09 '13 at 13:10nis given or not does not affect the utility of the question, only area of application of my answer. About more general approach, it seems you know how to do this, why not post an answer by yourself? :) I would useNonConstantsoption for this purpose but I don't use MMA for symbolics very often so that's not probably it. – Kuba Dec 09 '13 at 13:23