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.

I have a problem with my Mathematica 7.0 When I write:

Derivative[x^2, x]

Mathematica returns as result :

Derivative[x^2, x]

not 2x

Why is that? Am I doing something wrong with Derivative?

share|improve this question

closed as off-topic by Artes, Sjoerd C. de Vries, Kuba, bobthechemist, rm -rf Jan 9 at 15:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Artes, Sjoerd C. de Vries, Kuba, bobthechemist, rm -rf
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Reference here –  Sektor Jan 9 at 12:26
1  
Use D[x^2, x] or Derivative[1][#^2 &][x]. –  Artes Jan 9 at 12:29

1 Answer 1

up vote 1 down vote accepted

What you want is

D[x^2, x]
(* 2 x *)

Derivative is a representation when the derivative cannot be computed explicitly. For instance look at this example with an unknown function f

D[f[x],x]//FullForm
(* Derivative[1][f][x] *)
share|improve this answer

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