← Back to Tutorial

Polynomial Explorer

Visualize why polynomials are perfect for zero-knowledge proofs: two different polynomials of degree d intersect at most d times.

📐 Polynomial 1 (Blue)

2
p(x) = x²

📐 Polynomial 2 (Green)

2
q(x) = -0.5x² +2.0x -1.0
Max Degree2
Max Intersections2
Actual Intersections (visible)0

🎯 Random Point Test

Pick a random x - what's the chance both polynomials give the same value?

Click to test a random point...
Why This Matters for zk-SNARKs:

In a zk-SNARK, the prover claims to know a polynomial p(x). The verifier picks a random point r and checks p(r). If the prover is lying (using a different polynomial q(x)), they'd need to guess a point where p(r) = q(r).

Since degree-d polynomials intersect at most d times, and we're working with huge numbers (like 2²⁵⁴), the chance of randomly hitting an intersection is less than d / 2²⁵⁴ - essentially zero. One random check catches cheaters with overwhelming probability!