Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16062 > unrolled thread

Finding branches where general solution is possible

Started byNarasimham <mathma18@gmail.com>
First post2013-10-16 08:46 +0000
Last post2013-10-29 03:05 +0000
Articles 4 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Finding branches where general solution is possible Narasimham <mathma18@gmail.com> - 2013-10-16 08:46 +0000
    Re: Finding branches where general solution is possible "Dr. Wolfgang Hintze" <weh@snafu.de> - 2013-10-17 04:12 +0000
      Re: Finding branches where general solution is possible "Dr. Wolfgang Hintze" <weh@snafu.de> - 2013-10-19 08:05 +0000
    Re: Finding branches where general solution is possible Roland Franzius <roland.franzius@uos.de> - 2013-10-29 03:05 +0000

#16062 — Finding branches where general solution is possible

FromNarasimham <mathma18@gmail.com>
Date2013-10-16 08:46 +0000
SubjectFinding branches where general solution is possible
Message-ID<l3ljoe$jt5$1@smc.vnet.net>
For following function with period 2 Pi in which branches is it possible to get a general solution?

Regards
Narasimham 

DSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si[0]==Pi/4 },si,th]
NDSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si'[0]==0,si[0]==Pi/4},si,{th,0,6Pi}];
SI[u_]=si[u]/.First[%];Plot[SI[th],{th,0,6Pi}]

DSolve::bvnul: For some branches of the general solution, the given boundary conditions lead to an empty solution.>>

[toc] | [next] | [standalone]


#16071

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2013-10-17 04:12 +0000
Message-ID<l3no2j$ov6$1@smc.vnet.net>
In reply to#16062
Am Mittwoch, 16. Oktober 2013 10:46:06 UTC+2 schrieb Narasimham:
> For following function with period 2 Pi in which branches is it possible to get a general solution?
> 
> 
> 
> Regards
> 
> Narasimham 
> 
> 
> 
> DSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si[0]==Pi/4 },si,th]
> 
> NDSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si'[0]==0,si[0]==Pi/4},si,{th,0,6Pi}];
> 
> SI[u_]=si[u]/.First[%];Plot[SI[th],{th,0,6Pi}]
> 
> 
> 
> DSolve::bvnul: For some branches of the general solution, the given boundary conditions lead to an empty solution.>>

Version 8 of Mathematica has no difficulty in DSolve-ing the equation generally.
The solution is given in terms of InverseFunction as follows:

In[1]:= eq = 
 Derivative[2][s][t] == 
  Cot[s[t]]*(1 + Derivative[1][s][t])*(1 + 2*Derivative[1][s][t])

Out[1]= Derivative[2][s][t] == 
 Cot[s[t]]*(1 + Derivative[1][s][t])*(1 + 2*Derivative[1][s][t])

In[2]:= DSolve[eq, s[t], t]

Out[2]= {
   {s[t] -> 
   InverseFunction[
     2*(-((I*E^C[1]*Cos[#1/2]^3*
              Log[2*I*E^C[1]*Cos[#1] - 
                Sqrt[2]*Cos[#1/2]^2*
                 Sqrt[(-2 + E^(2*C[1]) - E^(2*C[1])*Cos[2*#1])*
                   Sec[#1/2]^4]]*
                          
              Sqrt[(-(2 - E^(2*C[1]) + E^(2*C[1])*Cos[2*#1]))*
                Sec[#1/2]^4]*Sin[#1/2])/
            Sqrt[(-E^(2*C[1]))*(2 - E^(2*C[1]) + 
                E^(2*C[1])*Cos[2*#1])*Sin[#1]^2]) - #1/2) & ][
    t + C[2]]}, 
   {s[t] -> 
   InverseFunction[-2*(-((I*E^C[1]*Cos[#1/2]^3*
              Log[2*I*E^C[1]*Cos[#1] - 
                Sqrt[2]*Cos[#1/2]^2*
                 Sqrt[(-2 + E^(2*C[1]) - E^(2*C[1])*Cos[2*#1])*
                   Sec[#1/2]^4]]*
                          
              Sqrt[(-(2 - E^(2*C[1]) + E^(2*C[1])*Cos[2*#1]))*
                Sec[#1/2]^4]*Sin[#1/2])/
            Sqrt[(-E^(2*C[1]))*(2 - E^(2*C[1]) + 
                E^(2*C[1])*Cos[2*#1])*Sin[#1]^2]) + #1/2) & ][
    t + C[2]]}}

Best regards,
Wolfgang

[toc] | [prev] | [next] | [standalone]


#16086

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2013-10-19 08:05 +0000
Message-ID<l3teh5$9vn$1@smc.vnet.net>
In reply to#16071
Am Donnerstag, 17. Oktober 2013 06:12:03 UTC+2 schrieb Dr. Wolfgang Hintze:
> Am Mittwoch, 16. Oktober 2013 10:46:06 UTC+2 schrieb Narasimham:
> 
> > For following function with period 2 Pi in which branches is it possible to get a general solution?
> 
> > 
> 
> > 
> 
> > 
> 
> > Regards
> 
> > 
> 
> > Narasimham 
> 
> > 
> 
> > 
> 
> > 
> 
> > DSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si[0]==Pi/4 },si,th]
> 
> > 
> 
> > NDSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si'[0]==0,si[0]==Pi/4},si,{th,0,6Pi}];
> 
> > 
> 
> > SI[u_]=si[u]/.First[%];Plot[SI[th],{th,0,6Pi}]
> 
> > 
> 
> > 
> 
> > 
> 
> > DSolve::bvnul: For some branches of the general solution, the given boundary conditions lead to an empty solution.>>
> 
> 
> 
> Version 8 of Mathematica has no difficulty in DSolve-ing the equation generally.
> 
> The solution is given in terms of InverseFunction as follows:
> 
> 
> 
> In[1]:= eq = 
> 
>  Derivative[2][s][t] == 
> 
>   Cot[s[t]]*(1 + Derivative[1][s][t])*(1 + 2*Derivative[1][s][t])
> 
> 
> 
> Out[1]= Derivative[2][s][t] == 
> 
>  Cot[s[t]]*(1 + Derivative[1][s][t])*(1 + 2*Derivative[1][s][t])
> 
> 
> 
> In[2]:= DSolve[eq, s[t], t]
> 
> 
> 
> Out[2]= {
> 
>    {s[t] -> 
> 
>    InverseFunction[
> 
>      2*(-((I*E^C[1]*Cos[#1/2]^3*
> 
>               Log[2*I*E^C[1]*Cos[#1] - 
> 
>                 Sqrt[2]*Cos[#1/2]^2*
> 
>                  Sqrt[(-2 + E^(2*C[1]) - E^(2*C[1])*Cos[2*#1])*
> 
>                    Sec[#1/2]^4]]*
> 
>                           
> 
>               Sqrt[(-(2 - E^(2*C[1]) + E^(2*C[1])*Cos[2*#1]))*
> 
>                 Sec[#1/2]^4]*Sin[#1/2])/
> 
>             Sqrt[(-E^(2*C[1]))*(2 - E^(2*C[1]) + 
> 
>                 E^(2*C[1])*Cos[2*#1])*Sin[#1]^2]) - #1/2) & ][
> 
>     t + C[2]]}, 
> 
>    {s[t] -> 
> 
>    InverseFunction[-2*(-((I*E^C[1]*Cos[#1/2]^3*
> 
>               Log[2*I*E^C[1]*Cos[#1] - 
> 
>                 Sqrt[2]*Cos[#1/2]^2*
> 
>                  Sqrt[(-2 + E^(2*C[1]) - E^(2*C[1])*Cos[2*#1])*
> 
>                    Sec[#1/2]^4]]*
> 
>                           
> 
>               Sqrt[(-(2 - E^(2*C[1]) + E^(2*C[1])*Cos[2*#1]))*
> 
>                 Sec[#1/2]^4]*Sin[#1/2])/
> 
>             Sqrt[(-E^(2*C[1]))*(2 - E^(2*C[1]) + 
> 
>                 E^(2*C[1])*Cos[2*#1])*Sin[#1]^2]) + #1/2) & ][
> 
>     t + C[2]]}}
> 
> 
> 
> Best regards,
> 
> Wolfgang

In order to make things (which Mathematica "knows") more tranparent consider that the differential equation is of the form

s''(t) = f(s(t)) g(s'(t))

Here variables can be separated as follows. 
Letting s' = u and using s as the indepent variable instead of t we have 

du/dt = du/ds ds/dt = du/ds u

and the differential equation becomes

du/ds u = f(s) g(u)

or

du u/g(u) = ds f(s)

This can be integrated once and gives (possibly implicitly) u as a function h of s and the constant C[1].

But this is another differential equation

ds/dt = h(s,C[1])

which can be integrated to give

Int(1/h(s,C[1])) = t+C[2]

This is then the general solution (two constants of integration) in the inverted form t = t(s).

Best regards,
Wolfgang

[toc] | [prev] | [next] | [standalone]


#16124

FromRoland Franzius <roland.franzius@uos.de>
Date2013-10-29 03:05 +0000
Message-ID<l4n8ml$b07$1@smc.vnet.net>
In reply to#16062
Am 16.10.2013 10:46, schrieb Narasimham:
> For following function with period 2 Pi in which branches is it possible to get a general solution?
>
> Regards
> Narasimham
>
> DSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si[0]==Pi/4 },si,th]
> NDSolve[{si''[th] Tan[si[th]]==(1+si'[th]) (1+2si'[th]),si'[0]==0,si[0]==Pi/4},si,{th,0,6Pi}];
> SI[u_]=si[u]/.First[%];Plot[SI[th],{th,0,6Pi}]
>
> DSolve::bvnul: For some branches of the general solution, the given boundary conditions lead to an empty solution.>>
>


The standard method of separation of variables leads to elliptic integrals.

You may fiddle around with the following result on the Riemann surface 
of the arctan function family living on a doubly infinity branched 
surface around the poles of the integrand 1/(1+z^2 ) at z=+-I
as a sum of two logarithms.


Setting si=x and si' = v

v' /((1 + v) (1 + 2 v)) = Cot[x]

In: Integrate[1/((1 + v) (2 + v)), v] == Integrate[Cot[x], x]
Out: Log[1 + v] - Log[2 + v] == Log[Sin[x]]

In: D[ Log[1 + v] - Log[2 + v], v] // Together
Out: 1/((1 + v) (2 + v))

The true genral indefinite integrals are of course

Log[Abs[(1 + v)/(1 + 2 v)]] == Log[Abs[Sin[x]]] + C[1]

or exponentiated on both sides

(1 + v)/(1 + 2 v) = C[1]  Sin[x]  v != {-1/2,-1}


In: Solve[(1 + (dx/dt))/(1 + 2 (dx/dt)) == C[1] Sin[x], dt]
Out: {{dt -> (dx - 2 dx C[1] Sin[x])/(-1 + C[1] Sin[x])}}


In: t -> C[2] + Integrate[(1 - 2 C[1] Sin[x])/(-1 + C[1] Sin[x]), x]
Out: t ->  C[2] -2 x -
(2 ArcTan[ (C[1] - Tan[x/2])/Sqrt[1 - C[1]^2]  ])  /  Sqrt[1 - C[1]^2]

-- 

Roland Franzius

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web