The article uses ordinary differential to solve inhomogeneous equations by the constructivist learning concept. We use the equivalent equations to study the n-th order non-homogeneous linear ordinary differential equations with constant coefficients and get the method of solving this equation. Then we use the Filippov transformation and comparison theorem to prove the boundedness of all system trajectories. Numerical results show that the calculation formula is effective for solving stiff ordinary differential equations.