Message Boards Message Boards


[✓] Calculate the following 2-equation integral?

Posted 7 months ago
3 Replies
2 Total Likes

enter image description here

How to integrate eq2 further?


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 = 
   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 7 months ago

I get it. Thank you. Merry Christmas.

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).

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract