• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Solve this nonlinear, second order ODE

KillerCharlie

Diamond Member
y'' = C1 - C2 * (y')^2

C1, C2 are constants
y is the dependent variable
let x be in independent variable
This is an IVP with y(0) and y'(0) known

This is not directly a homework problem. This DE is used in a much larger computer program. Currently it's being solved numericaly with an RK4 routine. This program is called by an optimizer several hundred times, so it'd be nice to cut down on running the RK routine every time and also not have to worry about step size (currently using constant step size).
 
Wow, I actually just found the solution in a DifEq book after looking through it for the third time... the answer involves cosh and tanh and will numerically blow up if you set C2 to zero.
 
Originally posted by: Codegen
You know your a computer nerd when you read "IDE"


You know you're a true nerd/geek when you read ODE.

Anyway, we looked at the equation again and it turns out that we forgot a term so now it's highly nonlinear... 🙁
 
Back
Top