Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  requad1 Structured version   Visualization version   GIF version

Theorem requad1 46962
Description: A condition for a quadratic equation with real coefficients to have (exactly) one real solution. (Contributed by AV, 26-Jan-2023.)
Hypotheses
Ref Expression
requad2.a (𝜑𝐴 ∈ ℝ)
requad2.z (𝜑𝐴 ≠ 0)
requad2.b (𝜑𝐵 ∈ ℝ)
requad2.c (𝜑𝐶 ∈ ℝ)
requad2.d (𝜑𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
Assertion
Ref Expression
requad1 (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝑥,𝐷   𝜑,𝑥

Proof of Theorem requad1
StepHypRef Expression
1 requad2.a . . . . . . . 8 (𝜑𝐴 ∈ ℝ)
21recnd 11273 . . . . . . 7 (𝜑𝐴 ∈ ℂ)
32ad2antrr 725 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐴 ∈ ℂ)
4 requad2.z . . . . . . 7 (𝜑𝐴 ≠ 0)
54ad2antrr 725 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐴 ≠ 0)
6 requad2.b . . . . . . . 8 (𝜑𝐵 ∈ ℝ)
76recnd 11273 . . . . . . 7 (𝜑𝐵 ∈ ℂ)
87ad2antrr 725 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐵 ∈ ℂ)
9 requad2.c . . . . . . . 8 (𝜑𝐶 ∈ ℝ)
109recnd 11273 . . . . . . 7 (𝜑𝐶 ∈ ℂ)
1110ad2antrr 725 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐶 ∈ ℂ)
12 recn 11229 . . . . . . 7 (𝑥 ∈ ℝ → 𝑥 ∈ ℂ)
1312adantl 481 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝑥 ∈ ℂ)
14 requad2.d . . . . . . 7 (𝜑𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
1514ad2antrr 725 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
163, 5, 8, 11, 13, 15quad 26785 . . . . 5 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → (((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)))))
1716reubidva 3389 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ ∃!𝑥 ∈ ℝ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)))))
186renegcld 11672 . . . . . . . 8 (𝜑 → -𝐵 ∈ ℝ)
1918adantr 480 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → -𝐵 ∈ ℝ)
206resqcld 14122 . . . . . . . . . 10 (𝜑 → (𝐵↑2) ∈ ℝ)
21 4re 12327 . . . . . . . . . . . 12 4 ∈ ℝ
2221a1i 11 . . . . . . . . . . 11 (𝜑 → 4 ∈ ℝ)
231, 9remulcld 11275 . . . . . . . . . . 11 (𝜑 → (𝐴 · 𝐶) ∈ ℝ)
2422, 23remulcld 11275 . . . . . . . . . 10 (𝜑 → (4 · (𝐴 · 𝐶)) ∈ ℝ)
2520, 24resubcld 11673 . . . . . . . . 9 (𝜑 → ((𝐵↑2) − (4 · (𝐴 · 𝐶))) ∈ ℝ)
2614, 25eqeltrd 2829 . . . . . . . 8 (𝜑𝐷 ∈ ℝ)
27 resqrtcl 15233 . . . . . . . 8 ((𝐷 ∈ ℝ ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℝ)
2826, 27sylan 579 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℝ)
2919, 28readdcld 11274 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (-𝐵 + (√‘𝐷)) ∈ ℝ)
30 2re 12317 . . . . . . . . 9 2 ∈ ℝ
3130a1i 11 . . . . . . . 8 (𝜑 → 2 ∈ ℝ)
3231, 1remulcld 11275 . . . . . . 7 (𝜑 → (2 · 𝐴) ∈ ℝ)
3332adantr 480 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ∈ ℝ)
34 2cnd 12321 . . . . . . . 8 (𝜑 → 2 ∈ ℂ)
35 2ne0 12347 . . . . . . . . 9 2 ≠ 0
3635a1i 11 . . . . . . . 8 (𝜑 → 2 ≠ 0)
3734, 2, 36, 4mulne0d 11897 . . . . . . 7 (𝜑 → (2 · 𝐴) ≠ 0)
3837adantr 480 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ≠ 0)
3929, 33, 38redivcld 12073 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
4019, 28resubcld 11673 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (-𝐵 − (√‘𝐷)) ∈ ℝ)
4140, 33, 38redivcld 12073 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
42 euoreqb 46489 . . . . 5 ((((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ ∧ ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ) → (∃!𝑥 ∈ ℝ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))) ↔ ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))))
4339, 41, 42syl2anc 583 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (∃!𝑥 ∈ ℝ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))) ↔ ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))))
447negcld 11589 . . . . . . . 8 (𝜑 → -𝐵 ∈ ℂ)
4526recnd 11273 . . . . . . . . 9 (𝜑𝐷 ∈ ℂ)
4645sqrtcld 15417 . . . . . . . 8 (𝜑 → (√‘𝐷) ∈ ℂ)
4732recnd 11273 . . . . . . . 8 (𝜑 → (2 · 𝐴) ∈ ℂ)
4844, 46, 47, 37divdird 12059 . . . . . . 7 (𝜑 → ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))))
4948adantr 480 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))))
5044, 46, 47, 37divsubdird 12060 . . . . . . . 8 (𝜑 → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) − ((√‘𝐷) / (2 · 𝐴))))
5150adantr 480 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) − ((√‘𝐷) / (2 · 𝐴))))
5244, 47, 37divcld 12021 . . . . . . . . 9 (𝜑 → (-𝐵 / (2 · 𝐴)) ∈ ℂ)
5352adantr 480 . . . . . . . 8 ((𝜑 ∧ 0 ≤ 𝐷) → (-𝐵 / (2 · 𝐴)) ∈ ℂ)
5446, 47, 37divcld 12021 . . . . . . . . 9 (𝜑 → ((√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
5554adantr 480 . . . . . . . 8 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
5653, 55negsubd 11608 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 / (2 · 𝐴)) + -((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) − ((√‘𝐷) / (2 · 𝐴))))
5746adantr 480 . . . . . . . . 9 ((𝜑 ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℂ)
5847adantr 480 . . . . . . . . 9 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ∈ ℂ)
5957, 58, 38divnegd 12034 . . . . . . . 8 ((𝜑 ∧ 0 ≤ 𝐷) → -((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)))
6059oveq2d 7436 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 / (2 · 𝐴)) + -((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))))
6151, 56, 603eqtr2d 2774 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))))
6249, 61eqeq12d 2744 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ↔ ((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴)))))
6346negcld 11589 . . . . . . . . 9 (𝜑 → -(√‘𝐷) ∈ ℂ)
6463, 47, 37divcld 12021 . . . . . . . 8 (𝜑 → (-(√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
6564adantr 480 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → (-(√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
6653, 55, 65addcand 11448 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))) ↔ ((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴))))
67 div11 11931 . . . . . . . 8 (((√‘𝐷) ∈ ℂ ∧ -(√‘𝐷) ∈ ℂ ∧ ((2 · 𝐴) ∈ ℂ ∧ (2 · 𝐴) ≠ 0)) → (((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)) ↔ (√‘𝐷) = -(√‘𝐷)))
6846, 63, 47, 37, 67syl112anc 1372 . . . . . . 7 (𝜑 → (((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)) ↔ (√‘𝐷) = -(√‘𝐷)))
6968adantr 480 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)) ↔ (√‘𝐷) = -(√‘𝐷)))
7057eqnegd 11966 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) = -(√‘𝐷) ↔ (√‘𝐷) = 0))
71 sqrt00 15243 . . . . . . . 8 ((𝐷 ∈ ℝ ∧ 0 ≤ 𝐷) → ((√‘𝐷) = 0 ↔ 𝐷 = 0))
7226, 71sylan 579 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) = 0 ↔ 𝐷 = 0))
7370, 72bitrd 279 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) = -(√‘𝐷) ↔ 𝐷 = 0))
7466, 69, 733bitrd 305 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))) ↔ 𝐷 = 0))
7562, 74bitrd 279 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ↔ 𝐷 = 0))
7617, 43, 753bitrd 305 . . 3 ((𝜑 ∧ 0 ≤ 𝐷) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
7776expcom 413 . 2 (0 ≤ 𝐷 → (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0)))
781, 4, 6, 9, 14requad01 46961 . . . . . . . 8 (𝜑 → (∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 0 ≤ 𝐷))
7978notbid 318 . . . . . . 7 (𝜑 → (¬ ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ ¬ 0 ≤ 𝐷))
8079biimparc 479 . . . . . 6 ((¬ 0 ≤ 𝐷𝜑) → ¬ ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
81 reurex 3377 . . . . . 6 (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 → ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
8280, 81nsyl 140 . . . . 5 ((¬ 0 ≤ 𝐷𝜑) → ¬ ∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
8382pm2.21d 121 . . . 4 ((¬ 0 ≤ 𝐷𝜑) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 → 𝐷 = 0))
84 0red 11248 . . . . . . . 8 (𝜑 → 0 ∈ ℝ)
8526, 84ltnled 11392 . . . . . . 7 (𝜑 → (𝐷 < 0 ↔ ¬ 0 ≤ 𝐷))
8685biimparc 479 . . . . . 6 ((¬ 0 ≤ 𝐷𝜑) → 𝐷 < 0)
8786lt0ne0d 11810 . . . . 5 ((¬ 0 ≤ 𝐷𝜑) → 𝐷 ≠ 0)
88 eqneqall 2948 . . . . 5 (𝐷 = 0 → (𝐷 ≠ 0 → ∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0))
8987, 88syl5com 31 . . . 4 ((¬ 0 ≤ 𝐷𝜑) → (𝐷 = 0 → ∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0))
9083, 89impbid 211 . . 3 ((¬ 0 ≤ 𝐷𝜑) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
9190ex 412 . 2 (¬ 0 ≤ 𝐷 → (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0)))
9277, 91pm2.61i 182 1 (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 846   = wceq 1534  wcel 2099  wne 2937  wrex 3067  ∃!wreu 3371   class class class wbr 5148  cfv 6548  (class class class)co 7420  cc 11137  cr 11138  0cc0 11139   + caddc 11142   · cmul 11144   < clt 11279  cle 11280  cmin 11475  -cneg 11476   / cdiv 11902  2c2 12298  4c4 12300  cexp 14059  csqrt 15213
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1906  ax-6 1964  ax-7 2004  ax-8 2101  ax-9 2109  ax-10 2130  ax-11 2147  ax-12 2167  ax-ext 2699  ax-sep 5299  ax-nul 5306  ax-pow 5365  ax-pr 5429  ax-un 7740  ax-cnex 11195  ax-resscn 11196  ax-1cn 11197  ax-icn 11198  ax-addcl 11199  ax-addrcl 11200  ax-mulcl 11201  ax-mulrcl 11202  ax-mulcom 11203  ax-addass 11204  ax-mulass 11205  ax-distr 11206  ax-i2m1 11207  ax-1ne0 11208  ax-1rid 11209  ax-rnegex 11210  ax-rrecex 11211  ax-cnre 11212  ax-pre-lttri 11213  ax-pre-lttrn 11214  ax-pre-ltadd 11215  ax-pre-mulgt0 11216  ax-pre-sup 11217
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 847  df-3or 1086  df-3an 1087  df-tru 1537  df-fal 1547  df-ex 1775  df-nf 1779  df-sb 2061  df-mo 2530  df-eu 2559  df-clab 2706  df-cleq 2720  df-clel 2806  df-nfc 2881  df-ne 2938  df-nel 3044  df-ral 3059  df-rex 3068  df-rmo 3373  df-reu 3374  df-rab 3430  df-v 3473  df-sbc 3777  df-csb 3893  df-dif 3950  df-un 3952  df-in 3954  df-ss 3964  df-pss 3966  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4909  df-iun 4998  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5576  df-eprel 5582  df-po 5590  df-so 5591  df-fr 5633  df-we 5635  df-xp 5684  df-rel 5685  df-cnv 5686  df-co 5687  df-dm 5688  df-rn 5689  df-res 5690  df-ima 5691  df-pred 6305  df-ord 6372  df-on 6373  df-lim 6374  df-suc 6375  df-iota 6500  df-fun 6550  df-fn 6551  df-f 6552  df-f1 6553  df-fo 6554  df-f1o 6555  df-fv 6556  df-riota 7376  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7871  df-2nd 7994  df-frecs 8287  df-wrecs 8318  df-recs 8392  df-rdg 8431  df-er 8725  df-en 8965  df-dom 8966  df-sdom 8967  df-sup 9466  df-pnf 11281  df-mnf 11282  df-xr 11283  df-ltxr 11284  df-le 11285  df-sub 11477  df-neg 11478  df-div 11903  df-nn 12244  df-2 12306  df-3 12307  df-4 12308  df-n0 12504  df-z 12590  df-uz 12854  df-rp 13008  df-seq 14000  df-exp 14060  df-cj 15079  df-re 15080  df-im 15081  df-sqrt 15215  df-abs 15216
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator
OSZAR »