Message Boards Message Boards

0
|
2530 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Writing power to an integral?

Posted 1 year ago

Hello everybody.

I have this integral:

enter image description here

I used this code:

NIntegrate[
 Subscript[\[Lambda], 2][s, u] Vbar[u], {s, 
  0, T},{u, 0, s}]

How can I put the '2' power?

I tried this code:

NIntegrate[
 NIntegrate[Subscript[\[Lambda], 2][s, u] Vbar[u], {u, 0, s}]^2, {s, 
  0, T}]

This code gives me an answer but it has an error. How can I solve this error?

I attached the code as well.

Attachments:
POSTED BY: M M
3 Replies

To eliminate the square I am afraid you will need to go to a triple integral:

Integrate[Integrate[f[s, u], {u, 0, s}]^2, {s, 0, T}] ==
 Integrate[Integrate[f[s, u], {u, 0, s}]*
   Integrate[f[s, v], {v, 0, s}],
  {s, 0, T}] ==
 Integrate[Integrate[f[s, u] f[s, v], {u, 0, s}, {v, 0, s}],
  {s, 0, T}] ==
 Integrate[f[s, u] f[s, v], {s, 0, T}, {u, 0, s}, {v, 0, s}]
POSTED BY: Gianluca Gorni
Posted 1 year ago

Thank you.

It works correctly.

POSTED BY: M M

Perhaps like this ( I think you should avoid complcated varable-names)

NIntegrate[(Integrate[ lam2[s,u] Vbar[u],{u,0,s}])^2,{s,0,T}]
POSTED BY: Hans Dolhaine
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract