# Revision history [back]

### integration of matrix-valued function

Hi, I want to compute the (in)definite integral of matrix valued function, for example

var('x'), f =matrix([[x,1],[x^2,2]]);

The command

integrate(f,x,0,1)

doesn't work. I expect matrix as a result - integrated by elements

 2 No.2 Revision vdelecroix 6324 ●16 ●68 ●133 http://www.labri.fr/pe...

### integration of matrix-valued function

Hi, I want to compute the (in)definite integral of matrix valued function, for example

var('x'),

var('x')
f =matrix([[x,1],[x^2,2]]);=matrix([[x,1],[x^2,2]]);


The command

integrate(f,x,0,1)

integrate(f,x,0,1)


doesn't work. I expect matrix as a result - integrated by elements