Use a dataconnection to take the first and second derivative. Start
<script language="JavaScript"> } </script>