Hello,I have the following problem in Mathematica : if I define the following functionsT[x_] := D[x, {x, 1}];u[x_] = Sqrt[2]*x;T[u[x]]I get : General::ivar : x is not a valid variable.∂_{x, 1}Sqrt(2)x)Why ? Thanks a lot.
Maybe its getting confused because(a) x is both the function and argument for the differientation(b) the function argument is not supplied in D[...]. I.e it expects f[x]TryT[f_] := D[f[x], {x, 1}]u[x_] = Sqrt[2]*xT
You're asking T to perform D[ _ , {Sqrt[2]*x,1}], and Sqrt[2]*x is not a valid variable to perform the derivative ... x would be, Sqrt[2]*x would not.BTW, you want u defined as u[x_] = Sqrt[2]*x or u[x_]:= Sqrt[2]*x ?