Can we find a Lagrangian for the the following first order equation?
\begin{equation} \dot x=x^2,\tag{1} \end{equation} where the above equation is the Euler-Lagrange equation of that Lagrangian?.
For second order equations, it can be found easily for some class of equations.
I think that the answer is negative, at least for Lagrangians of the form $\mathcal{L}(\theta,\dot \theta)$. Suppose such a mythical Lagrangian exists. Thus, Euler Lagrange equations is of the form. $$ \ddot \theta \mathcal{L}_{\dot \theta \dot\theta} + \dot \theta \mathcal{L}_{\dot \theta \theta} = \mathcal{L}_{\theta} $$ Thus, $\mathcal{L}_{\dot \theta \dot\theta} =0$. So $\mathcal{L} = \dot \theta f(\theta) + g(\theta)$. But then, Euler Lagrange equation is $$ \dot \theta f'(\theta) = \dot \theta f'(\theta) + g'(\theta) \Rightarrow g=C $$ Then, up to a constant $\mathcal{L} = \dot\theta f(\theta)$, and Euler Lagrange equations are trivial.
If $\mathcal{L}(\theta,\dot \theta, \mathcal t)$, then $\mathcal{L}=\dot \theta f(\theta, t) + g(\theta,t)$. But then Euler-Lagrange reduce to $$ \partial_t f(\theta,t) = \partial_\theta g(\theta,t)$$
If $f$ and $g$ are smooth enough, $f=\partial_\theta F$ and $g=\partial_tG$. But then $F(\theta,t) = G(\theta,t) + i(\theta) - j (t)$, Let $H(\theta,t) = F(\theta,t) + j(t) = G(\theta,t) + i(\theta)$. Then $\mathcal{L}=\dot \theta \partial_\theta H+\partial_t H$.