up previous next
deriv

the derivative of a polynomial or rational function

Syntax
deriv(F: RINGELEM, X: RINGELEM): RINGELEM

Description
This function returns the derivative of F with respect to the indeterminate X.

Example
/**/  Use R ::= QQ[x,y];
/**/  deriv(x*y^2, x);
y^2

/**/  Define Jac(F)  --> The Jacobian matrix for a polynomial.
/**/    Return matrix([[deriv(F, X) | X In Indets(RingOf(F))]]);
/**/  EndDefine;

/**/  Jac(x*y^2);
matrix( /*RingDistrMPolyClean(QQ, 2)*/
 [[y^2, 2*x*y]])

/**/  FrF := NewFractionField(R);
/**/  Use FrF;
/**/  deriv((x*y^2)/(x-1), x);
(-y^2)/(x^2 -2*x +1)

See Also