The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Integrating a Matrix
Replies: 6   Last Post: Nov 29, 2013 3:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ] Topics: [ Previous | Next ]
Alexei Boulbitch

Posts: 483
Registered: 2/28/08
Re: Integrating a Matrix
Posted: Nov 29, 2013 3:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a 3X3 matrix of functions fij[x], for i,j = 1,2,3, and I want to NIntegrate all nine elements over 0<x<1 to get a matrix of constants. Is there an easy way to do this other that doing 9 individual NIntegration's?

This is a matrix 3x3:

m = Power[x, RandomInteger[{0, 9}, {3, 3}]]

{{x^4, x^6, x^4}, {x^7, x^8, x^4}, {x^6, x^2, x^4}}

And here is the integration:

mInt = Integrate[m, {x, 0, 1}]

{{1/5, 1/7, 1/5}, {1/8, 1/9, 1/5}, {1/7, 1/3, 1/5}}

You may also want to look at the result in the form of a matrix:


Have fun, Alexei

Alexei BOULBITCH, Dr., habil.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.