Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello Sagemath Family, How can I create a matrix with its elements as differential operators?

So, I have a matrix that is 6 x 3. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with a 3 x 12 matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

I have tried a few ways, but it did not work. Please suggest me. TIA

G_times_S = matrix([[0, 0, 0], [0, (twole)diff(), 0], [(twole)diff(), 0, 0], [0, 0, 0], [0, 0, -diff(, 2)*(twole)^2], [0, 0, 0]]) * S(x)

NOTE: 1. S(x) is a 3 x 12 matrix which is known. 2. Operator matrix = matrix([[0, 0, 0], [0, (twole)diff(), 0], [(twole)diff(), 0, 0], [0, 0, 0], [0, 0, -diff(, 2)*(twole)^2], [0, 0, 0]]) which is 6 x 3. (Need help with this!)

This is what I am trying to do but the diff(function, order) needs arguments.

Hello Sagemath Family, How can I create a matrix with its elements as differential operators?

So, I have a matrix that is 6 x 3. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with a 3 x 12 matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

I have tried a few ways, but it did not work. Please suggest me. TIA

G_times_S = matrix([[0, 0, 0], [0, (twole)diff(), 0], [(twole)diff(), 0, 0], [0, 0, 0], [0, 0, -diff(, 2)*(twole)^2], [0, 0, 0]]) * S(x)

NOTE: 1. S(x) is a 3 x 12 matrix which is known. 2. Operator matrix = matrix([[0, 0, 0], [0, (twole)diff(), 0], [(twole)diff(), 0, 0], [0, 0, 0], [0, 0, -diff(, 2)*(twole)^2], [0, 0, 0]]) which is 6 x 3. (Need help with this!)

This is what I am trying to do but the diff(function, order) needs arguments.

Hello Sagemath Family, How can I create a matrix with its elements as Matrix of differential operators?operators acting on a matrix of functions

So, I have a matrix that is 6 x 3. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with a 3 x 12 matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

I have tried a few ways, but it did not work. Please suggest me. TIA

work.

G_times_S = matrix([[0, 0, 0], [0, (twole)diff(), 0], [(twole)diff(), 0, 0], [0, 0, 0], 0],
                    [0, (twole)*diff(), 0],
                    [(twole)*diff(), 0, 0],
                    [0, 0, 0],
                    [0, 0, -diff(, 2)*(twole)^2], 2)*(twole)^2],
                    [0, 0, 0]]) * S(x)

NOTE: 1. S(x)

Note:

  1. S(x) is a 3 x 12 matrix which is known. 2. Operator matrix = known.

  2. The operator matrix is

    matrix([[0, 0, 0], [0, (twole)diff(), 0], [(twole)diff(), 0, 0], [0, 0, 0], 0],
            [0, (twole)*diff(), 0],
            [(twole)*diff(), 0, 0],
            [0, 0, 0],
            [0, 0, -diff(, 2)*(twole)^2], [0, 0, 0]]) 2)*(twole)^2],
            [0, 0, 0]])
    

which is 6 x 3. (Need help with this!)

This is what I am trying to do but the diff(function, order) order) needs arguments.

Matrix of differential operators acting on a matrix of functions

So, I have a matrix that is 6 x 3. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with a 3 x 12 matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

I have tried a few ways, but it did not work.

G_times_S = matrix([[0, 0, 0],
                    [0, (twole)*diff(), 0],
                    [(twole)*diff(), 0, 0],
                    [0, 0, 0],
                    [0, 0, -diff(, 2)*(twole)^2],
                    [0, 0, 0]]) * S(x)

Note:

  1. S(x) S(x) is a 3 x 12 matrix which is known.

  2. The operator matrix is

    matrix([[0, 0, 0],
            [0, (twole)*diff(), 0],
            [(twole)*diff(), 0, 0],
            [0, 0, 0],
            [0, 0, -diff(, 2)*(twole)^2],
            [0, 0, 0]])
    

which is 6 x 3. (Need help with this!)

  • twole is a constant.

  • This is what I am trying to do but the diff(function, order) needs arguments.

    Matrix of differential operators acting on a matrix of functions

    So, Suppose I have a matrix that is 6 x 3. 2x2 operator matrix. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with a 3 x 12 another matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, but it did not work.

    G_times_S 

    for example: D() = matrix([[0, 0, 0], [0, (twole)*diff(), 0], [(twole)*diff(), 0, 0], [0, 0, 0], [0, 0, -diff(, 2)*(twole)^2], [0, 0, 0]]) * S(x)

    Note:

    1. S(x) matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is a 3 x 12 an operator matrix which is known.

    2. The operator matrix is

      matrix([[0, 0, 0],
              [0, (twole)*diff(), 0],
              [(twole)*diff(), 0, 0],
              [0, 0, 0],
              [0, 0, -diff(, 2)*(twole)^2],
              [0, 0, 0]])
      

      which is 6 x 3. (Need help with this!)

    3. twole is operates on a constant.

    This is what function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to do but finally get D(f(x)), where f could be any function matrix.

    I want to write the diff(function, order) D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments.arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, but it did not work.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)), D(f(x)) = D()*f(x), (throughmatrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, but it did not work.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (throughmatrix (through matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, but it did not work.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (through (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix. matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, but it did not work.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it did does not work.work as we need arguments.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need arguments.argument in it.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need argument in it.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form. it. The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need argument in it. it.

    The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D() = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get D(f(x)) = D()*f(x), (simple matrix multiplication), where f could be any function matrix.

    I want to write the D() matrix such that when operated on a function matrix, will return its differentiated form.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need argument in it.

    The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D() D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, for example, f(x) = matrix([[x, x^2], [x^3, x]]). I am trying to finally get x]]) as D(f(x)) = D()*f(x), D*f(x), (simple matrix multiplication), where f could be any function matrix.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need argument in it.

    The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of differential operators acting on a matrix of functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need argument in it.

    The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    Matrix of A matrix containing differential operators acting on a matrix of containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as we need argument in it.diff() function needs some arguments.

    The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    I have tried a few ways, like, D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it does not work as diff() function needs some arguments.

    The problem is: diff() function in sage or sympy needs arguments: diff(f(x), x, n). So how can I write the D() operator matrix?

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    I have tried a few ways, like, Writing D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]), but it 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies first-order differential to all elements in f(x). However, I have diff operators of different orders in the D.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies first-order differential d/dx to all elements in f(x). However, I have diff operators of different orders in the D.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). However, Whereas, I have diff operators of different orders in the D.D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d/dx], d3/dx3], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x)], x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]])

    is an operator matrix which operates on a function matrix,

    f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]])

    d2/dx2]]) is an operator matrix which operates on a function matrix,

    f(x) = matrix([[x, x^2], [x^3, x]]) x]]) as D(f(x)) = D*f(x), Df(x)*, (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = Df(x)*, (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = Df(x)*, D*f(x), (simple matrix multiplication), where f could be any function matrix.

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication), where f could be any function matrix.multiplication).

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication).

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have diff 'diff()' operators of different orders in the D matrix.

    A matrix containing differential operators acting on a matrix containing functions

    Suppose I have a 2x2 operator matrix, D. Some of its elements are of the form (d/dx), and (d2/dx2). Now when this matrix is multiplied with another matrix, f, whose elements are functions of x, I will get the final matrix whose corresponding elements are differentiated.

    for example: D = matrix([[d/dx, d3/dx3], [d2/dx2, d2/dx2]]) is an operator matrix which operates on a function matrix, f(x) = matrix([[x, x^2], [x^3, x]]) as D(f(x)) = D*f(x), (simple matrix multiplication).

    Writing D = matrix([[diff( , x), diff( , x, 3)], [diff( , x, 2), diff( , x, 2)]]) does not work as diff() function needs some arguments.an input function.

    So how can I write the D() operator matrix?

    PS: I could use f.apply_map(lambda e: diff(e, x)), but then it applies d/dx to all elements in f(x). Whereas, I have 'diff()' operators of different orders in the D matrix.