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 43836
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 10669 . . . . . . 7 (𝜑𝐴 ∈ ℂ)
32ad2antrr 724 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐴 ∈ ℂ)
4 requad2.z . . . . . . 7 (𝜑𝐴 ≠ 0)
54ad2antrr 724 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐴 ≠ 0)
6 requad2.b . . . . . . . 8 (𝜑𝐵 ∈ ℝ)
76recnd 10669 . . . . . . 7 (𝜑𝐵 ∈ ℂ)
87ad2antrr 724 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐵 ∈ ℂ)
9 requad2.c . . . . . . . 8 (𝜑𝐶 ∈ ℝ)
109recnd 10669 . . . . . . 7 (𝜑𝐶 ∈ ℂ)
1110ad2antrr 724 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐶 ∈ ℂ)
12 recn 10627 . . . . . . 7 (𝑥 ∈ ℝ → 𝑥 ∈ ℂ)
1312adantl 484 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝑥 ∈ ℂ)
14 requad2.d . . . . . . 7 (𝜑𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
1514ad2antrr 724 . . . . . 6 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → 𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
163, 5, 8, 11, 13, 15quad 25418 . . . . 5 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 ∈ ℝ) → (((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)))))
1716reubidva 3388 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ ∃!𝑥 ∈ ℝ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)))))
186renegcld 11067 . . . . . . . 8 (𝜑 → -𝐵 ∈ ℝ)
1918adantr 483 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → -𝐵 ∈ ℝ)
206resqcld 13612 . . . . . . . . . 10 (𝜑 → (𝐵↑2) ∈ ℝ)
21 4re 11722 . . . . . . . . . . . 12 4 ∈ ℝ
2221a1i 11 . . . . . . . . . . 11 (𝜑 → 4 ∈ ℝ)
231, 9remulcld 10671 . . . . . . . . . . 11 (𝜑 → (𝐴 · 𝐶) ∈ ℝ)
2422, 23remulcld 10671 . . . . . . . . . 10 (𝜑 → (4 · (𝐴 · 𝐶)) ∈ ℝ)
2520, 24resubcld 11068 . . . . . . . . 9 (𝜑 → ((𝐵↑2) − (4 · (𝐴 · 𝐶))) ∈ ℝ)
2614, 25eqeltrd 2913 . . . . . . . 8 (𝜑𝐷 ∈ ℝ)
27 resqrtcl 14613 . . . . . . . 8 ((𝐷 ∈ ℝ ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℝ)
2826, 27sylan 582 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℝ)
2919, 28readdcld 10670 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (-𝐵 + (√‘𝐷)) ∈ ℝ)
30 2re 11712 . . . . . . . . 9 2 ∈ ℝ
3130a1i 11 . . . . . . . 8 (𝜑 → 2 ∈ ℝ)
3231, 1remulcld 10671 . . . . . . 7 (𝜑 → (2 · 𝐴) ∈ ℝ)
3332adantr 483 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ∈ ℝ)
34 2cnd 11716 . . . . . . . 8 (𝜑 → 2 ∈ ℂ)
35 2ne0 11742 . . . . . . . . 9 2 ≠ 0
3635a1i 11 . . . . . . . 8 (𝜑 → 2 ≠ 0)
3734, 2, 36, 4mulne0d 11292 . . . . . . 7 (𝜑 → (2 · 𝐴) ≠ 0)
3837adantr 483 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ≠ 0)
3929, 33, 38redivcld 11468 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
4019, 28resubcld 11068 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (-𝐵 − (√‘𝐷)) ∈ ℝ)
4140, 33, 38redivcld 11468 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
42 euoreqb 43357 . . . . 5 ((((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ ∧ ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ) → (∃!𝑥 ∈ ℝ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))) ↔ ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))))
4339, 41, 42syl2anc 586 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (∃!𝑥 ∈ ℝ (𝑥 = ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))) ↔ ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴))))
447negcld 10984 . . . . . . . 8 (𝜑 → -𝐵 ∈ ℂ)
4526recnd 10669 . . . . . . . . 9 (𝜑𝐷 ∈ ℂ)
4645sqrtcld 14797 . . . . . . . 8 (𝜑 → (√‘𝐷) ∈ ℂ)
4732recnd 10669 . . . . . . . 8 (𝜑 → (2 · 𝐴) ∈ ℂ)
4844, 46, 47, 37divdird 11454 . . . . . . 7 (𝜑 → ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))))
4948adantr 483 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))))
5044, 46, 47, 37divsubdird 11455 . . . . . . . 8 (𝜑 → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) − ((√‘𝐷) / (2 · 𝐴))))
5150adantr 483 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) − ((√‘𝐷) / (2 · 𝐴))))
5244, 47, 37divcld 11416 . . . . . . . . 9 (𝜑 → (-𝐵 / (2 · 𝐴)) ∈ ℂ)
5352adantr 483 . . . . . . . 8 ((𝜑 ∧ 0 ≤ 𝐷) → (-𝐵 / (2 · 𝐴)) ∈ ℂ)
5446, 47, 37divcld 11416 . . . . . . . . 9 (𝜑 → ((√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
5554adantr 483 . . . . . . . 8 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
5653, 55negsubd 11003 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 / (2 · 𝐴)) + -((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) − ((√‘𝐷) / (2 · 𝐴))))
5746adantr 483 . . . . . . . . 9 ((𝜑 ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℂ)
5847adantr 483 . . . . . . . . 9 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ∈ ℂ)
5957, 58, 38divnegd 11429 . . . . . . . 8 ((𝜑 ∧ 0 ≤ 𝐷) → -((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)))
6059oveq2d 7172 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 / (2 · 𝐴)) + -((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))))
6151, 56, 603eqtr2d 2862 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))))
6249, 61eqeq12d 2837 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ↔ ((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴)))))
6346negcld 10984 . . . . . . . . 9 (𝜑 → -(√‘𝐷) ∈ ℂ)
6463, 47, 37divcld 11416 . . . . . . . 8 (𝜑 → (-(√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
6564adantr 483 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → (-(√‘𝐷) / (2 · 𝐴)) ∈ ℂ)
6653, 55, 65addcand 10843 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))) ↔ ((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴))))
67 div11 11326 . . . . . . . 8 (((√‘𝐷) ∈ ℂ ∧ -(√‘𝐷) ∈ ℂ ∧ ((2 · 𝐴) ∈ ℂ ∧ (2 · 𝐴) ≠ 0)) → (((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)) ↔ (√‘𝐷) = -(√‘𝐷)))
6846, 63, 47, 37, 67syl112anc 1370 . . . . . . 7 (𝜑 → (((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)) ↔ (√‘𝐷) = -(√‘𝐷)))
6968adantr 483 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (((√‘𝐷) / (2 · 𝐴)) = (-(√‘𝐷) / (2 · 𝐴)) ↔ (√‘𝐷) = -(√‘𝐷)))
7057eqnegd 11361 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) = -(√‘𝐷) ↔ (√‘𝐷) = 0))
71 sqrt00 14623 . . . . . . . 8 ((𝐷 ∈ ℝ ∧ 0 ≤ 𝐷) → ((√‘𝐷) = 0 ↔ 𝐷 = 0))
7226, 71sylan 582 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) = 0 ↔ 𝐷 = 0))
7370, 72bitrd 281 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → ((√‘𝐷) = -(√‘𝐷) ↔ 𝐷 = 0))
7466, 69, 733bitrd 307 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 / (2 · 𝐴)) + ((√‘𝐷) / (2 · 𝐴))) = ((-𝐵 / (2 · 𝐴)) + (-(√‘𝐷) / (2 · 𝐴))) ↔ 𝐷 = 0))
7562, 74bitrd 281 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (((-𝐵 + (√‘𝐷)) / (2 · 𝐴)) = ((-𝐵 − (√‘𝐷)) / (2 · 𝐴)) ↔ 𝐷 = 0))
7617, 43, 753bitrd 307 . . 3 ((𝜑 ∧ 0 ≤ 𝐷) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
7776expcom 416 . 2 (0 ≤ 𝐷 → (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0)))
781, 4, 6, 9, 14requad01 43835 . . . . . . . 8 (𝜑 → (∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 0 ≤ 𝐷))
7978notbid 320 . . . . . . 7 (𝜑 → (¬ ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ ¬ 0 ≤ 𝐷))
8079biimparc 482 . . . . . 6 ((¬ 0 ≤ 𝐷𝜑) → ¬ ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
81 reurex 3431 . . . . . 6 (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 → ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
8280, 81nsyl 142 . . . . 5 ((¬ 0 ≤ 𝐷𝜑) → ¬ ∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
8382pm2.21d 121 . . . 4 ((¬ 0 ≤ 𝐷𝜑) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 → 𝐷 = 0))
84 0red 10644 . . . . . . . 8 (𝜑 → 0 ∈ ℝ)
8526, 84ltnled 10787 . . . . . . 7 (𝜑 → (𝐷 < 0 ↔ ¬ 0 ≤ 𝐷))
8685biimparc 482 . . . . . 6 ((¬ 0 ≤ 𝐷𝜑) → 𝐷 < 0)
8786lt0ne0d 11205 . . . . 5 ((¬ 0 ≤ 𝐷𝜑) → 𝐷 ≠ 0)
88 eqneqall 3027 . . . . 5 (𝐷 = 0 → (𝐷 ≠ 0 → ∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0))
8987, 88syl5com 31 . . . 4 ((¬ 0 ≤ 𝐷𝜑) → (𝐷 = 0 → ∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0))
9083, 89impbid 214 . . 3 ((¬ 0 ≤ 𝐷𝜑) → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
9190ex 415 . 2 (¬ 0 ≤ 𝐷 → (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0)))
9277, 91pm2.61i 184 1 (𝜑 → (∃!𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 𝐷 = 0))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843   = wceq 1537  wcel 2114  wne 3016  wrex 3139  ∃!wreu 3140   class class class wbr 5066  cfv 6355  (class class class)co 7156  cc 10535  cr 10536  0cc0 10537   + caddc 10540   · cmul 10542   < clt 10675  cle 10676  cmin 10870  -cneg 10871   / cdiv 11297  2c2 11693  4c4 11695  cexp 13430  csqrt 14592
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461  ax-cnex 10593  ax-resscn 10594  ax-1cn 10595  ax-icn 10596  ax-addcl 10597  ax-addrcl 10598  ax-mulcl 10599  ax-mulrcl 10600  ax-mulcom 10601  ax-addass 10602  ax-mulass 10603  ax-distr 10604  ax-i2m1 10605  ax-1ne0 10606  ax-1rid 10607  ax-rnegex 10608  ax-rrecex 10609  ax-cnre 10610  ax-pre-lttri 10611  ax-pre-lttrn 10612  ax-pre-ltadd 10613  ax-pre-mulgt0 10614  ax-pre-sup 10615
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-tp 4572  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-tr 5173  df-id 5460  df-eprel 5465  df-po 5474  df-so 5475  df-fr 5514  df-we 5516  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-pred 6148  df-ord 6194  df-on 6195  df-lim 6196  df-suc 6197  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363  df-riota 7114  df-ov 7159  df-oprab 7160  df-mpo 7161  df-om 7581  df-2nd 7690  df-wrecs 7947  df-recs 8008  df-rdg 8046  df-er 8289  df-en 8510  df-dom 8511  df-sdom 8512  df-sup 8906  df-pnf 10677  df-mnf 10678  df-xr 10679  df-ltxr 10680  df-le 10681  df-sub 10872  df-neg 10873  df-div 11298  df-nn 11639  df-2 11701  df-3 11702  df-4 11703  df-n0 11899  df-z 11983  df-uz 12245  df-rp 12391  df-seq 13371  df-exp 13431  df-cj 14458  df-re 14459  df-im 14460  df-sqrt 14594  df-abs 14595
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator