trace derivative