Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

These two expressions are mathematically the same, but when substituting with the same rule, yield different results. What is happening?

Derivative[1][Derivative[1][x][t]][t] == 5 t + 3 x[t] /. 
  {x -> Function[{t}, 1/3 (-5 t + Derivative[1][Derivative[1][x][t]][t])]}

D[x[t], t, t] == 5 t + 3 x[t] /. 
  {x -> Function[{t}, 1/3 (-5 t + Derivative[1][Derivative[1][x][t]][t])]}
share|improve this question

1 Answer 1

up vote 9 down vote accepted

The correct notation for a double derivative is Derivative[1][ Derivative[1][x] ][t], not Derivative[1][ Derivative[1][x][t] ][t]. Note the difference between a function f and its value at t: f[t]. Derivative[1][x] represents a function. Derivative[1][x][t] represents its value at t.

Derivative needs to be used like this: Derivative[k][f] where k is a number and f is a function. In place of f you had Derivative[1][x][t] which is not a function, but a value of the function at t.

The simpler notation for the second derivative is Derivative[2][x].

share|improve this answer
    
Thank you, I think I still have a lot to learn. –  Giovanni Mar 8 at 19:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.