The Wikipedia page for "Runge-Kutta methods"[1] gives the following example:(adsbygoogle = window.adsbygoogle || []).push({});

y' = tan y + 1

y(1) = 1

t in [1, 1.1]

Using a step-size of h = .025, this solution is found:

y(1.1) = 1.335079087

I decided to check this solution by solving symbolically. But my attempts to symbolically integrate only lead to more complicated equations.[2] So I'm wondering if this simple-looking DE actually has a symbolic solution?

Notes:

[1] wikipedia (dot) org/wiki/Runge%E2%80%93Kutta_methods

[2] For example,

y'(t) = tan(y(t)) + 1

y'(t)/(tan(y(t)) + 1) = 1

Let u = y(t), du = y'(t) dt

∫(du/(tan(u) - 1)) = ∫dt

I used the SAGE computer algebra system to evaluate the LHS to,

-1/2*u + 1/2*log(tan(u) - 1) - 1/4*log(tan(u)^2 + 1)

Not much help!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Symbolically solving Wikipedia Runge-Kutta example?

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Symbolically solving Wikipedia | Date |
---|---|

A Solving an ODE Eigenvalue Problem via the Ritz method | Mar 14, 2018 |

A Solve a non-linear ODE of third order | Feb 20, 2018 |

Symbolic solve coupled second order differential equations | May 2, 2014 |

High permormance symbolic computing | Feb 4, 2011 |

Why is there no symbol for partial integration? | Mar 31, 2004 |

**Physics Forums - The Fusion of Science and Community**