Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integrate a matrix-function

  • To: mathgroup at
  • Subject: [mg27468] Re: Integrate a matrix-function
  • From: "Allan Hayes" <hay at>
  • Date: Tue, 27 Feb 2001 00:37:20 -0500 (EST)
  • References: <97cemm$>
  • Sender: owner-wri-mathgroup at


f[s_,t_] := {{s t, s t^2},{s^2 t,s^2 t^2}}

The integration that you  use seems to do what you want: the outpur is a
matrix of the same size as the integrand.


{{t*(-(s^2/2) + t^2/2), t^2*(-(s^2/2) + t^2/2)},
  {t*(-(s^3/3) + t^3/3), t^2*(-(s^3/3) + t^3/3)}}

Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Martin Richter" < at> wrote in message
news:97cemm$d9s at
> Hi
> I'm using Mathematical 4.0. The problem is the following.
> I have a function, say f[s_,t_], there s,t are real numbers and the output
> is a matrix of size (n,n). I need to integrate each component in the
> i.e. make a new function, like this:
> g[s_,t_] := Integrate[f[u,t], {u,s,t}] // error
> So right now I have a line for each element but I think there is a
> way of doing this (using Map or Apply) ?
> Thanks IA for any help
> Martin
> ----------------------------------------------
> Please remove the PET to reply by email

  • Prev by Date: Re: What is the difference equation of a Butterworth filter?
  • Next by Date: Re: Graphing Level Sets
  • Previous by thread: Re: Integrate a matrix-function
  • Next by thread: What is the difference between z[x_]:= D[y[x],x] and z[x_]:=y'[x]?