Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, R. M. Jan 9 '14 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, R. M.
If this question can be reworded to fit the rules in the help center, please edit the question.

Reference here – Sektor Jan 9 '14 at 12:26
Use D[x^2, x] or Derivative[1][#^2 &][x]. – Artes Jan 9 '14 at 12:29
up vote 2 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

(* Derivative[1][f][x] *)
share|improve this answer

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