derivative v av function from position dmmchat