MathGroup Archive 2000

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

Search the Archive

system of nonlinear differential equations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26255] system of nonlinear differential equations
  • From: "Bogdan Wasiluk" <bwasiluk at force.energy.kyoto-u.ac.jp>
  • Date: Sun, 10 Dec 2000 00:19:31 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

How could I find solution of the system of nonlinear differential equations?
I can not solve them using DSolve or NDSolve, please see attached file.
I know that boundary conditions for DSolve should be at the same point.

Best regards,

Bogdan 

E-mail: bwasiluk at force.energy.kyoto-u.ac.jp



(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 4.0,
MathReader 4.0, or any compatible application. The data for the notebook 

starts with the line containing stars above.

To get the notebook into a Mathematica-compatible application, do one of 

the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the
word CacheID, otherwise Mathematica-compatible applications may try to
use invalid cache data.

For more information on notebooks and Mathematica-compatible
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info at wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      9342,        226]*)
(*NotebookOutlinePosition[     10414,        261]*)
(*  CellTagsIndexPosition[     10370,        257]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[TextData[{
  "<<Calculus`DSolveIntegrals`\n<<NumericalMath",
  StyleBox["`", "MB"],
  "NLimit",
  StyleBox["`\n<<", "MB"],
  "Calculus",
  StyleBox["`", "MB"],
  "VariationalMethods",
  StyleBox["`", "MB"]
}], "Input",
  PageWidth->Infinity,
  FontFamily->"Courier New",
  FontSize->12,
  FontWeight->"Plain",
  FontSlant->"Plain",
  FontTracking->"Plain",
  FontVariations->{"Underline"->False,
  "Outline"->False,
  "Shadow"->False}],

Cell[BoxData[
    \(\(s = \(-\(1\/\(n + 1\)\)\);\)\)], "Input"],

Cell[BoxData[
    \(\(Y[\[Theta]] = \((3\/4\ \((y\_1[\[Theta]] - 
y\_2[\[Theta]])\)\^2 + 3\ \
y\_3[\[Theta]]\^2)\)\^\(1\/2\);\)\)], "Input"],

Cell[BoxData[
    \(\(F[\[Theta]] =
        1 + \(3\ \((n - 1)\)\)\/\(4\ Y[\[Theta]]\^2\)\ \((y\_1[\[Theta]] 
- \
y\_2[\[Theta]])\)\^2;\)\)], "Input"],

Cell[BoxData[
    \(\(G[\[Theta]] = \(3\ \((n - 1)\)\)\/Y[\[Theta]]\^2\ 
y\_3[\[Theta]]\ \
\((y\_1[\[Theta]] - y\_2[\[Theta]])\);\)\)], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
    \(DSolve[{\[PartialD]\_\[Theta]\
            y\_1[\[Theta]] == \(3\ y\_3[\[Theta]] - 3\/\(4\ \((s\ n 
+ 1)\)\)\ \
\((\((s + 2)\)\ F[\[Theta]]\ y\_3[\[Theta]] + G[\[Theta]]\ 
\((y\_2[\[Theta]] \
- \((s + 1)\)\ y\_1[\[Theta]])\))\) - \(s\ n\)\/Y[\[Theta]]\^\(n - 1\)\ 
y\_4[\
\[Theta]]\)\/\(\(3\ F[\[Theta]]\)\/\(4\ \((s\ n + 1)\)\)\), \ 
\[PartialD]\_\
\[Theta]\ y\_2[\[Theta]] == \(-\((s +
                  2)\)\)\ y\_3[\[Theta]], \ \[PartialD]\_\[Theta]\
            y\_3[\[Theta]] ==
          y\_2[\[Theta]] - \((s +
                  1)\)\ y\_1[\[Theta]], \ \[PartialD]\_\[Theta]\
            y\_4[\[Theta]] == \(3\ Y[\[Theta]]\^\(n - 1\)\)\/4\ \((1 
+
                1\/\(s\ n + 1\))\)\ \((y\_2[\[Theta]] - 
y\_1[\[Theta]])\),
        y\_3[0] == 0, \ \ y\_4[0] == 0, \ y\_2[\[Pi]] == 0,
        y\_3[\[Pi]] == 0\ }, \ {y\_1, \ y\_2, y\_3,
        y\_4}\ , \[Theta]]\)], "Input"],

Cell[BoxData[
    RowBox[{"DSolve", "[",
      RowBox[{
        RowBox[{"{",
          RowBox[{
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "1", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(\((4\ \((1 -
                        n\/\(1 + n\))\)\ \((3\ y\_3[\[Theta]] - \(3\ 
\((\(3\ \
\((\(-1\) + n)\)\ \((y\_1[\[Theta]] - y\_2[\[Theta]])\)\ \((\(-\((1 - 
1\/\(1 \
+ n\))\)\)\ y\_1[\[Theta]] + y\_2[\[Theta]])\)\ 
y\_3[\[Theta]]\)\/\(3\/4\ \
\((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2 + 3\ y\_3[\[Theta]]\^2\) + \((2 
- \
1\/\(1 + n\))\)\ y\_3[\[Theta]]\ \((1 + \(3\ \((\(-1\) + n)\)\ \((y\_1[\
\[Theta]] - y\_2[\[Theta]])\)\^2\)\/\(4\ \((3\/4\ \((y\_1[\[Theta]] - 
y\_2[\
\[Theta]])\)\^2 + 3\ y\_3[\[Theta]]\^2)\)\))\))\)\)\/\(4\ \((1 - n\/\(1 
+ \
n\))\)\) + \(n\ \((3\/4\ \((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2 + 3\ 
y\_3[\
\[Theta]]\^2)\)\^\(\(1 - n\)\/2\)\ y\_4[\[Theta]]\)\/\(1 + 
n\))\))\)/\((3\ \
\((1 + \(3\ \((\(-1\) + n)\)\ \((y\_1[\[Theta]] - 
y\_2[\[Theta]])\)\^2\)\/\(4\
\ \((3\/4\ \((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2 + 3\ 
y\_3[\[Theta]]\^2)\)\
\))\))\)\)}], ",",
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "2", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(\((\(-2\) + 1\/\(1 + n\))\)\ 
y\_3[\[Theta]]\)}], ",",
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "3", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(\(-\((1 - 1\/\(1 + n\))\)\)\ y\_1[\[Theta]] +
                y\_2[\[Theta]]\)}], ",",
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "4", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(3\/4\ \((1 +
                    1\/\(1 - n\/\(1 + n\)\))\)\ \((\(-y\_1[\[Theta]]\) + 

                    y\_2[\[Theta]])\)\ \((3\/4\ \((y\_1[\[Theta]] - 
y\_2[\
\[Theta]])\)\^2 + 3\ y\_3[\[Theta]]\^2)\)\^\(1\/2\ \((\(-1\) + 
n)\)\)\)}],
            ",", \(y\_3[0] == 0\), ",", \(y\_4[0] == 0\),
            ",", \(y\_2[\[Pi]] == 0\), ",", \(y\_3[\[Pi]] == 
0\)}], "}"}],
        ",", \({y\_1, y\_2, y\_3, y\_4}\), ",", "\[Theta]"}], "]"}]], 
"Output"]
}, Open  ]],

Cell[BoxData[
    \(\(n = 3;\)\)], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
    \(NDSolve[{\[PartialD]\_\[Theta]\
            y\_1[\[Theta]] == \(3\ y\_3[\[Theta]] - 3\/\(4\ \((s\ n 
+ 1)\)\)\ \
\((\((s + 2)\)\ F[\[Theta]]\ y\_3[\[Theta]] + G[\[Theta]]\ 
\((y\_2[\[Theta]] \
- \((s + 1)\)\ y\_1[\[Theta]])\))\) - \(s\ n\)\/Y[\[Theta]]\^\(n - 1\)\ 
y\_4[\
\[Theta]]\)\/\(\(3\ F[\[Theta]]\)\/\(4\ \((s\ n + 1)\)\)\), \ 
\[PartialD]\_\
\[Theta]\ y\_2[\[Theta]] == \(-\((s +
                  2)\)\)\ y\_3[\[Theta]], \ \[PartialD]\_\[Theta]\
            y\_3[\[Theta]] ==
          y\_2[\[Theta]] - \((s +
                  1)\)\ y\_1[\[Theta]], \ \[PartialD]\_\[Theta]\
            y\_4[\[Theta]] == \(3\ Y[\[Theta]]\^\(n - 1\)\)\/4\ \((1 
+
                1\/\(s\ n + 1\))\)\ \((y\_2[\[Theta]] - 
y\_1[\[Theta]])\),
        y\_3[0] == 0, \ \ y\_4[0] == 0, \ y\_2[0] == 0,
        y\_3[0] == 0\ }, \ {y\_1, \ y\_2, y\_3,
        y\_4}\ , {\[Theta], \(-\[Pi]\), \[Pi]}]\)], "Input"],

Cell[BoxData[
    \(Solve::"svars" \(\(:\)\(\ \)\)
      "Equations may not give solutions for all \"solve\" 
variables."\)], \
"Message"],

Cell[BoxData[
    \(NDSolve::"ndinn" \(\(:\)\(\ \)\)
      "Initial condition \!\(NDSolve`Private`S1\) is not a number."\)], 
\
"Message"],

Cell[BoxData[
    RowBox[{"NDSolve", "[",
      RowBox[{
        RowBox[{"{",
          RowBox[{
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "1", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(\(3\ y\_3[\[Theta]] -
                    3\ \((\(6\ \((y\_1[\[Theta]] - y\_2[\[Theta]])\)\ \
\((\(-\(3\/4\)\)\ y\_1[\[Theta]] + y\_2[\[Theta]])\)\ \
y\_3[\[Theta]]\)\/\(3\/4\ \((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2 + 3\ 
y\_3[\
\[Theta]]\^2\) +
                          7\/4\ y\_3[\[Theta]]\ \((1 + \(3\ 
\((y\_1[\[Theta]] \
- y\_2[\[Theta]])\)\^2\)\/\(2\ \((3\/4\ \((y\_1[\[Theta]] - 
y\_2[\[Theta]])\)\
\^2 + 3\ y\_3[\[Theta]]\^2)\)\))\))\) + \(3\ y\_4[\[Theta]]\)\/\(4\ 
\((3\/4\ \
\((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2 + 3\ 
y\_3[\[Theta]]\^2)\)\)\)\/\(3\ \
\((1 + \(3\ \((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2\)\/\(2\ \((3\/4\ \
\((y\_1[\[Theta]] - y\_2[\[Theta]])\)\^2 + 3\ 
y\_3[\[Theta]]\^2)\)\))\)\)\)}],
             ",",
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "2", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(\(-\(7\/4\)\)\ y\_3[\[Theta]]\)}], ",",
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "3", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(\(-\(3\/4\)\)\ y\_1[\[Theta]] + 
y\_2[\[Theta]]\)}], ",",
            
            RowBox[{
              RowBox[{
                SubsuperscriptBox["y", "4", "\[Prime]",
                  MultilineFunction->None], "[", "\[Theta]", "]"}],
              "==", \(15\/4\ \((\(-y\_1[\[Theta]]\) +
                    y\_2[\[Theta]])\)\ \((3\/4\ \((y\_1[\[Theta]] - 
y\_2[\
\[Theta]])\)\^2 + 3\ y\_3[\[Theta]]\^2)\)\)}], ",", \(y\_3[0] == 
0\),
            ",", \(y\_4[0] == 0\), ",", \(y\_2[0] == 0\),
            ",", \(y\_3[0] == 0\)}], "}"}], ",", \({y\_1, y\_2, 
y\_3, y\_4}\),
         ",", \({\[Theta], \(-\[Pi]\), \[Pi]}\)}], "]"}]], "Output"]
}, Open  ]]
},
FrontEndVersion->"4.0 for Microsoft Windows",
ScreenRectangle->{{0, 1024}, {0, 723}},
WindowSize->{891, 676},
WindowMargins->{{0, Automatic}, {Automatic, 0}},
PrintingCopies->1,
PrintingPageRange->{1, 1},
PageHeaders->{{Cell[
        TextData[ {
          CounterBox[ "Page"]}], "PageNumber"], Inherited, Cell[
        TextData[ {
          ValueBox[ "FileName"]}], "Header", {
        ValueBox[ "Mixed mode"]}]}, {Cell[
        TextData[ {
          ValueBox[ "FileName"]}], "Header"], Inherited, Cell[
        TextData[ {
          CounterBox[ "Page"]}], "PageNumber"]}}
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of
the file.  The cache data will then be recreated when you save this file 

from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1717, 49, 440, 18, 65, "Input"],
Cell[2160, 69, 63, 1, 42, "Input"],
Cell[2226, 72, 139, 2, 47, "Input"],
Cell[2368, 76, 150, 3, 44, "Input"],
Cell[2521, 81, 143, 2, 44, "Input"],

Cell[CellGroupData[{
Cell[2689, 87, 907, 15, 125, "Input"],
Cell[3599, 104, 2343, 43, 340, "Output"]
}, Open  ]],
Cell[5957, 150, 43, 1, 30, "Input"],

Cell[CellGroupData[{
Cell[6025, 155, 921, 15, 125, "Input"],
Cell[6949, 172, 138, 3, 24, "Message"],
Cell[7090, 177, 138, 3, 24, "Message"],
Cell[7231, 182, 2095, 41, 189, "Output"]
}, Open  ]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)




  • Prev by Date: from Visual Basic To Mathematica through JLink: examples and problems
  • Next by Date: Re: Big trouble with Mathematica Code parsing -- Rant.
  • Previous by thread: Re: from Visual Basic To Mathematica through JLink: examples and problems
  • Next by thread: BarChart Options?