Message Boards Message Boards

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

[?] Calculate the following 2-equation integral?

Posted 5 years ago

enter image description here

How to integrate eq2 further?

Thanks.

POSTED BY: Jacques Ou
3 Replies

You need to integrate by parts? That is not built-in functionality, as far as I know, but you can write your own rule:

integrateByParts[f_, df_, x_] :=
  Integrate[df*g_, {x, a_, b_}] :>
   (f*g /. x -> b) - (f*g /. x -> a) - Integrate[f*D[g, x], {x, a, b}];
origIntegral = 
  Integrate[
   Cos[k \[Psi]] D[f[v, \[Psi]], \[Psi], \[Psi]], {\[Psi], 0, Pi}];
ibp = origIntegral /.
   integrateByParts[D[f[v, \[Psi]], \[Psi]], 
    D[f[v, \[Psi]], \[Psi], \[Psi]], \[Psi]] /.
  integrateByParts[f[v, \[Psi]], D[f[v, \[Psi]], \[Psi]], \[Psi]]
POSTED BY: Gianluca Gorni

Please do not post images of Mathematica code; use text that can be copied and pasted directly into a notebook (indent each line of the code at least 4 spaces).

POSTED BY: Murray Eisenberg
Posted 5 years ago

I get it. Thank you. Merry Christmas.

POSTED BY: Jacques Ou
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