I have the following code:
x[t_]:=y[t]+2*t
MyRule = D[z[x[t]],x[t]]>0
y[t] and z[x[t]] are unknown functions.
I get the following error message: "D: 2t+y[t] is not a valid variable". I suspect the message tells me that I can not take derivitates with respect to another function. But then what should I do? I know the easy solution here will be to just take the derivative with respect to t and y using the chain rule, but my real code consist of a lot of functions that depends on other functions why I really want this specific framework to work.
2*t+y[t]
. This is not a single variable/symbol. It has head Plus. $\endgroup$