NLA-lib Explorer

Polynomial approximation of the inverse

Library · Result group

Theorem (exists_degree_lt_isUniformApproxOn_inv). Polynomial approximation of the inverse. For 0<a<\mathbf{b}, there is a polynomial of degree less than q such that \left\lvert p(\mathbf{x})-\mathbf{x}^{-1}\right\rvert\le\frac2a \left(\frac{\sqrt \mathbf{b}-\sqrt a}{\sqrt \mathbf{b}+\sqrt a}\right)^q\quad(\mathbf{x}\in[a,\mathbf{b}]). This is a scalar inverse-approximation corollary of [Saad2003, Theorem 6.25 and proof of Theorem 6.29], obtained by factoring 1-r_q=Xp. The WithBot degree includes q=0: the zero polynomial has degree \bot<0, and error at most 1/a\le2/a.

Headline (provisional)

Lean statement and details
NLAlib.exists_degree_lt_isUniformApproxOn_inv {a b : ℝ} (q : ℕ) (ha : 0 < a) (hab : a < b) :
  ∃ p,
    p.degree < ↑q ∧
      Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) (fun x ↦ x⁻¹) (Set.Icc a b)
        (2 / a * ((√b - √a) / (√b + √a)) ^ q)

Full source on GitHub

Copy link

Other forms

Theorem (minimaxError_inv_le). The minimax error of the inverse: for 0 < a < \mathbf{b}, E_n\bigl(\mathbf{x}^{-1}; [a, \mathbf{b}]\bigr) \le \frac2a \left(\frac{\sqrt \mathbf{b} - \sqrt a}{\sqrt \mathbf{b} + \sqrt a}\right)^{n + 1}\,. The matching lower bound (the exact value of E_n(\mathbf{x}^{-1})) is deferred. A corollary of [Saad2003, Theorem 6.25 and proof of Theorem 6.29].

Lean statement and details
NLAlib.minimaxError_inv_le {a b : ℝ} (n : ℕ) (ha : 0 < a) (hab : a < b) :
  minimaxError (fun x ↦ x⁻¹) (Set.Icc a b) n ≤ 2 / a * ((√b - √a) / (√b + √a)) ^ (n + 1)

Full source on GitHub

Copy link