I doubt you can get an analytical expression for y. All you can do is to transform your 2nd order ODE into a system of first-order ODEs and use a numerical solver to get an approximate solution. Depending on your boundary conditions, you have to use ode45 (if all boundary conditions are given in only one point) or bvp4c (if the boundary conditions are given in different points) to get this solution. Of course, C1 and C2 and the boundary conditions have to be specified as numerical values in this case.
Could you try the following approach to determine whether it is the analytical solution that yields the desired contant results whenever the initial condition is specified?
Each trajectory in the plot represents the path of a solution to the differential equation, depending on the values of and . In my previous comment, I provided the simplest form of the solution, which corresponds to the specific initial condition when both and are zero. Note that singularities occur when .
title(t, {'Behavior of solutions'}, 'interpreter', 'latex')
Da Änderungen an der Seite vorgenommen wurden, kann diese Aktion nicht abgeschlossen werden. Laden Sie die Seite neu, um sie im aktualisierten Zustand anzuzeigen.
Translated by
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.