Ticket #61: jacobian.help.M2

File jacobian.help.M2, 1.3 KB (added by Oleksandr , 15 years ago)

description of jacobian in M2

Line 
1-- Hier comes further description due to M2:
2
3
4jacobian(Matrix) -- the matrix of partial derivatives of polynomials in a matrix
5Synopsis
6Usage: jacobian f
7
8Function: jacobian
9Inputs:
10f, a matrix, with one row -- veraltet????
11Outputs:
12a matrix, the Jacobian matrix of partial derivatives of the polynomial entries of f
13Description
14If f is a 1 by m matrix over a polynomial ring R with n indeterminates, then the resulting matrix of partial derivatives has dimensions n by m, and the (i,j) entry is the partial derivative of the j-th entry of f by the i-th indeterminate of the ring.
15
16If the ring of f is a quotient polynomial ring S/J, then only the derivatives of the given entries of f are computed and NOT the derivatives of elements of J.i1 : R = QQ[x,y,z];
17
18
19
20
21i2 : f = matrix{{y^2-x*(x-1)*(x-13)}}
22
23o2 = | -x3+14x2+y2-13x |
24
25             1       1
26o2 : Matrix R  <--- R
27i3 : jacobian f
28
29o3 = {1} | -3x2+28x-13 |
30     {1} | 2y          |
31     {1} | 0           |
32
33             3       1
34o3 : Matrix R  <--- R
35
36
37
38
39If the ring of f is a polynomial ring over a polynomial ring, then indeterminates in the coefficient ring are treated as constants.i4 : R = ZZ[a,b,c][x,y,z]
40
41
42
43
44o4 = R
45
46o4 : PolynomialRing
47i5 : jacobian matrix{{a*x+b*y^2+c*z^3, a*x*y+b*x*z}}
48
49o5 = {1} | a    ya+zb |
50     {1} | 2yb  xa    |
51     {1} | 3z2c xb    |
52
53             3       2
54o5 : Matrix R  <--- R
55