MathGroup Archive 2012

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

Search the Archive

Re: Condition Generation in Integrate

It is just a limiting case

expr1 = Cos[Pi x]^2 Sin[Pi x (m+1)] Sin[Pi x (n+1)];

expr2 = Integrate[expr1, {x, 0, 1}];

expr3 = Simplify[Limit[expr2, m -> n+2], Element[n, Integers]]


expr4 = expr1 /.  m -> n+2;

expr5 = Simplify[Integrate[expr4,  {x, 0, 1}], Element[n, Integers]]


Bob Hanlon

Sent from my iPhone

On May 11, 2012, at 12:13 AM, Michael Musheghian <michael.musheghian at> wrote:

> Greetings!
> Integrate[
> Cos[\[Pi] x]^2*Sin[\[Pi] x (m + 1)]*Sin[\[Pi] x (n + 1)], {x, 0, 1}]
> When I evaluate this I get an answer, however, there are some special case s (for example, m & n are both integers and m == n+2)in which this integral must yield different result. My question is, why doesn't it take in consideration all cases and doesn't generate conditional expressions?
> Thank you.

  • Prev by Date: Re: ticks but no numbers on the axes
  • Next by Date: Re: Condition Generation in Integrate
  • Previous by thread: Condition Generation in Integrate
  • Next by thread: Re: Condition Generation in Integrate