2026-07-072026-07-07http://salesiana.dossiersoluciones.com/handle/123456789/119551It is shown that a given non-autonomous system of two first-order ordinary differential equations can be expressed in Hamiltonian form. The derivation presented here allow us to obtain previously known results such as the infinite number of Hamiltonians in the autonomous case and the Helmholtz condition for the existence of a Lagrangian.9 pages, Accepted for publication in Rev. Mex. FisClassical PhysicsGeneral PhysicsHamiltonians and Lagrangians of non-autonomous one-dimensional mechanical systemstext