conlaw.rlg 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453
  1. Sun Aug 18 17:32:46 2002 run on Windows
  2. off echo, dfprint$
  3. If you want to see more details of the following calculation then
  4. change in the file `conlaw.tst' the line
  5. lisp(print_:=nil)$
  6. into
  7. lisp(print_:=10)$
  8. **************************************************************************
  9. The following example calculates all conservation laws of the KdV-
  10. equation with a characteristic function of order not higher than two
  11. --------------------------------------------------------------------------
  12. This is CONLAW3 - a program for calculating conservation laws of DEs
  13. The DE under investigation is :
  14. df(u,t)=df(u,x,3) + df(u,x)*u
  15. for the function(s): {u}
  16. ======================================================
  17. Currently conservation laws with characteristic
  18. function(s) of order 0 are determined
  19. ======================================================
  20. Conservation law:
  21. ( 1 ) * ( df(u,t) - df(u,x,3) - df(u,x)*u )
  22. =
  23. df( u, t )
  24. +
  25. 2
  26. - 2*df(u,x,2) - u
  27. df( ---------------------, x )
  28. 2
  29. ======================================================
  30. Conservation law:
  31. ( t*u + x ) * ( df(u,t) - df(u,x,3) - df(u,x)*u )
  32. =
  33. 2
  34. t*u + 2*u*x
  35. df( --------------, t )
  36. 2
  37. +
  38. 2 3
  39. df( ( - 6*df(u,x,2)*t*u - 6*df(u,x,2)*x + 3*df(u,x) *t + 6*df(u,x) - 2*t*u
  40. 2
  41. - 3*u *x)/6, x )
  42. ======================================================
  43. Conservation law:
  44. ( u ) * ( df(u,t) - df(u,x,3) - df(u,x)*u )
  45. =
  46. 2
  47. u
  48. df( ----, t )
  49. 2
  50. +
  51. 2 3
  52. - 6*df(u,x,2)*u + 3*df(u,x) - 2*u
  53. df( --------------------------------------, x )
  54. 6
  55. ======================================================
  56. Currently conservation laws with characteristic
  57. function(s) of order 1 are determined
  58. ======================================================
  59. There is no conservation law of this order.
  60. ======================================================
  61. Currently conservation laws with characteristic
  62. function(s) of order 2 are determined
  63. ======================================================
  64. Conservation law:
  65. 2
  66. ( - 2*df(u,x,2) - u ) * ( df(u,t) - df(u,x,3) - df(u,x)*u )
  67. =
  68. 2 3
  69. 3*df(u,x) - u
  70. df( -----------------, t )
  71. 3
  72. +
  73. 2 2 4
  74. - 8*df(u,t)*df(u,x) + 4*df(u,x,2) + 4*df(u,x,2)*u + u
  75. df( -----------------------------------------------------------, x )
  76. 4
  77. ======================================================
  78. **************************************************************************
  79. The next example demonstrates that one can specify an ansatz
  80. for the characteristic function of one or more equations of the
  81. PDE-system. In this example all conservation laws of the wave
  82. equation which is written as a first order system are calculated
  83. such that the characteristic functions of the first of both
  84. equations is proportional to df(u,x,2). (This will include zero
  85. as it is a multiple of df(u,x,2) too.)
  86. --------------------------------------------------------------------------
  87. This is CONLAW2 - a program for calculating conservation laws of DEs
  88. The DEs under investigation are :
  89. df(u,t)=df(v,x)
  90. df(v,t)=df(u,x)
  91. for the function(s): {u,v}
  92. ======================================================
  93. A special ansatz of order 2 for the characteristic
  94. function(s) is investigated.
  95. Conservation law:
  96. (df(u,x,2)) * (df(u,t) - df(v,x))
  97. +
  98. (df(v,x,2)) * ( - df(u,x) + df(v,t))
  99. =
  100. 2 2
  101. - df(u,x) - df(v,x)
  102. df( ------------------------, t )
  103. 2
  104. +
  105. df( df(u,t)*df(u,x) - df(u,x)*df(v,x) + df(v,t)*df(v,x), x )
  106. ======================================================
  107. **************************************************************************
  108. For the Burgers equation the following example finds all conservation
  109. laws of zero'th order in the characteristic function up to the solution
  110. of the linear heat equation. This is an example for what happens when not
  111. all conditions could be solved, but it is also an example which shows
  112. that not only characteristic functions of polynomial or rational form
  113. can be found.
  114. --------------------------------------------------------------------------
  115. This is CONLAW1 - a program for calculating conservation laws of DEs
  116. The DE under investigation is :
  117. 2
  118. 2*df(u,x,2) + df(u,x)
  119. df(u,t)=------------------------
  120. 2
  121. for the function(s): {u}
  122. ======================================================
  123. Currently conservation laws with a conserved density
  124. of order 0 are determined
  125. ======================================================
  126. The function c_132(x,t) is not constant!
  127. There are remaining conditions: {df(c_132,t) + df(c_132,x,2)}
  128. for the functions: c_132(x,t)
  129. Corresponding CLs might not be shown below as they
  130. could be of too low order.
  131. ======================================================
  132. Conservation law:
  133. 2
  134. u/2 2*df(u,t) - 2*df(u,x,2) - df(u,x)
  135. ( e *c_132 ) * ( ------------------------------------ )
  136. 2
  137. =
  138. u/2
  139. df( 2*e *c_132, t )
  140. +
  141. u/2 u/2
  142. df( 2*e *df(c_132,x) - e *df(u,x)*c_132, x )
  143. ======================================================
  144. **************************************************************************
  145. In this example all conservation laws of the Ito system are calculated
  146. that have a conserved density of order not higher than one.
  147. This is a further example of non-polynomial conservation laws.
  148. --------------------------------------------------------------------------
  149. This is CONLAW1 - a program for calculating conservation laws of DEs
  150. The DEs under investigation are :
  151. df(u,t)=df(u,x,3) + 6*df(u,x)*u + 2*df(v,x)*v
  152. df(v,t)=2*df(u,x)*v + 2*df(v,x)*u
  153. for the function(s): {u,v}
  154. ======================================================
  155. Currently conservation laws with a conserved density
  156. of order 0 are determined
  157. ======================================================
  158. Conservation law:
  159. ( 0 ) * ( - 2*df(u,x)*v + df(v,t) - 2*df(v,x)*u )
  160. +
  161. ( 1 ) * ( df(u,t) - df(u,x,3) - 6*df(u,x)*u - 2*df(v,x)*v )
  162. =
  163. df( u, t )
  164. +
  165. 2 2
  166. df( - df(u,x,2) - 3*u - v , x )
  167. ======================================================
  168. Conservation law:
  169. ( 2*v ) * ( - 2*df(u,x)*v + df(v,t) - 2*df(v,x)*u )
  170. +
  171. ( 2*u ) * ( df(u,t) - df(u,x,3) - 6*df(u,x)*u - 2*df(v,x)*v )
  172. =
  173. 2 2
  174. df( u + v , t )
  175. +
  176. 2 3 2
  177. df( - 2*df(u,x,2)*u + df(u,x) - 4*u - 4*u*v , x )
  178. ======================================================
  179. Conservation law:
  180. ( -1 ) * ( - 2*df(u,x)*v + df(v,t) - 2*df(v,x)*u )
  181. +
  182. ( 0 ) * ( df(u,t) - df(u,x,3) - 6*df(u,x)*u - 2*df(v,x)*v )
  183. =
  184. df( - v, t )
  185. +
  186. df( 2*u*v, x )
  187. ======================================================
  188. Currently conservation laws with a conserved density
  189. of order 1 are determined
  190. ======================================================
  191. Conservation law:
  192. 2 2
  193. - 2*df(v,x,2)*v + 3*df(v,x) + 4*u*v
  194. ( ---------------------------------------- ) * ( - 2*df(u,x)*v + df(v,t)
  195. 4
  196. v
  197. - 2*df(v,x)*u )
  198. +
  199. - 4
  200. ( ------ ) * ( df(u,t) - df(u,x,3) - 6*df(u,x)*u - 2*df(v,x)*v )
  201. v
  202. =
  203. 2 2
  204. df(v,x) - 4*u*v
  205. df( -------------------, t )
  206. 3
  207. v
  208. +
  209. 2 2
  210. df( (4*df(u,x,2)*v + 4*df(u,x)*df(v,x)*v - 2*df(v,t)*df(v,x) + 2*df(v,x) *u
  211. 2 2 4 3
  212. + 8*u *v + 8*v )/v , x )
  213. ======================================================
  214. Conservation law:
  215. ( - 4*u*v ) * ( - 2*df(u,x)*v + df(v,t) - 2*df(v,x)*u )
  216. +
  217. 2 2
  218. ( - 2*df(u,x,2) - 6*u - 2*v ) * ( df(u,t) - df(u,x,3) - 6*df(u,x)*u
  219. - 2*df(v,x)*v )
  220. =
  221. 2 3 2
  222. df( df(u,x) - 2*u - 2*u*v , t )
  223. +
  224. 2 2 2 4
  225. df( - 2*df(u,t)*df(u,x) + df(u,x,2) + 6*df(u,x,2)*u + 2*df(u,x,2)*v + 9*u
  226. 2 2 4
  227. + 10*u *v + v , x )
  228. ======================================================
  229. **************************************************************************
  230. In the next example the 5th order Korteweg - de Vries equation is
  231. investigated concerning conservation laws of order 0 and 1 in the
  232. conserved density P_t. Parameters a,b,c in the PDE are determined
  233. such that conservation laws exist. This complicates the problem by
  234. making it non-linear with a number of cases to be considered.
  235. Some of the subcases below can be combined to reduce their number
  236. which currently is not done automatically.
  237. --------------------------------------------------------------------------
  238. This is CONLAW1 - a program for calculating conservation laws of DEs
  239. The DE under investigation is :
  240. 2
  241. df(u,t)= - df(u,x,5) - df(u,x,3)*c*u - df(u,x,2)*df(u,x)*b - df(u,x)*a*u
  242. for the function(s): {u}
  243. ======================================================
  244. Currently conservation laws with a conserved density
  245. of order 0 are determined
  246. ======================================================
  247. Conservation law:
  248. b
  249. c=---,
  250. 2
  251. ( - 4*u ) * ( (2*df(u,t) + 2*df(u,x,5) + df(u,x,3)*b*u + 2*df(u,x,2)*df(u,x)*b
  252. 2
  253. + 2*df(u,x)*a*u )/2 )
  254. =
  255. 2
  256. df( - 2*u , t )
  257. +
  258. 2 2
  259. df( - 4*df(u,x,4)*u + 4*df(u,x,3)*df(u,x) - 2*df(u,x,2) - 2*df(u,x,2)*b*u
  260. 4
  261. - a*u , x )
  262. ======================================================
  263. Conservation law:
  264. b
  265. c=---,
  266. 2
  267. ( -12 ) * ( (2*df(u,t) + 2*df(u,x,5) + df(u,x,3)*b*u + 2*df(u,x,2)*df(u,x)*b
  268. 2
  269. + 2*df(u,x)*a*u )/2 )
  270. =
  271. df( - 12*u, t )
  272. +
  273. 2 3
  274. df( - 12*df(u,x,4) - 6*df(u,x,2)*b*u - 3*df(u,x) *b - 4*a*u , x )
  275. ======================================================
  276. Conservation law:
  277. ( -6 ) * ( df(u,t) + df(u,x,5) + df(u,x,3)*c*u + df(u,x,2)*df(u,x)*b
  278. 2
  279. + df(u,x)*a*u )
  280. =
  281. df( - 6*u, t )
  282. +
  283. 2 2 3
  284. df( - 6*df(u,x,4) - 6*df(u,x,2)*c*u - 3*df(u,x) *b + 3*df(u,x) *c - 2*a*u , x )
  285. ======================================================
  286. The function c_320(x,t) is not constant!
  287. The function c_328(t) is not constant!
  288. There are remaining conditions: {df(c_320,t) + df(c_320,x,5) - c_328}
  289. for the functions: c_328(t), c_320(x,t)
  290. Corresponding CLs might not be shown below as they
  291. could be of too low order.
  292. ======================================================
  293. Conservation law:
  294. a=0,
  295. b=0,
  296. c=0,
  297. ( - 2*u ) * ( df(u,t) + df(u,x,5) )
  298. =
  299. 2
  300. df( - u , t )
  301. +
  302. 2
  303. df( - 2*df(u,x,4)*u + 2*df(u,x,3)*df(u,x) - df(u,x,2) , x )
  304. ======================================================
  305. Conservation law:
  306. a=0,
  307. b=0,
  308. c=0,
  309. ( - df(c_320,x) ) * ( df(u,t) + df(u,x,5) )
  310. =
  311. df( - df(c_320,x)*u, t )
  312. +
  313. df( df(c_320,t)*u + df(c_320,x,4)*df(u,x) - df(c_320,x,3)*df(u,x,2)
  314. + df(c_320,x,2)*df(u,x,3) - df(c_320,x)*df(u,x,4) + c_328*u, x )
  315. ======================================================
  316. The function c_303(x,t) is not constant!
  317. The function c_313(t) is not constant!
  318. There are remaining conditions: {df(c_303,t) + df(c_303,x,5) - c_313}
  319. for the functions: c_313(t), c_303(x,t)
  320. Corresponding CLs might not be shown below as they
  321. could be of too low order.
  322. ======================================================
  323. Conservation law:
  324. a=0,
  325. b=0,
  326. c=0,
  327. ( - df(c_303,x) ) * ( df(u,t) + df(u,x,5) )
  328. =
  329. df( - df(c_303,x)*u, t )
  330. +
  331. df( df(c_303,t)*u + df(c_303,x,4)*df(u,x) - df(c_303,x,3)*df(u,x,2)
  332. + df(c_303,x,2)*df(u,x,3) - df(c_303,x)*df(u,x,4) + c_313*u, x )
  333. ======================================================
  334. Conservation law:
  335. a=0,
  336. b
  337. c=---,
  338. 3
  339. 2
  340. - 3*x
  341. ( --------- ) * (
  342. b
  343. 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  344. ----------------------------------------------------------------- )
  345. 3
  346. =
  347. 2
  348. - 3*u*x
  349. df( -----------, t )
  350. b
  351. +
  352. 2 2
  353. df( ( - 3*df(u,x,4)*x + 6*df(u,x,3)*x - df(u,x,2)*b*u*x - 6*df(u,x,2)
  354. 2 2 2
  355. - df(u,x) *b*x + 2*df(u,x)*b*u*x - b*u )/b, x )
  356. ======================================================
  357. Conservation law:
  358. a=0,
  359. b
  360. c=---,
  361. 3
  362. 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  363. ( - 3*x ) * ( -----------------------------------------------------------------
  364. 3
  365. )
  366. =
  367. df( - 3*u*x, t )
  368. +
  369. 2
  370. df( - 3*df(u,x,4)*x + 3*df(u,x,3) - df(u,x,2)*b*u*x - df(u,x) *b*x
  371. + df(u,x)*b*u, x )
  372. ======================================================
  373. Conservation law:
  374. a=0,
  375. b
  376. c=---,
  377. 3
  378. 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  379. ( -3 ) * ( ----------------------------------------------------------------- )
  380. 3
  381. =
  382. df( - 3*u, t )
  383. +
  384. 2
  385. df( - 3*df(u,x,4) - df(u,x,2)*b*u - df(u,x) *b, x )
  386. ======================================================
  387. Currently conservation laws with a conserved density
  388. of order 1 are determined
  389. ======================================================
  390. The function c_408(t) is not constant!
  391. The function c_372(t,x) is not constant!
  392. There are remaining conditions: {30*df(c_372,t) + 30*df(c_372,x,5) - c_408}
  393. for the functions: c_372(t,x), c_408(t)
  394. Corresponding CLs might not be shown below as they
  395. could be of too low order.
  396. ======================================================
  397. Conservation law:
  398. a=0,
  399. b=0,
  400. c=0,
  401. ( - 2*df(u,x,2) ) * ( df(u,t) + df(u,x,5) )
  402. =
  403. 2
  404. df( df(u,x) , t )
  405. +
  406. 2
  407. df( - 2*df(u,t)*df(u,x) - 2*df(u,x,4)*df(u,x,2) + df(u,x,3)
  408. 2 2 2
  409. - 2*df(u,x,3)*df(u,x)*c*u - 2*df(u,x,2)*df(u,x) *b - 2*df(u,x) *a*u , x )
  410. ======================================================
  411. Conservation law:
  412. a=0,
  413. b
  414. c=---,
  415. 3
  416. 2
  417. ( - 18*df(u,x,2) - 3*b*u ) * (
  418. 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  419. ----------------------------------------------------------------- )
  420. 3
  421. =
  422. 2 3
  423. df( 9*df(u,x) - b*u , t )
  424. +
  425. 2
  426. df( - 18*df(u,t)*df(u,x) - 18*df(u,x,4)*df(u,x,2) - 3*df(u,x,4)*b*u
  427. 2
  428. + 9*df(u,x,3) + 12*df(u,x,3)*df(u,x)*b*u - 18*df(u,x,3)*df(u,x)*c*u
  429. 2 2 2 3
  430. - 6*df(u,x,2) *b*u - 6*df(u,x,2)*df(u,x) *b - df(u,x,2)*b *u
  431. 2 2
  432. - 18*df(u,x) *a*u , x )
  433. ======================================================
  434. Conservation law:
  435. a=0,
  436. b
  437. c=---,
  438. 3
  439. 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  440. ( 6*x ) * ( ----------------------------------------------------------------- )
  441. 3
  442. =
  443. 2
  444. df( - 3*df(u,x)*x , t )
  445. +
  446. 2 2 2
  447. df( 3*df(u,t)*x + 6*df(u,x,4)*x - df(u,x,3)*b*u*x + 3*df(u,x,3)*c*u*x
  448. 2 2 2
  449. - 6*df(u,x,3) + 2*df(u,x,2)*b*u*x + 2*df(u,x) *b*x + 3*df(u,x)*a*u *x
  450. - 2*df(u,x)*b*u, x )
  451. ======================================================
  452. Conservation law:
  453. a=0,
  454. b
  455. c=---,
  456. 3
  457. 2
  458. 9*x 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  459. ( ------ ) * ( -----------------------------------------------------------------
  460. b 3
  461. )
  462. =
  463. 3
  464. - 3*df(u,x)*x
  465. df( -----------------, t )
  466. b
  467. +
  468. 3 2 3 3
  469. df( (3*df(u,t)*x + 9*df(u,x,4)*x - df(u,x,3)*b*u*x + 3*df(u,x,3)*c*u*x
  470. 2 2 2
  471. - 18*df(u,x,3)*x + 3*df(u,x,2)*b*u*x + 18*df(u,x,2) + 3*df(u,x) *b*x
  472. 2 3 2
  473. + 3*df(u,x)*a*u *x - 6*df(u,x)*b*u*x + 3*b*u )/b, x )
  474. ======================================================
  475. Conservation law:
  476. 2 2
  477. - 2*b + 7*b*c - 3*c
  478. a=------------------------,
  479. 10
  480. 2 2
  481. ( - 1500*df(u,x,2) - 300*b*u + 150*c*u ) * ( (10*df(u,t) + 10*df(u,x,5)
  482. 2 2
  483. + 10*df(u,x,3)*c*u + 10*df(u,x,2)*df(u,x)*b - 2*df(u,x)*b *u
  484. 2 2 2
  485. + 7*df(u,x)*b*c*u - 3*df(u,x)*c *u )/10 )
  486. =
  487. 2 3 3
  488. df( 750*df(u,x) - 100*b*u + 50*c*u , t )
  489. +
  490. 2
  491. df( - 1500*df(u,t)*df(u,x) - 1500*df(u,x,4)*df(u,x,2) - 300*df(u,x,4)*b*u
  492. 2 2
  493. + 150*df(u,x,4)*c*u + 750*df(u,x,3) + 600*df(u,x,3)*df(u,x)*b*u
  494. 2 2
  495. - 300*df(u,x,3)*df(u,x)*c*u - 300*df(u,x,2) *b*u - 600*df(u,x,2) *c*u
  496. 2 2 3
  497. - 600*df(u,x,2)*df(u,x) *b + 300*df(u,x,2)*df(u,x) *c - 300*df(u,x,2)*b*c*u
  498. 2 3 2 2 2 2 2
  499. + 150*df(u,x,2)*c *u - 1500*df(u,x) *a*u - 300*df(u,x) *b *u
  500. 2 2 2 2 2 3 5 2 5
  501. + 1050*df(u,x) *b*c*u - 450*df(u,x) *c *u + 12*b *u - 48*b *c*u
  502. 2 5 3 5
  503. + 39*b*c *u - 9*c *u , x )
  504. ======================================================
  505. Conservation law:
  506. 2 2
  507. - 2*b + 7*b*c - 3*c
  508. a=------------------------,
  509. 10
  510. 2 2 2
  511. ( ( - 1500*df(u,x,2)*b*t + 4500*df(u,x,2)*c*t - 300*b *t*u + 1050*b*c*t*u
  512. 2 2
  513. - 450*c *t*u - 1500*x)/(b - 3*c) ) * ( (10*df(u,t) + 10*df(u,x,5)
  514. 2 2
  515. + 10*df(u,x,3)*c*u + 10*df(u,x,2)*df(u,x)*b - 2*df(u,x)*b *u
  516. 2 2 2
  517. + 7*df(u,x)*b*c*u - 3*df(u,x)*c *u )/10 )
  518. =
  519. 2 2 2 3 3
  520. df( (750*df(u,x) *b*t - 2250*df(u,x) *c*t - 100*b *t*u + 350*b*c*t*u
  521. 2 3
  522. - 150*c *t*u - 1500*u*x)/(b - 3*c), t )
  523. +
  524. df( ( - 1500*df(u,t)*df(u,x)*b*t + 4500*df(u,t)*df(u,x)*c*t
  525. - 1500*df(u,x,4)*df(u,x,2)*b*t + 4500*df(u,x,4)*df(u,x,2)*c*t
  526. 2 2 2 2 2
  527. - 300*df(u,x,4)*b *t*u + 1050*df(u,x,4)*b*c*t*u - 450*df(u,x,4)*c *t*u
  528. 2 2
  529. - 1500*df(u,x,4)*x + 750*df(u,x,3) *b*t - 2250*df(u,x,3) *c*t
  530. 2
  531. + 600*df(u,x,3)*df(u,x)*b *t*u - 2100*df(u,x,3)*df(u,x)*b*c*t*u
  532. 2 2 2
  533. + 900*df(u,x,3)*df(u,x)*c *t*u + 1500*df(u,x,3) - 300*df(u,x,2) *b *t*u
  534. 2 2 2
  535. + 300*df(u,x,2) *b*c*t*u + 1800*df(u,x,2) *c *t*u
  536. 2 2 2
  537. - 600*df(u,x,2)*df(u,x) *b *t + 2100*df(u,x,2)*df(u,x) *b*c*t
  538. 2 2 2 3
  539. - 900*df(u,x,2)*df(u,x) *c *t - 300*df(u,x,2)*b *c*t*u
  540. 2 3 3 3
  541. + 1050*df(u,x,2)*b*c *t*u - 450*df(u,x,2)*c *t*u - 1500*df(u,x,2)*c*u*x
  542. 2 2 2 2 2 3 2
  543. - 1500*df(u,x) *a*b*t*u + 4500*df(u,x) *a*c*t*u - 300*df(u,x) *b *t*u
  544. 2 2 2 2 2 2 2
  545. + 1950*df(u,x) *b *c*t*u - 3600*df(u,x) *b*c *t*u - 750*df(u,x) *b*x
  546. 2 3 2 2 2 2
  547. + 1350*df(u,x) *c *t*u + 750*df(u,x) *c*x - 750*df(u,x)*a*u *x
  548. 2 2 2 2 2 2 2 2
  549. - 150*df(u,x)*b *u *x + 525*df(u,x)*b*c*u *x - 225*df(u,x)*c *u *x
  550. 4 5 3 5 2 2 5
  551. + 1500*df(u,x)*c*u + 12*b *t*u - 84*b *c*t*u + 183*b *c *t*u
  552. 2 3 3 5 3 4 5 2 3
  553. + 100*b *u *x - 126*b*c *t*u - 350*b*c*u *x + 27*c *t*u + 150*c *u *x)/(
  554. b - 3*c), x )
  555. ======================================================
  556. Conservation law:
  557. a=0,
  558. b
  559. c=---,
  560. 3
  561. 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  562. ( 6*x ) * ( ----------------------------------------------------------------- )
  563. 3
  564. =
  565. 2
  566. df( - 3*df(u,x)*x , t )
  567. +
  568. 2 2 2
  569. df( 3*df(u,t)*x + 6*df(u,x,4)*x - df(u,x,3)*b*u*x + 3*df(u,x,3)*c*u*x
  570. 2 2 2
  571. - 6*df(u,x,3) + 2*df(u,x,2)*b*u*x + 2*df(u,x) *b*x + 3*df(u,x)*a*u *x
  572. - 2*df(u,x)*b*u, x )
  573. ======================================================
  574. Conservation law:
  575. a=0,
  576. b
  577. c=---,
  578. 3
  579. 2
  580. 9*x 3*df(u,t) + 3*df(u,x,5) + df(u,x,3)*b*u + 3*df(u,x,2)*df(u,x)*b
  581. ( ------ ) * ( -----------------------------------------------------------------
  582. b 3
  583. )
  584. =
  585. 3
  586. - 3*df(u,x)*x
  587. df( -----------------, t )
  588. b
  589. +
  590. 3 2 3 3
  591. df( (3*df(u,t)*x + 9*df(u,x,4)*x - df(u,x,3)*b*u*x + 3*df(u,x,3)*c*u*x
  592. 2 2 2
  593. - 18*df(u,x,3)*x + 3*df(u,x,2)*b*u*x + 18*df(u,x,2) + 3*df(u,x) *b*x
  594. 2 3 2
  595. + 3*df(u,x)*a*u *x - 6*df(u,x)*b*u*x + 3*b*u )/b, x )
  596. ======================================================
  597. The function c_392(t) is not constant!
  598. The function c_372(t,x) is not constant!
  599. There are remaining conditions: {df(c_372,t) + df(c_372,x,5) - c_392}
  600. for the functions: c_372(t,x), c_392(t)
  601. Corresponding CLs might not be shown below as they
  602. could be of too low order.
  603. ======================================================
  604. The function c_443(t) is not constant!
  605. The function c_372(t,x) is not constant!
  606. There are remaining conditions: {20*df(c_372,t) + 20*df(c_372,x,5) - c_443}
  607. for the functions: c_372(t,x), c_443(t)
  608. Corresponding CLs might not be shown below as they
  609. could be of too low order.
  610. ======================================================
  611. Conservation law:
  612. a=0,
  613. b=0,
  614. c=0,
  615. ( - 2*df(u,x,2) ) * ( df(u,t) + df(u,x,5) )
  616. =
  617. 2
  618. df( df(u,x) , t )
  619. +
  620. 2
  621. df( - 2*df(u,t)*df(u,x) - 2*df(u,x,4)*df(u,x,2) + df(u,x,3)
  622. 2 2 2
  623. - 2*df(u,x,3)*df(u,x)*c*u - 2*df(u,x,2)*df(u,x) *b - 2*df(u,x) *a*u , x )
  624. ======================================================
  625. Conservation law:
  626. 2
  627. 3*b
  628. a=------,
  629. 40
  630. b
  631. c=---,
  632. 2
  633. 2
  634. ( - 4000*df(u,x,2) - 600*b*u ) * ( (40*df(u,t) + 40*df(u,x,5)
  635. 2 2
  636. + 20*df(u,x,3)*b*u + 40*df(u,x,2)*df(u,x)*b + 3*df(u,x)*b *u )/40 )
  637. =
  638. 2 3
  639. df( 2000*df(u,x) - 200*b*u , t )
  640. +
  641. 2
  642. df( - 4000*df(u,t)*df(u,x) - 4000*df(u,x,4)*df(u,x,2) - 600*df(u,x,4)*b*u
  643. 2
  644. + 2000*df(u,x,3) + 3200*df(u,x,3)*df(u,x)*b*u - 4000*df(u,x,3)*df(u,x)*c*u
  645. 2 2 2 3
  646. - 1600*df(u,x,2) *b*u - 1200*df(u,x,2)*df(u,x) *b - 300*df(u,x,2)*b *u
  647. 2 2 2 2 2 3 5
  648. - 4000*df(u,x) *a*u + 300*df(u,x) *b *u - 9*b *u , x )
  649. ======================================================
  650. Conservation law:
  651. 2
  652. 3*b
  653. a=------,
  654. 40
  655. b
  656. c=---,
  657. 2
  658. 2 2
  659. - 4000*df(u,x,2)*b*t - 600*b *t*u + 8000*x
  660. ( ---------------------------------------------- ) * ( (40*df(u,t)
  661. b
  662. 2 2
  663. + 40*df(u,x,5) + 20*df(u,x,3)*b*u + 40*df(u,x,2)*df(u,x)*b + 3*df(u,x)*b *u
  664. )/40 )
  665. =
  666. 2 2 3
  667. 2000*df(u,x) *b*t - 200*b *t*u + 8000*u*x
  668. df( --------------------------------------------, t )
  669. b
  670. +
  671. df( ( - 4000*df(u,t)*df(u,x)*b*t - 4000*df(u,x,4)*df(u,x,2)*b*t
  672. 2 2 2
  673. - 600*df(u,x,4)*b *t*u + 8000*df(u,x,4)*x + 2000*df(u,x,3) *b*t
  674. 2
  675. + 3200*df(u,x,3)*df(u,x)*b *t*u - 4000*df(u,x,3)*df(u,x)*b*c*t*u
  676. 2 2
  677. - 2000*df(u,x,3)*b*u*x + 4000*df(u,x,3)*c*u*x - 8000*df(u,x,3)
  678. 2 2 2 2
  679. - 1600*df(u,x,2) *b *t*u - 1200*df(u,x,2)*df(u,x) *b *t
  680. 3 3 2 2
  681. - 300*df(u,x,2)*b *t*u + 4000*df(u,x,2)*b*u*x - 4000*df(u,x) *a*b*t*u
  682. 2 3 2 2 2 2
  683. + 300*df(u,x) *b *t*u + 2000*df(u,x) *b*x + 4000*df(u,x)*a*u *x
  684. 2 2 2 4 5 2 3
  685. - 300*df(u,x)*b *u *x - 4000*df(u,x)*b*u - 9*b *t*u + 200*b *u *x)/b, x
  686. )
  687. ======================================================
  688. Conservation law:
  689. b=0,
  690. c=0,
  691. 3 2
  692. ( --- ) * ( df(u,t) + df(u,x,5) + df(u,x)*a*u )
  693. a
  694. =
  695. - 3*df(u,x)*x
  696. df( ----------------, t )
  697. a
  698. +
  699. df(
  700. 3
  701. 3*df(u,t)*x + 3*df(u,x,4) + 3*df(u,x,3)*c*u*x + 3*df(u,x,2)*df(u,x)*b*x + a*u
  702. --------------------------------------------------------------------------------
  703. a
  704. , x )
  705. ======================================================
  706. The function c_425(t) is not constant!
  707. The function c_372(t,x) is not constant!
  708. There are remaining conditions: {2*df(c_372,t) + 2*df(c_372,x,5) - c_425}
  709. for the functions: c_372(t,x), c_425(t)
  710. Corresponding CLs might not be shown below as they
  711. could be of too low order.
  712. ======================================================
  713. **************************************************************************
  714. CONLAWi can also be used to determine first integrals of ODEs.
  715. The generality of the ansatz is not just specified by the order.
  716. For example, the Lorentz system below is a first order system
  717. therefore any first integrals are zero order expressions.
  718. The ansatz to be investigated below looks for first integrals of
  719. the form a1(x,1)+a2(y,t)+a3(x,t)=const. and determines parameters
  720. s,b,r such that first integrals exist.
  721. --------------------------------------------------------------------------
  722. This is CONLAW1 - a program for calculating conservation laws of DEs
  723. The DEs under investigation are :
  724. df(x,t)= - s*x + s*y
  725. df(y,t)=r*x + x*z - y
  726. df(z,t)= - b*z + x*y
  727. for the function(s): {x,y,z}
  728. ======================================================
  729. A special ansatz of order 0 for the conserved current is investigated.
  730. The function c_584(x) is not constant!
  731. ======================================================
  732. Conservation law:
  733. s=0,
  734. r=0,
  735. b=1,
  736. 2*t
  737. ( - 2*e *z ) * ( df(z,t) - x*y + z )
  738. +
  739. 2*t
  740. ( 2*e *y ) * ( df(y,t) - x*z + y )
  741. +
  742. ( 0 ) * ( df(x,t) )
  743. =
  744. 2*t 2 2*t 2
  745. df( e *y - e *z , t )
  746. ======================================================
  747. Conservation law:
  748. s=0,
  749. r=0,
  750. b=1,
  751. ( 0 ) * ( df(z,t) - x*y + z )
  752. +
  753. ( 0 ) * ( df(y,t) - x*z + y )
  754. +
  755. ( df(c_584,x) ) * ( df(x,t) )
  756. =
  757. df( c_584, t )
  758. ======================================================
  759. The function c_584(x) is not constant!
  760. ======================================================
  761. Conservation law:
  762. s=0,
  763. r=0,
  764. ( 0 ) * ( df(z,t) + b*z - x*y )
  765. +
  766. ( 0 ) * ( df(y,t) - x*z + y )
  767. +
  768. ( df(c_584,x) ) * ( df(x,t) )
  769. =
  770. df( c_584, t )
  771. ======================================================
  772. The function c_586(x) is not constant!
  773. ======================================================
  774. Conservation law:
  775. s=0,
  776. ( 0 ) * ( df(z,t) + b*z - x*y )
  777. +
  778. ( 0 ) * ( df(y,t) - r*x - x*z + y )
  779. +
  780. ( df(c_586,x) ) * ( df(x,t) )
  781. =
  782. df( c_586, t )
  783. ======================================================
  784. Conservation law:
  785. 1
  786. s=---,
  787. 2
  788. r=0,
  789. b=1,
  790. t
  791. ( - e ) * ( df(z,t) - x*y + z )
  792. +
  793. ( 0 ) * ( df(y,t) - x*z + y )
  794. +
  795. t 2*df(x,t) + x - y
  796. ( 2*e *x ) * ( ------------------- )
  797. 2
  798. =
  799. t 2 t
  800. df( e *x - e *z, t )
  801. ======================================================
  802. Conservation law:
  803. 1
  804. s=---,
  805. 2
  806. r=0,
  807. b=1,
  808. 2*t
  809. ( - 2*e *z ) * ( df(z,t) - x*y + z )
  810. +
  811. 2*t
  812. ( 2*e *y ) * ( df(y,t) - x*z + y )
  813. +
  814. 2*df(x,t) + x - y
  815. ( 0 ) * ( ------------------- )
  816. 2
  817. =
  818. 2*t 2 2*t 2
  819. df( e *y - e *z , t )
  820. ======================================================
  821. Conservation law:
  822. r=0,
  823. b=1,
  824. 2*t
  825. ( - 2*e *z ) * ( df(z,t) - x*y + z )
  826. +
  827. 2*t
  828. ( 2*e *y ) * ( df(y,t) - x*z + y )
  829. +
  830. ( 0 ) * ( df(x,t) + s*x - s*y )
  831. =
  832. 2*t 2 2*t 2
  833. df( e *y - e *z , t )
  834. ======================================================
  835. Conservation law:
  836. s=1,
  837. b=1,
  838. 2*t
  839. ( - 2*e *z ) * ( df(z,t) - x*y + z )
  840. +
  841. 2*t
  842. ( 2*e *y ) * ( df(y,t) - r*x - x*z + y )
  843. +
  844. 2*t
  845. ( - 2*e *r*x ) * ( df(x,t) + x - y )
  846. =
  847. 2*t 2 2*t 2 2*t 2
  848. df( - e *r*x + e *y - e *z , t )
  849. ======================================================
  850. Conservation law:
  851. b=2*s,
  852. 2*s*t
  853. ( - 2*e ) * ( df(z,t) + 2*s*z - x*y )
  854. +
  855. ( 0 ) * ( df(y,t) - r*x - x*z + y )
  856. +
  857. 2*s*t
  858. 2*e *x
  859. ( ------------ ) * ( df(x,t) + s*x - s*y )
  860. s
  861. =
  862. 2*s*t 2*s*t 2
  863. - 2*e *s*z + e *x
  864. df( -----------------------------, t )
  865. s
  866. ======================================================
  867. Time for test: 921304 ms, plus GC time: 21570 ms