File: maxima_44.html

package info (click to toggle)
maxima 5.21.1-2squeeze
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 94,928 kB
  • ctags: 43,849
  • sloc: lisp: 298,974; fortran: 14,666; perl: 14,325; tcl: 10,494; sh: 4,052; makefile: 2,975; ansic: 471; awk: 24; sed: 7
file content (919 lines) | stat: -rw-r--r-- 32,183 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created on April, 24 2010 by texi2html 1.76 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<head>
<title>Maxima 5.21.1 Manual: 44. contrib_ode</title>

<meta name="description" content="Maxima 5.21.1 Manual: 44. contrib_ode">
<meta name="keywords" content="Maxima 5.21.1 Manual: 44. contrib_ode">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.76">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
body
{
    color: black;
    background: white; 
    margin-left: 8%;
    margin-right: 13%;
}

h1
{
    margin-left: +8%;
    font-size: 150%;
    font-family: sans-serif
}

h2
{
    font-size: 125%;
    font-family: sans-serif
}

h3
{
    font-size: 100%;
    font-family: sans-serif
}

h2,h3,h4,h5,h6 { margin-left: +4%; }

div.textbox
{
    border: solid;
    border-width: thin;
    /* width: 100%; */
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
    padding-right: 2em
}

div.titlebox
{
    border: none;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
    padding-right: 2em;
    background: rgb(200,255,255);
    font-family: sans-serif
}

div.synopsisbox
{
    border: none;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
    padding-right: 2em;
     background: rgb(255,220,255);
    /*background: rgb(200,255,255); */
    /* font-family: fixed */
}

pre.example
{
    border: 1px solid gray;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
    /* background: rgb(247,242,180); */ /* kind of sandy */
    /* background: rgb(200,255,255); */ /* sky blue */
    background-color: #F1F5F9; /* light blue-gray */
    /* font-family: "Lucida Console", monospace */
}

div.spacerbox
{
    border: none;
    padding-top: 2em;
    padding-bottom: 2em
}

div.image
{
    margin: 0;
    padding: 1em;
    text-align: center;
}

div.categorybox
{
    border: 1px solid gray;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 1em;
    padding-right: 1em;
    background: rgb(247,242,220);
}


-->
</style>

<link rel="icon" href="http://maxima.sourceforge.net/favicon.ico"/>
</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="contrib_005fode"></a>
<a name="SEC191"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="maxima_43.html#SEC190" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC192" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima_43.html#SEC189" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1 class="chapter"> 44. contrib_ode </h1>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#SEC192">44.1 Introduction to contrib_ode</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC193">44.2 Functions and Variables for contrib_ode</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC194">44.3 Possible improvements to contrib_ode</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC195">44.4 Test cases for contrib_ode</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC196">44.5 References for contrib_ode</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
</table>

<p><a name="Item_003a-Introduction-to-contrib_005fode"></a>
</p><hr size="6">
<a name="Introduction-to-contrib_005fode"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC191" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC193" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC191" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC191" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>

<a name="SEC192"></a>
<h2 class="section"> 44.1 Introduction to contrib_ode </h2>

<p>Maxima's ordinary differential equation (ODE) solver <code>ode2</code> solves
elementary linear ODEs of first and second order.  The function
<code>contrib_ode</code> extends <code>ode2</code> with additional methods for linear
and non-linear first order ODEs and linear homogeneous second order ODEs.  
The code is still under development and the calling sequence may change
in future releases.  Once the code has stabilized it may be
moved from the contrib directory and integrated into Maxima.
</p>
<p>This package must be loaded with the command <code>load('contrib_ode)</code>
before use.
</p>
<p>The calling convention for <code>contrib_ode</code> is identical to <code>ode2</code>.  
It takes
three arguments: an ODE (only the left hand side need be given if the
right hand side is 0), the dependent variable, and the independent
variable.  When successful, it returns a list of solutions.
</p>
<p>The form of the solution differs from <code>ode2</code>.
As non-linear equations can have multiple solutions, 
<code>contrib_ode</code> returns a list of solutions.  Each  solution can 
have a number of forms:
</p><ul>
<li>
an explicit solution for the dependent variable,

</li><li>
an implicit solution for the dependent variable,

</li><li>
a parametric solution in terms of variable <code>%t</code>, or

</li><li>
a tranformation into another ODE in variable <code>%u</code>.

</li></ul>

<p><code>%c</code> is used to represent the constant of integration for first order equations.
<code>%k1</code> and <code>%k2</code> are the constants for second order equations.  
If <code>contrib_ode</code>
cannot obtain a solution for whatever reason, it returns <code>false</code>, after
perhaps printing out an error message.
</p>
<p>It is necessary to return a list of solutions, as even first order
non-linear ODEs can have multiple solutions.  For example:
</p>
<pre class="example">(%i1) load('contrib_ode)$

(%i2) eqn:x*'diff(y,x)^2-(1+x*y)*'diff(y,x)+y=0;

                    dy 2             dy
(%o2)            x (--)  - (x y + 1) -- + y = 0
                    dx               dx
(%i3) contrib_ode(eqn,y,x);

                                             x
(%o3)             [y = log(x) + %c, y = %c %e ]
(%i4) method;

(%o4)                        factor
</pre>
<p>Nonlinear ODEs can have singular solutions without constants of
integration, as in the second solution of the following example:
</p>
<pre class="example">(%i1) load('contrib_ode)$

(%i2) eqn:'diff(y,x)^2+x*'diff(y,x)-y=0;

                       dy 2     dy
(%o2)                 (--)  + x -- - y = 0
                       dx       dx
(%i3) contrib_ode(eqn,y,x);

                                           2
                                 2        x
(%o3)              [y = %c x + %c , y = - --]
                                          4
(%i4) method;

(%o4)                       clairault
</pre>

<p>The following ODE has two parametric solutions in terms of the dummy
variable <code>%t</code>.  In this case the parametric solutions can be manipulated
to give explicit solutions.
</p>
<pre class="example">(%i1) load('contrib_ode)$

(%i2) eqn:'diff(y,x)=(x+y)^2;

                          dy          2
(%o2)                     -- = (y + x)
                          dx
(%i3) contrib_ode(eqn,y,x);

(%o3) [[x = %c - atan(sqrt(%t)), y = - x - sqrt(%t)], 
                     [x = atan(sqrt(%t)) + %c, y = sqrt(%t) - x]]
(%i4) method;

(%o4)                       lagrange
</pre>
<p>The following example (Kamke 1.112) demonstrates an implicit solution.
</p>
<pre class="example">(%i1) load('contrib_ode)$

(%i2) assume(x&gt;0,y&gt;0);

(%o2)                    [x &gt; 0, y &gt; 0]
(%i3) eqn:x*'diff(y,x)-x*sqrt(y^2+x^2)-y;

                     dy           2    2
(%o3)              x -- - x sqrt(y  + x ) - y
                     dx
(%i4) contrib_ode(eqn,y,x);

                                  y
(%o4)                  [x - asinh(-) = %c]
                                  x
(%i5) method;

(%o5)                          lie
</pre>
 

<p>The following Riccati equation is transformed into a linear
second order ODE in the variable <code>%u</code>.  Maxima is unable to
solve the new ODE, so it is returned unevaluated.
</p><pre class="example">(%i1) load('contrib_ode)$

(%i2) eqn:x^2*'diff(y,x)=a+b*x^n+c*x^2*y^2;

                    2 dy      2  2      n
(%o2)              x  -- = c x  y  + b x  + a
                      dx
(%i3) contrib_ode(eqn,y,x);

               d%u
               ---                            2
               dx        2     n - 2   a     d %u
(%o3)  [[y = - ----, %u c  (b x      + --) + ---- c = 0]]
               %u c                     2      2
                                       x     dx
(%i4) method;

(%o4)                        riccati
</pre>

<p>For first order ODEs <code>contrib_ode</code> calls <code>ode2</code>.  It then tries the
following methods: factorization, Clairault, Lagrange, Riccati,
Abel and Lie symmetry methods.  The Lie method is not attempted
on Abel equations if the Abel method fails, but it is tried
if the Riccati method returns an unsolved second order ODE.
</p>
<p>For second order ODEs <code>contrib_ode</code> calls <code>ode2</code> then <code>odelin</code>.
</p>
<p>Extensive debugging traces and messages are displayed if the command
<code>put('contrib_ode,true,'verbose)</code> is executed.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Differential-equations">Differential equations</a>
 &middot;
<a href="maxima_95.html#Category_003a-Share-packages">Share packages</a>
 &middot;
<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>



<p><a name="Item_003a-Functions-and-Variables-for-contrib_005fode"></a>
</p><hr size="6">
<a name="Functions-and-Variables-for-contrib_005fode"></a>
<a name="SEC193"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC192" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC194" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC191" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC191" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 44.2 Functions and Variables for contrib_ode </h2>


<dl>
<dt><u>Function:</u> <b>contrib_ode</b><i> (<var>eqn</var>, <var>y</var>, <var>x</var>)</i>
<a name="IDX1507"></a>
</dt>
<dd><p>Returns a list of solutions of the ODE <var>eqn</var> with 
independent variable <var>x</var> and dependent variable <var>y</var>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-odelin"></a>
</p><dl>
<dt><u>Function:</u> <b>odelin</b><i> (<var>eqn</var>, <var>y</var>, <var>x</var>)</i>
<a name="IDX1508"></a>
</dt>
<dd><p><code>odelin</code> solves linear homogeneous ODEs of first and 
second order with 
independent variable <var>x</var> and dependent variable <var>y</var>.  
It returns a fundamental solution set of the ODE.
</p>
<p>For second order ODEs, <code>odelin</code> uses a method, due to Bronstein
and Lafaille, that searches for solutions in terms of given 
special functions. 
</p>
<pre class="example">(%i1) load('contrib_ode);

(%i2) odelin(x*(x+1)*'diff(y,x,2)+(x+5)*'diff(y,x,1)+(-4)*y,y,x);
...trying factor method
...solving 7 equations in 4 variables
...trying the Bessel solver
...solving 1 equations in 2 variables
...trying the F01 solver
...solving 1 equations in 3 variables
...trying the spherodial wave solver
...solving 1 equations in 4 variables
...trying the square root Bessel solver
...solving 1 equations in 2 variables
...trying the 2F1 solver
...solving 9 equations in 5 variables
       gauss_a(- 6, - 2, - 3, - x)  gauss_b(- 6, - 2, - 3, - x)
(%o2) {---------------------------, ---------------------------}
                    4                            4
                   x                            x

</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-ode_005fcheck"></a>
</p><dl>
<dt><u>Function:</u> <b>ode_check</b><i> (<var>eqn</var>, <var>soln</var>)</i>
<a name="IDX1509"></a>
</dt>
<dd><p>Returns the value of ODE <var>eqn</var> after substituting a
possible solution <var>soln</var>.  The value is equivalent to 
zero if <var>soln</var> is a solution of <var>eqn</var>.
</p>
<pre class="example">(%i1) load('contrib_ode)$

(%i2) eqn:'diff(y,x,2)+(a*x+b)*y;

                         2
                        d y
(%o2)                   --- + (a x + b) y
                          2
                        dx
(%i3) ans:[y = bessel_y(1/3,2*(a*x+b)^(3/2)/(3*a))*%k2*sqrt(a*x+b)
         +bessel_j(1/3,2*(a*x+b)^(3/2)/(3*a))*%k1*sqrt(a*x+b)];

                                  3/2
                    1  2 (a x + b)
(%o3) [y = bessel_y(-, --------------) %k2 sqrt(a x + b)
                    3       3 a
                                          3/2
                            1  2 (a x + b)
                 + bessel_j(-, --------------) %k1 sqrt(a x + b)]
                            3       3 a
(%i4) ode_check(eqn,ans[1]);

(%o4)                           0
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-method"></a>
</p><dl>
<dt><u>System variable:</u> <b>method</b>
<a name="IDX1510"></a>
</dt>
<dd><p>The variable <code>method</code> is set to the successful solution
method. 
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-_0025c"></a>
</p><dl>
<dt><u>Variable:</u> <b>%c</b>
<a name="IDX1511"></a>
</dt>
<dd><p><code>%c</code> is the integration constant for first order ODEs.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-_0025k1"></a>
</p><dl>
<dt><u>Variable:</u> <b>%k1</b>
<a name="IDX1512"></a>
</dt>
<dd><p><code>%k1</code> is the first integration constant for second order ODEs.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-_0025k2"></a>
</p><dl>
<dt><u>Variable:</u> <b>%k2</b>
<a name="IDX1513"></a>
</dt>
<dd><p><code>%k2</code> is the second integration constant for second order ODEs.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-gauss_005fa"></a>
</p><dl>
<dt><u>Function:</u> <b>gauss_a</b><i> (<var>a</var>, <var>b</var>, <var>c</var>, <var>x</var>)</i>
<a name="IDX1514"></a>
</dt>
<dd><p><code>gauss_a(a,b,c,x)</code> and <code>gauss_b(a,b,c,x)</code> are 2F1 
geometric functions.  They represent any two independent
solutions of the hypergeometric differential equation 
<code>x(1-x) diff(y,x,2) + [c-(a+b+1)x diff(y,x) - aby = 0</code> (A&amp;S 15.5.1).  
</p>
<p>The only use of these functions is in solutions of ODEs returned by 
<code>odelin</code> and <code>contrib_ode</code>.  The definition and use of these 
functions may change in future releases of Maxima.
</p>
<p>See also <code>gauss_b</code>, <code>dgauss_a</code> and <code>gauss_b</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-gauss_005fb"></a>
</p><dl>
<dt><u>Function:</u> <b>gauss_b</b><i> (<var>a</var>, <var>b</var>, <var>c</var>, <var>x</var>)</i>
<a name="IDX1515"></a>
</dt>
<dd><p>See <code>gauss_a</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-dgauss_005fa"></a>
</p><dl>
<dt><u>Function:</u> <b>dgauss_a</b><i> (<var>a</var>, <var>b</var>, <var>c</var>, <var>x</var>)</i>
<a name="IDX1516"></a>
</dt>
<dd><p>The derivative with respect to <var>x</var> of <code>gauss_a(<var>a</var>, <var>b</var>, <var>c</var>, <var>x</var>)</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-dgauss_005fb"></a>
</p><dl>
<dt><u>Function:</u> <b>dgauss_b</b><i> (<var>a</var>, <var>b</var>, <var>c</var>, <var>x</var>)</i>
<a name="IDX1517"></a>
</dt>
<dd><p>The derivative with respect to <var>x</var> of <code>gauss_b(<var>a</var>, <var>b</var>, <var>c</var>, <var>x</var>)</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>


<p><a name="Item_003a-kummer_005fm"></a>
</p><dl>
<dt><u>Function:</u> <b>kummer_m</b><i> (<var>a</var>, <var>b</var>, <var>x</var>)</i>
<a name="IDX1518"></a>
</dt>
<dd><p>Kummer's M function, as defined in Abramowitz and Stegun,
<i>Handbook of Mathematical Functions</i>, Section 13.1.2.
</p>
<p>The only use of this function is in solutions of ODEs returned by 
<code>odelin</code> and <code>contrib_ode</code>.  The definition and use of this 
function may change in future releases of Maxima.
</p>
<p>See also <code>kummer_u</code>, <code>dkummer_m</code> and <code>dkummer_u</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-kummer_005fu"></a>
</p><dl>
<dt><u>Function:</u> <b>kummer_u</b><i> (<var>a</var>, <var>b</var>, <var>x</var>)</i>
<a name="IDX1519"></a>
</dt>
<dd><p>Kummer's U function, as defined in Abramowitz and Stegun,
<i>Handbook of Mathematical Functions</i>, Section 13.1.3.
</p>
<p>See <code>kummer_m</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-dkummer_005fm"></a>
</p><dl>
<dt><u>Function:</u> <b>dkummer_m</b><i> (<var>a</var>, <var>b</var>, <var>x</var>)</i>
<a name="IDX1520"></a>
</dt>
<dd><p>The derivative with respect to <var>x</var> of <code>kummer_m(<var>a</var>, <var>b</var>, <var>x</var>)</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-dkummer_005fu"></a>
</p><dl>
<dt><u>Function:</u> <b>dkummer_u</b><i> (<var>a</var>, <var>b</var>, <var>x</var>)</i>
<a name="IDX1521"></a>
</dt>
<dd><p>The derivative with respect to <var>x</var> of <code>kummer_u(<var>a</var>, <var>b</var>, <var>x</var>)</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Package-contrib_005fode">Package contrib_ode</a>
</p>
</div>


</dd></dl>



<p><a name="Item_003a-Possible-improvements-to-contrib_005fode"></a>
</p><hr size="6">
<a name="Possible-improvements-to-contrib_005fode"></a>
<a name="SEC194"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC193" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC195" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC191" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC191" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 44.3 Possible improvements to contrib_ode </h2>


<p>These routines are work in progress.  I still need to:
</p>
<ul>
<li>
Extend the FACTOR method <code>ode1_factor</code> to work for multiple roots.

</li><li>
Extend the FACTOR method <code>ode1_factor</code> to attempt to solve higher
  order factors.  At present it only attemps to solve linear factors.

</li><li>
Fix the LAGRANGE routine <code>ode1_lagrange</code> to prefer real roots over
  complex roots.

</li><li>
Add additional methods for Riccati equations.

</li><li>
Improve the detection of Abel equations of second kind.  The exisiting
  pattern matching is weak.

</li><li>
Work on the Lie symmetry group routine <code>ode1_lie</code>.  There are quite a
  few problems with it: some parts are unimplemented; some test cases
  seem to run forever; other test cases crash; yet others return very
  complex &quot;solutions&quot;.  I wonder if it really ready for release yet.

</li><li>
Add more test cases.

</li></ul>

<p><a name="Item_003a-Test-cases-for-contrib_005fode"></a>
</p><hr size="6">
<a name="Test-cases-for-contrib_005fode"></a>
<a name="SEC195"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC194" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC196" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC191" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC191" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 44.4 Test cases for contrib_ode </h2>


<p>The routines have been tested on a approximately one thousand  test cases 
from Murphy,
Kamke, Zwillinger and elsewhere.  These are included in the tests subdirectory.
</p>
<ul>
<li>
The Clairault routine <code>ode1_clairault</code> finds all known solutions,
  including singular solutions, of the Clairault equations in Murphy and
  Kamke.

</li><li>
The other routines often return a single solution when multiple
  solutions exist.

</li><li>
Some of the &quot;solutions&quot; from <code>ode1_lie</code> are overly complex and
  impossible to check.

</li><li>
There are some crashes.

</li></ul>

<p><a name="Item_003a-References-for-contrib_005fode"></a>
</p><hr size="6">
<a name="References-for-contrib_005fode"></a>
<a name="SEC196"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC195" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC191" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC191" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 44.5 References for contrib_ode </h2>


<ol>
<li>
E. Kamke, Differentialgleichungen Losungsmethoden und Losungen, Vol 1,
    Geest &amp; Portig, Leipzig, 1961

</li><li>
G. M. Murphy, Ordinary Differential Equations and Their Solutions,
    Van Nostrand, New York, 1960

</li><li>
D. Zwillinger, Handbook of Differential Equations, 3rd edition,
    Academic Press, 1998

</li><li>
F. Schwarz, Symmetry Analysis of Abel's Equation, Studies in
    Applied Mathematics, 100:269-294 (1998)

</li><li>
F. Schwarz, Algorithmic Solution of Abel's Equation,
    Computing 61, 39-49 (1998)

</li><li>
E. S. Cheb-Terrab, A. D. Roche, Symmetries and First Order
    ODE Patterns, Computer Physics Communications 113 (1998), p 239.
    (<a href="http://lie.uwaterloo.ca/papers/ode_vii.pdf">http://lie.uwaterloo.ca/papers/ode_vii.pdf</a>)

</li><li>
E. S. Cheb-Terrab, T. Kolokolnikov,  First Order ODEs,
    Symmetries and Linear Transformations, European Journal of
    Applied Mathematics, Vol. 14, No. 2, pp. 231-246 (2003).
    (<a href="http://arxiv.org/abs/math-ph/0007023">http://arxiv.org/abs/math-ph/0007023</a>, 
    <a href="http://lie.uwaterloo.ca/papers/ode_iv.pdf">http://lie.uwaterloo.ca/papers/ode_iv.pdf</a>)

</li><li>
G. W. Bluman, S. C. Anco, Symmetry and Integration Methods for
    Differential Equations, Springer, (2002)

</li><li> 
M. Bronstein, S. Lafaille,
Solutions of linear ordinary differential equations in terms
of special functions,
Proceedings of ISSAC 2002, Lille, ACM Press, 23-28. 
(<a href="http://www-sop.inria.fr/cafe/Manuel.Bronstein/publications/issac2002.pdf">http://www-sop.inria.fr/cafe/Manuel.Bronstein/publications/issac2002.pdf</a>)


</li></ol>

<p><a name="Item_003a-descriptive"></a>
</p><hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC191" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima_45.html#SEC197" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>Robert Dodier</em> on <em>April, 24 2010</em> using <a href="http://texi2html.cvshome.org/"><em>texi2html 1.76</em></a>.
 </font>
 <br>

</p>
</body>
</html>