<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root>
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" article-type="research-article" dtd-version="1.2" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">Discrete and Continuous Models and Applied Computational Science</journal-id><journal-title-group><journal-title xml:lang="en">Discrete and Continuous Models and Applied Computational Science</journal-title><trans-title-group xml:lang="ru"><trans-title>Discrete and Continuous Models and Applied Computational Science</trans-title></trans-title-group></journal-title-group><issn publication-format="print">2658-4670</issn><issn publication-format="electronic">2658-7149</issn><publisher><publisher-name xml:lang="en">Peoples' Friendship University of Russia named after Patrice Lumumba (RUDN University)</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">25180</article-id><article-id pub-id-type="doi">10.22363/2658-4670-2020-28-4-327-345</article-id><article-categories><subj-group subj-group-type="toc-heading" xml:lang="en"><subject>Articles</subject></subj-group><subj-group subj-group-type="toc-heading" xml:lang="ru"><subject>Статьи</subject></subj-group><subj-group subj-group-type="article-type"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title xml:lang="en">On the realization of explicit Runge-Kutta schemes preserving quadratic invariants of dynamical systems</article-title><trans-title-group xml:lang="ru"><trans-title>О реализации явных схем Рунге-Кутты с сохранением квадратичных инвариантов динамических систем</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author"><name-alternatives><name xml:lang="en"><surname>Ying</surname><given-names>Yu</given-names></name><name xml:lang="ru"><surname>Ин</surname><given-names>Юй</given-names></name></name-alternatives><bio xml:lang="en"><p>Assistant Professor of Department of Algebra and Geometry</p></bio><email>yingy6165@gmail.com</email><xref ref-type="aff" rid="aff1"/></contrib><contrib contrib-type="author"><name-alternatives><name xml:lang="en"><surname>Malykh</surname><given-names>Mikhail D.</given-names></name><name xml:lang="ru"><surname>Малых</surname><given-names>М. Д.</given-names></name></name-alternatives><bio xml:lang="en"><p>doctor of Physical and Mathematical Sciences, Assistant Professor of Department of Applied Probability and Informatics</p></bio><email>malykh_md@pfur.ru</email><xref ref-type="aff" rid="aff2"/></contrib></contrib-group><aff-alternatives id="aff1"><aff><institution xml:lang="en">Kaili University</institution></aff><aff><institution xml:lang="ru">Университет Кайли</institution></aff></aff-alternatives><aff-alternatives id="aff2"><aff><institution xml:lang="en">Peoples’ Friendship University of Russia (RUDN University)</institution></aff><aff><institution xml:lang="ru">Российский университет дружбы народов</institution></aff></aff-alternatives><pub-date date-type="pub" iso-8601-date="2020-12-15" publication-format="electronic"><day>15</day><month>12</month><year>2020</year></pub-date><volume>28</volume><issue>4</issue><issue-title xml:lang="en">VOL 28, NO4 (2020)</issue-title><issue-title xml:lang="ru">ТОМ 28, №4 (2020)</issue-title><fpage>327</fpage><lpage>345</lpage><history><date date-type="received" iso-8601-date="2020-12-09"><day>09</day><month>12</month><year>2020</year></date></history><permissions><copyright-statement xml:lang="en">Copyright ©; 2020, Ying Y., Malykh M.D.</copyright-statement><copyright-statement xml:lang="ru">Copyright ©; 2020, Ин Ю., Малых М.Д.</copyright-statement><copyright-year>2020</copyright-year><copyright-holder xml:lang="en">Ying Y., Malykh M.D.</copyright-holder><copyright-holder xml:lang="ru">Ин Ю., Малых М.Д.</copyright-holder><ali:free_to_read xmlns:ali="http://www.niso.org/schemas/ali/1.0/"/><license><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/">http://creativecommons.org/licenses/by/4.0</ali:license_ref></license></permissions><self-uri xlink:href="https://journals.rudn.ru/miph/article/view/25180">https://journals.rudn.ru/miph/article/view/25180</self-uri><abstract xml:lang="en"><p>We implement several explicit Runge-Kutta schemes that preserve quadratic invariants of autonomous dynamical systems in Sage. In this paper, we want to present our package ex.sage and the results of our numerical experiments. In the package, the functions rrk_solve, idt_solve and project_1 are constructed for the case when only one given quadratic invariant will be exactly preserved. The function phi_solve_1 allows us to preserve two specified quadratic invariants simultaneously. To solve the equations with respect to parameters determined by the conservation law we use the elimination technique based on Gröbner basis implemented in Sage. An elliptic oscillator is used as a test example of the presented package. This dynamical system has two quadratic invariants. Numerical results of the comparing of standard explicit Runge-Kutta method RK(4,4) with rrk_solve are presented. In addition, for the functions rrk_solve and idt_solve, that preserve only one given invariant, we investigated the change of the second quadratic invariant of the elliptic oscillator. In conclusion, the drawbacks of using these schemes are discussed.</p></abstract><trans-abstract xml:lang="ru"><p>Авторами реализовано несколько явных схем Рунге-Кутты, которые сохраняют квадратичные инварианты автономных динамических систем в Sage. В статье представлен пакет ex.sage и результаты численных экспериментов. В пакете функции rrk_solve, idt_solve и project_1 построены для случая, когда только один заданный квадратичный инвариант будет сохранён точно. Функция phi_solve_1 позволяет сохранить одновременно два указанных квадратичных инварианта. Для решения уравнений относительно параметров, определяемых законом сохранения, использована методика исключения на основе базисов Грёбнера, реализованная в Sage. В качестве тестового примера представленного пакета используется эллиптический осциллятор. Эта динамическая система имеет два квадратичных инварианта. Представлены численные результаты сравнения стандартного явного метода Рунге-Кутты RK(4,4) с rrk_solve. Кроме того, для функций rrk_solve и idt_solve, сохраняющих только один инвариант, исследовано изменение второго квадратичного инварианта эллиптического осциллятора. В заключение рассматриваются недостатки использования этих схем.</p></trans-abstract><kwd-group xml:lang="en"><kwd>Explicit Runge-Kutta method</kwd><kwd>quadratic invariant</kwd><kwd>dynamical system</kwd><kwd>Sage</kwd><kwd>Sage</kwd></kwd-group><kwd-group xml:lang="ru"><kwd>явный метод Рунге-Кутты</kwd><kwd>квадратичный инвариант</kwd><kwd>динамическая система</kwd></kwd-group><funding-group><funding-statement xml:lang="en">The authors are thanks Prof. L. A. Sevastianov for his discuss and suggestions with this paper. This paper was supported by the foundation of KaiLi university (Z1602) and by the Russian Foundation for Basic Research (RFBR) according to the research project No 18-07-00567.</funding-statement></funding-group></article-meta></front><body></body><back><ref-list><ref id="B1"><label>1.</label><mixed-citation>A. Goriely, Integrability and nonintegrability of dynamical systems. Singapore; River Edge, NJ: World Scientific, 2001. DOI: 10.1142/3846.</mixed-citation></ref><ref id="B2"><label>2.</label><mixed-citation>J. C. Butcher, “On Runge-Kutta processes of high order,” Journal of the Australian Mathematical Society, vol. 4, no. 2, pp. 179-194, 1964. DOI: 10.1017/S1446788700023387.</mixed-citation></ref><ref id="B3"><label>3.</label><mixed-citation>E. Hairer, G. Wanner, and S. P. Nørsett, Solving ordinary differential equations I: Nonstiff Problems, 3rd ed. New York: Springer, 1993, vol. 1. DOI: 10.1007/978-3-540-78862-1.</mixed-citation></ref><ref id="B4"><label>4.</label><mixed-citation>K. Burrage and J. C. Butcher, “Stability criteria for implicit Runge- Kutta methods,” SIAM Journal on Numerical Analysis, vol. 16, no. 1, pp. 46-57, 1979. DOI: 10.1137/0716004.</mixed-citation></ref><ref id="B5"><label>5.</label><mixed-citation>G. Cooper, “Stability of Runge-Kutta methods for trajectory problems,” IMA journal of numerical analysis, vol. 7, no. 1, pp. 1-13, 1987. DOI: 10.1093/imanum/7.1.1.</mixed-citation></ref><ref id="B6"><label>6.</label><mixed-citation>E. Hairer, G. Wanner, and C. Lubich, Geometric numerical integration. Structure-preserving algorithms for ordinary differential equations. Berlin Heidelberg New York: Springer, 2000.</mixed-citation></ref><ref id="B7"><label>7.</label><mixed-citation>J.-M. Sanz-Serna and M.-P. Calvo, Numerical hamiltonian problems. Courier Dover Publications, 2018.</mixed-citation></ref><ref id="B8"><label>8.</label><mixed-citation>H. Zhang, X. Qian, J. Yan, and S. Song, “Highly efficient invariantconserving explicit Runge-Kutta schemes for nonlinear Hamiltonian differential equations,” Journal of Computational Physics, p. 109 598, 2020.</mixed-citation></ref><ref id="B9"><label>9.</label><mixed-citation>W. H. Press, B. P. Flannery, S. A. Teukolsky, W. T. Vetterling, et al., Numerical recipes. Cambridge University Press Cambridge, 1989.</mixed-citation></ref><ref id="B10"><label>10.</label><mixed-citation>N. Del Buono and C. Mastroserio, “Explicit methods based on a class of four stage fourth order Runge-Kutta methods for preserving quadratic laws,” Journal of Computational and Applied Mathematics, vol. 140, pp. 231-243, 2002. DOI: 10.1016/S0377-0427(01)00398-3.</mixed-citation></ref><ref id="B11"><label>11.</label><mixed-citation>M. Calvo, D. Hernández-Abreu, J. I. Montijano, and L. Rández, “On the preservation of invariants by explicit Runge-Kutta methods,” SIAM Journal on Scientific Computing, vol. 28, no. 3, pp. 868-885, 2006. DOI: 10.1137/04061979X.</mixed-citation></ref><ref id="B12"><label>12.</label><mixed-citation>Y. Ying. (2020). “Package ex.sage,” [Online]. Available: https://malykhmd.neocities.org.</mixed-citation></ref><ref id="B13"><label>13.</label><mixed-citation>Y. S. Sikorsky, Elements of the theory of elliptic functions with applications to mechanics [Elementy teoriy ellipticheskikh funktsiy s prilozheniyami v mekhanike]. Moscow-Leningrad: ONTI, 1936, In Russian.</mixed-citation></ref><ref id="B14"><label>14.</label><mixed-citation>D. Cox, J. Little, D. O’Shea, and M. Sweedler, “Ideals, varieties, and algorithms,” American Mathematical Monthly, vol. 101, no. 6, pp. 582- 586, 1994.</mixed-citation></ref><ref id="B15"><label>15.</label><mixed-citation>The Sage Developers, Sagemath, the Sage Mathematics Software System (Version 7.4), https://www.sagemath.org, 2016.</mixed-citation></ref></ref-list></back></article>
