# Hamilton–Jacobi equation

The **Hamilton–Jacobi equation** is a first-order partial differential equation of classical mechanics, \( \partial S/\partial t + H(q, \partial S/\partial q) = 0 \), whose solution \( S \) is the generating function of a canonical transformation that reduces the Hamiltonian to zero, so that the transformed coordinates and momenta are constants and the equations of motion are solved by inversion.<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup><sup> • </sup><sup>[2](https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/9579/sicm_edition_2.zip/chapter006.html)</sup> It is an alternative formulation of classical mechanics alongside the Newtonian, Lagrangian, and Hamiltonian formulations.<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup>

| Key fact | Detail |
|---|---|
| Equation | \( \partial S/\partial t + H(q_1,\ldots,q_n, \partial S/\partial q_1, \ldots, \partial S/\partial q_n, t) = 0 \), a first-order PDE in the \( n+1 \) variables \( (q_1,\ldots,q_n,t) \)<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> |
| Meaning of \( S \) | Hamilton's principal function, the generating function of the canonical transformation from \( (q,p) \) at time \( t \) to constant variables \( (Q,P) \), with transformed Hamiltonian \( K = 0 \)<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> |
| Relation to action | \( S \) is the classical action, the indefinite time integral of the Lagrangian, \( S = \int L\,dt \)<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> |
| Time-independent form | For \( \partial H/\partial t = 0 \), \( S = W(q,\alpha) - \alpha_1 t \), where \( W \) is Hamilton's characteristic function satisfying \( H(q, \partial W/\partial q) = \alpha_1 = E \)<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> |
| Complete solution | A solution \( S(q,\alpha,t) \) with \( n \) independent constants \( \alpha_i \) (an additive constant is irrelevant); then \( p_i = \partial S/\partial q_i \) and \( \beta_i = \partial S/\partial \alpha_i \), and inversion gives \( q_i(\alpha,\beta,t) \)<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup> |
| Quantum limit | The HJ equation is the semiclassical limit of the Schrödinger equation, the zeroth-order term of the WKB approximation, reached as \( \hbar \to 0 \) with \( \psi = e^{iS/\hbar} \)<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> |
| Optical analog | For a particle in a potential \( V(r) \), the time-independent equation reads \( (\nabla W)^2 = 2m(E - V) \), the exact analog of the eikonal equation of geometric optics<sup>[5](https://phys.uri.edu/gerhard/PHY510/gam13.pdf)</sup> |

## Purpose within Hamiltonian mechanics

A canonical transformation is a change of phase-space variables \( (q,p) \to (Q,P) \) that preserves [Hamilton's equations](https://www.edgepedia.org/hamiltons-equations) in standard form. Hamilton–Jacobi theory asks for a transformation with the strongest possible simplification: new variables \( Q_i, P_i \) that are all constants, so that \( \dot{Q}_i = \dot{P}_i = 0 \).<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> If the transformed Hamiltonian \( K \) is independent of \( (Q,P) \), Hamilton's equations give \( \dot{Q}_i = \partial K/\partial P_i = 0 \) and \( \dot{P}_i = -\partial K/\partial Q_i = 0 \); the simplest choice is \( K = 0 \).<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> All the time variation of the solution is then carried by the transformation itself, and there is nothing more to the dynamics.<sup>[2](https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/9579/sicm_edition_2.zip/chapter006.html)</sup>

Using a mixed-variable generating function \( F_2(q,P,t) \), the condition \( K = H + \partial F_2/\partial t = 0 \), together with \( p_i = \partial F_2/\partial q_i \), produces the time-dependent Hamilton–Jacobi equation.<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> In the broader view, a solution of the equation is the generator of a symplectic change of variables intended to simplify the equations of motion.<sup>[6](https://www.scholarpedia.org/article/Hamilton-Jacobi_equation)</sup>

## Solving the equations of motion

The solution \( F_2 \equiv S = S(q_1,\ldots,q_n,\alpha_1,\ldots,\alpha_n,t) \) is called Hamilton's principal function, and the \( n \) independent constants \( \alpha_i \) can be taken as the new momenta, \( P_i = \alpha_i \).<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> One constant of integration is trivial, since \( S \to S + C \) leaves the equation unchanged, so a complete solution carries \( n \) non-additive constants.<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup> The new coordinates follow as \( \beta_i = \partial S/\partial \alpha_i \), and inverting the relations \( \beta_i(q,\alpha,t) \) and \( p_i = \partial S/\partial q_i \) yields \( q_i(\alpha,\beta,t) \) and \( p_i(\alpha,\beta,t) \), the solution of the mechanical problem.<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> The constants \( (\alpha,\beta) \) can be traded for initial conditions \( (q_0,p_0) \) at \( t = 0 \).<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup>

Hamilton's own approach targets the initial-value problem directly: his principal function \( S_H(q,t; q_0,t_0) \) generates the canonical transformation from the variables \( (q,p) \) at time \( t \) to the initial variables \( (q_0,p_0) \) at \( t_0 \), and the two functions are related by \( S_H(q,t;q_0,t_0) = S(q,\alpha,t) - S(q_0,\alpha,t_0) \).<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup> Once \( S \) is known, the general solution of the equations of motion follows from differentiations and algebraic inversions alone, with no differential equations left to solve.<sup>[7](https://bohr.physics.berkeley.edu/classes/139/s10/notes/classmech.pdf)</sup>

## The action interpretation

Along a solution, \( \dot{S} = p_i \dot{q}_i - H = L \), so \( S \) is the classical action, the indefinite time integral of the Lagrangian.<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> This identification also gives endpoint derivatives: \( \partial S/\partial q_1 = p_1 \) and \( \partial S/\partial t_1 = -H_1 \) at the final endpoint, and \( \partial S/\partial q_0 = -p_0 \), \( \partial S/\partial t_0 = H_0 \) at the initial endpoint.<sup>[7](https://bohr.physics.berkeley.edu/classes/139/s10/notes/classmech.pdf)</sup>

## Time-independent Hamiltonians and the characteristic function

When \( H \) has no explicit time dependence, time separates immediately: \( S(q,\alpha,t) = W(q,\alpha) - \alpha_1 t \), with \( \alpha_1 = E \) the conserved energy.<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> Substitution gives the time-independent Hamilton–Jacobi equation,

\[ H\left(q_1,\ldots,q_n, \frac{\partial W}{\partial q_1}, \ldots, \frac{\partial W}{\partial q_n}\right) = \alpha_1, \]

and \( W \) is called Hamilton's characteristic function.<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> It satisfies \( W = \int \sum_i p_i\,dq_i \), a different sort of action from \( S \).<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> In this formulation the new Hamiltonian is \( K = \alpha_1 \) rather than zero, and \( Q_1 = t + \beta_1 \) carries the linear time dependence while the remaining \( Q_j \) stay constant.<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup>

For a particle of mass \( m \) and energy \( E \) in a potential \( V(r) \), the time-independent equation becomes \( (\nabla W)^2 = 2m(E - V) \).<sup>[5](https://phys.uri.edu/gerhard/PHY510/gam13.pdf)</sup>

## Separation of variables

[Separation of variables](https://www.edgepedia.org/separation-of-variables) is the main technique for solving the equation, and the method is most useful when the Hamiltonian separates.<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> When all variables separate, \( W = \sum_i W_i(q_i,\alpha) \); cyclic coordinates are always separable, contributing a term \( \gamma q_1 \) with constant \( \gamma \).<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> The choice of coordinates matters: a spherically symmetric problem may separate in spherical coordinates but not in Cartesian coordinates.<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup>

**Worked example, the harmonic oscillator.** For \( H = p^2/2m + (m\omega q)^2/2 \), the separable ansatz \( S = W(q,\alpha) - \alpha t \) gives \( W = \pm\int\sqrt{2m\alpha - (m\omega q)^2}\,dq \), so \( S = -\alpha t \pm \int\sqrt{2m\alpha - (m\omega q)^2}\,dq \).<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> Taking \( \beta = \partial S/\partial\alpha \) and inverting yields \( q = \pm\sqrt{2\alpha/(m\omega^2)}\,\sin(\omega(t+\beta)) \) and \( p = \pm\sqrt{2m\alpha}\,\cos(\omega(t+\beta)) \), with \( \beta \) fixing the phase.<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup>

## Relation to waves and quantum mechanics

The equation carries a wave interpretation of particle motion. It fulfilled a long-standing goal, dating back to [Johann Bernoulli](https://www.edgepedia.org/johann-bernoulli), of finding an analogy between the propagation of light and the motion of a particle, and this analogy motivated Hamilton's work on the formalism.<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup> In geometric optics the corresponding equation is the eikonal equation, \( |\nabla L| = n(r) \) for the optical phase, and the two theories match when the refractive index is identified as \( n(r) = \sqrt{2m(E - V(r))} \).<sup>[5](https://phys.uri.edu/gerhard/PHY510/gam13.pdf)</sup>

The quantum connection is direct. Substituting \( \psi = \exp(iS/\hbar) \) into the [Schrödinger equation](https://www.edgepedia.org/schrodinger-equation) and taking \( \hbar \to 0 \) leaves exactly the Hamilton–Jacobi equation with the standard \( p^2/2m \) kinetic term; the equation is thus the zeroth-order term of the [WKB approximation](https://www.edgepedia.org/wkb-approximation).<sup>[1](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)</sup> The time-independent HJ equation resembles the time-independent Schrödinger energy eigenvalue equation, with the difference that the former is nonlinear in \( W \) while the latter is linear in the wavefunction \( \psi \).<sup>[4](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)</sup> In semiclassical treatments, Hamilton's principal function \( S \) appears as the phase of the propagator, and \( W \) as essentially the phase of an energy eigenfunction.<sup>[7](https://bohr.physics.berkeley.edu/classes/139/s10/notes/classmech.pdf)</sup>

## History

[William Rowan Hamilton](https://www.edgepedia.org/william-rowan-hamilton) developed the principal-function approach, and [Carl Gustav Jacob Jacobi](https://www.edgepedia.org/carl-gustav-jacob-jacobi), who around 1842 invented the generating-function method for solving the canonical Hamilton equations, made mathematical developments in the theory in 1843 that greatly expanded its use.<sup>[8](https://www.sciencedirect.com/topics/computer-science/jacobi-equation)</sup><sup> • </sup><sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup> Initially only a few scientists, Jacobi among them, recognized the advantages of [Hamiltonian mechanics](https://www.edgepedia.org/hamiltonian-mechanics); the theory now serves as a foundation for contemporary physics, including quantum and statistical mechanics.<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup> A practical advantage over the other formulations of analytic mechanics is that it compresses the dynamics into a single first-order partial differential equation for \( S \), a function of the \( n \) generalized coordinates and time, whereas Lagrangian mechanics gives \( n \) second-order equations and Hamilton's equations give \( 2n \) first-order equations.<sup>[3](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)</sup>

## References

1. [MIT OpenCourseWare, 8.09 Classical Mechanics III (Fall 2014), Chapter 4: Canonical Transformations, Hamilton-Jacobi Equations, and Action-Angle Variables](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/f00f7f68ac7ba346a0868efb7430582c_MIT8_09F14_Chapter_4.pdf)
2. [Structure and Interpretation of Classical Mechanics, Chapter 6 (MIT Press)](https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/9579/sicm_edition_2.zip/chapter006.html)
3. [Douglas Cline, "Hamilton-Jacobi Theory," 15.4 in *Variational Principles in Classical Mechanics*, Physics LibreTexts](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/15%3A_Advanced_Hamiltonian_Mechanics/15.04%3A_Hamilton-Jacobi_Theory)
4. [MIT OpenCourseWare, 8.09 Advanced Classical Mechanics, full lecture notes](https://ocw.mit.edu/courses/8-09-classical-mechanics-iii-fall-2014/d9bac33f6c60b304dc0398e99b327102_MIT8_09F14_full.pdf)
5. [Gerhard Müller, "Hamilton-Jacobi Equation," PHY510 lecture notes, University of Rhode Island](https://phys.uri.edu/gerhard/PHY510/gam13.pdf)
6. [Hamilton-Jacobi equation, Scholarpedia](https://www.scholarpedia.org/article/Hamilton-Jacobi_equation)
7. [Robert Littlejohn, Appendix B: Classical Mechanics, Physics 221A lecture notes, UC Berkeley](https://bohr.physics.berkeley.edu/classes/139/s10/notes/classmech.pdf)
8. [Jacobi Equation, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/computer-science/jacobi-equation)

---
*Topic: Encyclopedia › Physical world and mathematics › Physics › Classical physics › Mechanics › Motion, forces, and dynamics › Dynamics (mechanics)*

*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
