MathGroup Archive 2010

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

Search the Archive

Re: mathematica gives strange result

  • To: mathgroup at
  • Subject: [mg111313] Re: mathematica gives strange result
  • From: Simon <simonjtyler at>
  • Date: Tue, 27 Jul 2010 04:17:36 -0400 (EDT)
  • References: <i2gjom$3m$> <i2h86h$2hd$>

> It suprised me because the solution isn't real, i'm looking for real
> one, but mathematica gives me onle this.

It's a linear ODE, so all solutions are a linear combination of two
basis solutions. This means that the automatically generated constants
C[1] and C[2] can be whatever you want...  In particular:

FullSimplify[DSolve[-y''[x] + Csc[x]^2*y[x] == y[x]/4, y[x], x]/.{C[1]
-> a/(-1)^4^(-1), C[2] -> b/(-1)^4^(-1)},Element[x, Reals]]

yields a solution (which for real a and b) is manifestly real:

{{y[x] -> -(1/5) E^(-(1/2) Sqrt[5]  ArcTanh[Cos[x]]) (-5 a + Sqrt[5] b
E^(Sqrt[5] ArcTanh[Cos[x]])) Sqrt[Abs[Sin[x]]]}}


  • Prev by Date: Parallel search?
  • Next by Date: Re: FindRoot + Compile = incompatible (?)
  • Previous by thread: Re: mathematica gives strange result
  • Next by thread: de-nesting complex nested lists