R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
h :
  ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
⊢ (↑n + 1) * T R (n + 1) = X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ (↑n + 1) * T R (n + 1) = X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
have h : derivative (T R (n + 2)) = U R (n + 1) - X * U R n + X * derivative (T R (n + 1)) +
    2 * X * U R n - (1 - X ^ 2) * derivative (U R n) := by
  conv_lhs => rw [T_eq_X_mul_T_sub_pol_U]
  simp only [derivative_sub, derivative_mul, derivative_X, derivative_one, derivative_X_pow,
    one_mul, T_derivative_eq_U]
  rw [T_eq_U_sub_X_mul_U, C_eq_nat_cast]
  ring
no goals
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
h :
  ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
⊢ (↑n + 1) * T R (n + 1) = X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
calc
  ((n : R[X]) + 1) * T R (n + 1) =
      ((n : R[X]) + 1 + 1) * (X * U R n + T R (n + 1)) - X * ((n + 1 : R[X]) * U R n) -
        (X * U R n + T R (n + 1)) :=
    by ring
  _ = derivative (T R (n + 2)) - X * derivative (T R (n + 1)) - U R (n + 1) := by
    rw [← U_eq_X_mul_U_add_T, ← T_derivative_eq_U, ← Nat.cast_one, ← Nat.cast_add, Nat.cast_one, ←
      T_derivative_eq_U (n + 1)]
  _ = U R (n + 1) - X * U R n + X * derivative (T R (n + 1)) + 2 * X * U R n -
            (1 - X ^ 2) * derivative (U R n) -
          X * derivative (T R (n + 1)) -
        U R (n + 1) :=
    by rw [h]
  _ = X * U R n - (1 - X ^ 2) * derivative (U R n) := by ring
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ ↑derivative (X * T R (n + 1) - (1 - X ^ 2) * U R n) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
conv_lhs => rw [T_eq_X_mul_T_sub_pol_U]
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ T R (n + 1) + X * ((↑n + 1) * U R n) - ((0 - ↑C ↑2 * X ^ (2 - 1)) * U R n + (1 - X ^ 2) * ↑derivative (U R n)) =
    U R (n + 1) - X * U R n + X * ((↑n + 1) * U R n) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ ↑derivative (X * T R (n + 1) - (1 - X ^ 2) * U R n) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
simp only [derivative_sub, derivative_mul, derivative_X, derivative_one, derivative_X_pow,
  one_mul, T_derivative_eq_U]
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ U R (n + 1) - X * U R n + X * ((↑n + 1) * U R n) -
      ((0 - ↑2 * X ^ (2 - 1)) * U R n + (1 - X ^ 2) * ↑derivative (U R n)) =
    U R (n + 1) - X * U R n + X * ((↑n + 1) * U R n) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ T R (n + 1) + X * ((↑n + 1) * U R n) - ((0 - ↑C ↑2 * X ^ (2 - 1)) * U R n + (1 - X ^ 2) * ↑derivative (U R n)) =
    U R (n + 1) - X * U R n + X * ((↑n + 1) * U R n) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
rw [T_eq_U_sub_X_mul_U, C_eq_nat_cast]
no goals
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
⊢ U R (n + 1) - X * U R n + X * ((↑n + 1) * U R n) -
      ((0 - ↑2 * X ^ (2 - 1)) * U R n + (1 - X ^ 2) * ↑derivative (U R n)) =
    U R (n + 1) - X * U R n + X * ((↑n + 1) * U R n) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
ring
no goals
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
h :
  ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
⊢ (↑n + 1) * T R (n + 1) = (↑n + 1 + 1) * (X * U R n + T R (n + 1)) - X * ((↑n + 1) * U R n) - (X * U R n + T R (n + 1))
ring
no goals
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
h :
  ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
⊢ (↑n + 1 + 1) * (X * U R n + T R (n + 1)) - X * ((↑n + 1) * U R n) - (X * U R n + T R (n + 1)) =
    ↑derivative (T R (n + 2)) - X * ↑derivative (T R (n + 1)) - U R (n + 1)
rw [← U_eq_X_mul_U_add_T, ← T_derivative_eq_U, ← Nat.cast_one, ← Nat.cast_add, Nat.cast_one, ←
  T_derivative_eq_U (n + 1)]
no goals
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
h :
  ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
⊢ ↑derivative (T R (n + 2)) - X * ↑derivative (T R (n + 1)) - U R (n + 1) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n) -
        X * ↑derivative (T R (n + 1)) -
      U R (n + 1)
rw [h]
no goals
R : Type u_1
S : Type ?u.79032
inst✝¹ : CommRing R
inst✝ : CommRing S
n : ℕ
h :
  ↑derivative (T R (n + 2)) =
    U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
⊢ U R (n + 1) - X * U R n + X * ↑derivative (T R (n + 1)) + 2 * X * U R n - (1 - X ^ 2) * ↑derivative (U R n) -
        X * ↑derivative (T R (n + 1)) -
      U R (n + 1) =
    X * U R n - (1 - X ^ 2) * ↑derivative (U R n)
ring