Hensel Lifting Calculator

p-adic Newton's method

CalculatorsFreeNo Signup
4.6(635 reviews)
All Tools

Loading tool...

About Hensel Lifting Calculator

A Hensel lifting calculator lifting roots of f(x)≡0 (mod p) to roots mod p². If f(a)≡0 and f'(a)≢0 (mod p), then a lifts uniquely: a₁ = a − f(a)·f'(a)⁻¹ mod p². Iterate for higher powers. Client-side.

Hensel Lifting Calculator Features

  • Root lifting
  • Step-by-step
  • Derivative check
  • Multi-level
  • Polynomial input
Hensel's lemma: if f(a)≡0 (mod p) and f'(a)≢0 (mod p), then a lifts to a unique root mod p^k for all k. Formula: a₁ = a − f(a)·(f'(a))⁻¹ mod p². Like Newton's method but p-adically! Essential in algebraic number theory.

How to Use

Define polynomial and prime:

  • Root mod p: Starting solution
  • Lift: Solution mod p²,p³,...
  • Steps: Each lifting step

Newton Analogy

Newton: x_{n+1} = x_n − f(x_n)/f'(x_n) converges in R. Hensel: a_{n+1} = a_n − f(a_n)·f'(a_n)⁻¹ converges in Q_p. Same formula, different 'distance'! Newton refines decimal digits; Hensel refines p-adic digits.

Applications

  • Solving polynomial equations mod p^k
  • Computing p-adic roots
  • Algebraic number theory
  • Constructing extensions of Q_p

Step-by-Step Instructions

  1. 1Enter polynomial.
  2. 2Enter prime p.
  3. 3Find root mod p.
  4. 4Apply Hensel lift.
  5. 5Get root mod p^k.

Hensel Lifting Calculator — Frequently Asked Questions

When does Hensel's lemma fail?+

When f'(a)≡0 (mod p) — a 'singular' root. In this case, the root might not lift, might lift to multiple roots, or might lift non-uniquely. There are generalizations (Hensel's lemma for singular roots) but they're more complex.

How fast does lifting converge?+

Each step doubles the precision: mod p → mod p² → mod p⁴ → ... (Newton-like quadratic convergence). So after k steps you have precision mod p^{2^k}. Very fast! Similar to Newton's method doubling correct digits.

Can you lift to Z_p (p-adic integers)?+

Yes! Iterating Hensel lifting indefinitely gives a root in Z_p (the p-adic integers). This is how p-adic roots of polynomials are constructed. The sequence of lifts converges p-adically to an exact p-adic solution.

Share this tool: