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

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

Proof of Theorem requad01
StepHypRef Expression
1 requad2.a . . . . . . 7 (𝜑 → 𝐴 ∈ ℝ)
21recnd 11364 . . . . . 6 (𝜑 → 𝐴 ∈ ℂ)
32adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ ℝ) → 𝐴 ∈ ℂ)
4 requad2.z . . . . . 6 (𝜑 → 𝐴 ≠ 0)
54adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ ℝ) → 𝐴 ≠ 0)
6 requad2.b . . . . . . 7 (𝜑 → 𝐵 ∈ ℝ)
76recnd 11364 . . . . . 6 (𝜑 → 𝐵 ∈ ℂ)
87adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ ℝ) → 𝐵 ∈ ℂ)
9 requad2.c . . . . . . 7 (𝜑 → 𝐶 ∈ ℝ)
109recnd 11364 . . . . . 6 (𝜑 → 𝐶 ∈ ℂ)
1110adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ ℝ) → 𝐶 ∈ ℂ)
12 recn 11317 . . . . . 6 (𝑥 ∈ ℝ → 𝑥 ∈ ℂ)
1312adantl 487 . . . . 5 ((𝜑 ∧ 𝑥 ∈ ℝ) → 𝑥 ∈ ℂ)
14 requad2.d . . . . . 6 (𝜑 → 𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
1514adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ ℝ) → 𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
163, 5, 8, 11, 13, 15quad 27198 . . . 4 ((𝜑 ∧ 𝑥 ∈ ℝ) → (((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)))))
17 eleq1 2852 . . . . . . . . . 10 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → (𝑥 ∈ ℝ ↔ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ))
1817adantl 487 . . . . . . . . 9 ((𝜑 ∧ 𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) → (𝑥 ∈ ℝ ↔ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ))
19 2re 12444 . . . . . . . . . . . . . . . . 17 2 ∈ ℝ
2019a1i 11 . . . . . . . . . . . . . . . 16 (𝜑 → 2 ∈ ℝ)
2120, 1remulcld 11366 . . . . . . . . . . . . . . 15 (𝜑 → (2 · 𝐴) ∈ ℝ)
2221adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (2 · 𝐴) ∈ ℝ)
237negcld 11683 . . . . . . . . . . . . . . . . 17 (𝜑 → -𝐵 ∈ ℂ)
246resqcld 14295 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (𝐵↑2) ∈ ℝ)
25 4re 12454 . . . . . . . . . . . . . . . . . . . . . . 23 4 ∈ ℝ
2625a1i 11 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → 4 ∈ ℝ)
271, 9remulcld 11366 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → (𝐴 · 𝐶) ∈ ℝ)
2826, 27remulcld 11366 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (4 · (𝐴 · 𝐶)) ∈ ℝ)
2924, 28resubcld 11771 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → ((𝐵↑2) − (4 · (𝐴 · 𝐶))) ∈ ℝ)
3014, 29eqeltrd 2864 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝐷 ∈ ℝ)
3130recnd 11364 . . . . . . . . . . . . . . . . . 18 (𝜑 → 𝐷 ∈ ℂ)
3231sqrtcld 15636 . . . . . . . . . . . . . . . . 17 (𝜑 → (√‘𝐷) ∈ ℂ)
3323, 32addcld 11355 . . . . . . . . . . . . . . . 16 (𝜑 → ( -𝐵 + (√‘𝐷)) ∈ ℂ)
3433adantr 486 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ( -𝐵 + (√‘𝐷)) ∈ ℂ)
356renegcld 11770 . . . . . . . . . . . . . . . . . 18 (𝜑 → -𝐵 ∈ ℝ)
3635adantr 486 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → -𝐵 ∈ ℝ)
3732adantr 486 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℂ)
3831negnegd 11687 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → - -𝐷 = 𝐷)
3938adantr 486 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → - -𝐷 = 𝐷)
4039eqcomd 2769 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → 𝐷 = - -𝐷)
4140fveq2d 6912 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘𝐷) = (√‘ - -𝐷))
4230renegcld 11770 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → -𝐷 ∈ ℝ)
4342adantr 486 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → -𝐷 ∈ ℝ)
44 0red 11338 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → 0 ∈ ℝ)
4530, 44ltnled 11484 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝐷 < 0 ↔ ¬ 0 ≤ 𝐷))
46 ltle 11425 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐷 ∈ ℝ ∧ 0 ∈ ℝ) → (𝐷 < 0 → 𝐷 ≤ 0))
4730, 44, 46syl2anc 596 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝐷 < 0 → 𝐷 ≤ 0))
4845, 47sylbird 263 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (¬ 0 ≤ 𝐷 → 𝐷 ≤ 0))
4948imp 412 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → 𝐷 ≤ 0)
5030le0neg1d 11914 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (𝐷 ≤ 0 ↔ 0 ≤ -𝐷))
5150adantr 486 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (𝐷 ≤ 0 ↔ 0 ≤ -𝐷))
5249, 51mpbid 235 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → 0 ≤ -𝐷)
5343, 52sqrtnegd 15618 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘ - -𝐷) = (i · (√‘ -𝐷)))
5441, 53eqtrd 2798 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘𝐷) = (i · (√‘ -𝐷)))
55 ax-icn 11286 . . . . . . . . . . . . . . . . . . . . . 22 i ∈ ℂ
5655a1i 11 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → i ∈ ℂ)
5731negcld 11683 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → -𝐷 ∈ ℂ)
5857sqrtcld 15636 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → (√‘ -𝐷) ∈ ℂ)
5958adantr 486 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘ -𝐷) ∈ ℂ)
6056, 59mulcomd 11357 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (i · (√‘ -𝐷)) = ((√‘ -𝐷) · i))
6143, 52resqrtcld 15614 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘ -𝐷) ∈ ℝ)
62 inelr 12337 . . . . . . . . . . . . . . . . . . . . . . . 24 ¬ i ∈ ℝ
63 eldif 4052 . . . . . . . . . . . . . . . . . . . . . . . 24 (i ∈ (ℂ ∖ ℝ) ↔ (i ∈ ℂ ∧ ¬ i ∈ ℝ))
6455, 62, 63mpbir2an 724 . . . . . . . . . . . . . . . . . . . . . . 23 i ∈ (ℂ ∖ ℝ)
6564a1i 11 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → i ∈ (ℂ ∖ ℝ))
6630lt0neg1d 11912 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → (𝐷 < 0 ↔ 0 < -𝐷))
67 ltne 11434 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((0 ∈ ℝ ∧ 0 < -𝐷) → -𝐷 ≠ 0)
6844, 67sylan 592 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ 0 < -𝐷) → -𝐷 ≠ 0)
6942adantr 486 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝜑 ∧ 0 < -𝐷) → -𝐷 ∈ ℝ)
70 ltle 11425 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((0 ∈ ℝ ∧ -𝐷 ∈ ℝ) → (0 < -𝐷 → 0 ≤ -𝐷))
7144, 42, 70syl2anc 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝜑 → (0 < -𝐷 → 0 ≤ -𝐷))
7271imp 412 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝜑 ∧ 0 < -𝐷) → 0 ≤ -𝐷)
73 sqrt00 15459 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (( -𝐷 ∈ ℝ ∧ 0 ≤ -𝐷) → ((√‘ -𝐷) = 0 ↔ -𝐷 = 0))
7469, 72, 73syl2anc 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ 0 < -𝐷) → ((√‘ -𝐷) = 0 ↔ -𝐷 = 0))
7574bicomd 226 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ 0 < -𝐷) → ( -𝐷 = 0 ↔ (√‘ -𝐷) = 0))
7675necon3bid 3003 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ 0 < -𝐷) → ( -𝐷 ≠ 0 ↔ (√‘ -𝐷) ≠ 0))
7768, 76mpbid 235 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ 0 < -𝐷) → (√‘ -𝐷) ≠ 0)
7877ex 418 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → (0 < -𝐷 → (√‘ -𝐷) ≠ 0))
7966, 78sylbid 243 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝐷 < 0 → (√‘ -𝐷) ≠ 0))
8045, 79sylbird 263 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (¬ 0 ≤ 𝐷 → (√‘ -𝐷) ≠ 0))
8180imp 412 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘ -𝐷) ≠ 0)
8261, 65, 81recnmulnred 48580 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ((√‘ -𝐷) · i) ∉ ℝ)
83 df-nel 3066 . . . . . . . . . . . . . . . . . . . . 21 (((√‘ -𝐷) · i) ∉ ℝ ↔ ¬ ((√‘ -𝐷) · i) ∈ ℝ)
8482, 83sylib 221 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ ((√‘ -𝐷) · i) ∈ ℝ)
8560, 84eqneltrd 2884 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ (i · (√‘ -𝐷)) ∈ ℝ)
8654, 85eqneltrd 2884 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ (√‘𝐷) ∈ ℝ)
8737, 86eldifd 4053 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (√‘𝐷) ∈ (ℂ ∖ ℝ))
8836, 87readdcnnred 48578 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ( -𝐵 + (√‘𝐷)) ∉ ℝ)
89 df-nel 3066 . . . . . . . . . . . . . . . 16 (( -𝐵 + (√‘𝐷)) ∉ ℝ ↔ ¬ ( -𝐵 + (√‘𝐷)) ∈ ℝ)
9088, 89sylib 221 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ ( -𝐵 + (√‘𝐷)) ∈ ℝ)
9134, 90eldifd 4053 . . . . . . . . . . . . . 14 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ( -𝐵 + (√‘𝐷)) ∈ (ℂ ∖ ℝ))
92 2cnd 12448 . . . . . . . . . . . . . . . 16 (𝜑 → 2 ∈ ℂ)
93 2ne0 12476 . . . . . . . . . . . . . . . . 17 2 ≠ 0
9493a1i 11 . . . . . . . . . . . . . . . 16 (𝜑 → 2 ≠ 0)
9592, 2, 94, 4mulne0d 11995 . . . . . . . . . . . . . . 15 (𝜑 → (2 · 𝐴) ≠ 0)
9695adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (2 · 𝐴) ≠ 0)
9722, 91, 96cndivrenred 48581 . . . . . . . . . . . . 13 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∉ ℝ)
98 df-nel 3066 . . . . . . . . . . . . 13 ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∉ ℝ ↔ ¬ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
9997, 98sylib 221 . . . . . . . . . . . 12 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
10099ex 418 . . . . . . . . . . 11 (𝜑 → (¬ 0 ≤ 𝐷 → ¬ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ))
101100con4d 116 . . . . . . . . . 10 (𝜑 → ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ → 0 ≤ 𝐷))
102101adantr 486 . . . . . . . . 9 ((𝜑 ∧ 𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) → ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ → 0 ≤ 𝐷))
10318, 102sylbid 243 . . . . . . . 8 ((𝜑 ∧ 𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) → (𝑥 ∈ ℝ → 0 ≤ 𝐷))
104103ex 418 . . . . . . 7 (𝜑 → (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → (𝑥 ∈ ℝ → 0 ≤ 𝐷)))
105 eleq1 2852 . . . . . . . . . 10 (𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) → (𝑥 ∈ ℝ ↔ (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ))
106105adantl 487 . . . . . . . . 9 ((𝜑 ∧ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))) → (𝑥 ∈ ℝ ↔ (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ))
10723, 32subcld 11696 . . . . . . . . . . . . . . . 16 (𝜑 → ( -𝐵 − (√‘𝐷)) ∈ ℂ)
108107adantr 486 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ( -𝐵 − (√‘𝐷)) ∈ ℂ)
10936, 87resubcnnred 48579 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ( -𝐵 − (√‘𝐷)) ∉ ℝ)
110 df-nel 3066 . . . . . . . . . . . . . . . 16 (( -𝐵 − (√‘𝐷)) ∉ ℝ ↔ ¬ ( -𝐵 − (√‘𝐷)) ∈ ℝ)
111109, 110sylib 221 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ ( -𝐵 − (√‘𝐷)) ∈ ℝ)
112108, 111eldifd 4053 . . . . . . . . . . . . . 14 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ( -𝐵 − (√‘𝐷)) ∈ (ℂ ∖ ℝ))
11322, 112, 96cndivrenred 48581 . . . . . . . . . . . . 13 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∉ ℝ)
114 df-nel 3066 . . . . . . . . . . . . 13 ((( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∉ ℝ ↔ ¬ (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
115113, 114sylib 221 . . . . . . . . . . . 12 ((𝜑 ∧ ¬ 0 ≤ 𝐷) → ¬ (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
116115ex 418 . . . . . . . . . . 11 (𝜑 → (¬ 0 ≤ 𝐷 → ¬ (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ))
117116con4d 116 . . . . . . . . . 10 (𝜑 → ((( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ → 0 ≤ 𝐷))
118117adantr 486 . . . . . . . . 9 ((𝜑 ∧ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))) → ((( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ → 0 ≤ 𝐷))
119106, 118sylbid 243 . . . . . . . 8 ((𝜑 ∧ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))) → (𝑥 ∈ ℝ → 0 ≤ 𝐷))
120119ex 418 . . . . . . 7 (𝜑 → (𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)) → (𝑥 ∈ ℝ → 0 ≤ 𝐷)))
121104, 120jaod 873 . . . . . 6 (𝜑 → ((𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))) → (𝑥 ∈ ℝ → 0 ≤ 𝐷)))
122121com23 87 . . . . 5 (𝜑 → (𝑥 ∈ ℝ → ((𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))) → 0 ≤ 𝐷)))
123122imp 412 . . . 4 ((𝜑 ∧ 𝑥 ∈ ℝ) → ((𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ 𝑥 = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))) → 0 ≤ 𝐷))
12416, 123sylbid 243 . . 3 ((𝜑 ∧ 𝑥 ∈ ℝ) → (((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 → 0 ≤ 𝐷))
125124rexlimdva 3167 . 2 (𝜑 → (∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 → 0 ≤ 𝐷))
12635adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → -𝐵 ∈ ℝ)
12730adantr 486 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐷 ∈ ℝ)
128 simpr 490 . . . . . . 7 ((𝜑 ∧ 0 ≤ 𝐷) → 0 ≤ 𝐷)
129127, 128resqrtcld 15614 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (√‘𝐷) ∈ ℝ)
130126, 129readdcld 11365 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → ( -𝐵 + (√‘𝐷)) ∈ ℝ)
13119a1i 11 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 2 ∈ ℝ)
1321adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐴 ∈ ℝ)
133131, 132remulcld 11366 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ∈ ℝ)
13495adantr 486 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (2 · 𝐴) ≠ 0)
135130, 133, 134redivcld 12172 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℝ)
136 oveq1 7450 . . . . . . . 8 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → (𝑥↑2) = ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2))
137136oveq2d 7459 . . . . . . 7 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → (𝐴 · (𝑥↑2)) = (𝐴 · ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2)))
138 oveq2 7451 . . . . . . . 8 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → (𝐵 · 𝑥) = (𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))))
139138oveq1d 7458 . . . . . . 7 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → ((𝐵 · 𝑥) + 𝐶) = ((𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) + 𝐶))
140137, 139oveq12d 7461 . . . . . 6 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = ((𝐴 · ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2)) + ((𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) + 𝐶)))
141140eqeq1d 2765 . . . . 5 (𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) → (((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ ((𝐴 · ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2)) + ((𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) + 𝐶)) = 0))
142141adantl 487 . . . 4 (((𝜑 ∧ 0 ≤ 𝐷) ∧ 𝑥 = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) → (((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ ((𝐴 · ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2)) + ((𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) + 𝐶)) = 0))
143 eqidd 2764 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)))
144143orcd 887 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴))))
1452adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐴 ∈ ℂ)
1464adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐴 ≠ 0)
1477adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐵 ∈ ℂ)
14810adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐶 ∈ ℂ)
14992, 2mulcld 11356 . . . . . . . 8 (𝜑 → (2 · 𝐴) ∈ ℂ)
15033, 149, 95divcld 12120 . . . . . . 7 (𝜑 → (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℂ)
151150adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∈ ℂ)
15214adantr 486 . . . . . 6 ((𝜑 ∧ 0 ≤ 𝐷) → 𝐷 = ((𝐵↑2) − (4 · (𝐴 · 𝐶))))
153145, 146, 147, 148, 151, 152quad 27198 . . . . 5 ((𝜑 ∧ 0 ≤ 𝐷) → (((𝐴 · ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2)) + ((𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) + 𝐶)) = 0 ↔ ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) = (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) ∨ (( -𝐵 + (√‘𝐷)) / (2 · 𝐴)) = (( -𝐵 − (√‘𝐷)) / (2 · 𝐴)))))
154144, 153mpbird 260 . . . 4 ((𝜑 ∧ 0 ≤ 𝐷) → ((𝐴 · ((( -𝐵 + (√‘𝐷)) / (2 · 𝐴))↑2)) + ((𝐵 · (( -𝐵 + (√‘𝐷)) / (2 · 𝐴))) + 𝐶)) = 0)
155135, 142, 154rspcedvd 3582 . . 3 ((𝜑 ∧ 0 ≤ 𝐷) → ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0)
156155ex 418 . 2 (𝜑 → (0 ≤ 𝐷 → ∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0))
157125, 156impbid 215 1 (𝜑 → (∃𝑥 ∈ ℝ ((𝐴 · (𝑥↑2)) + ((𝐵 · 𝑥) + 𝐶)) = 0 ↔ 0 ≤ 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1570   ∈ wcel 2147   ≠ wne 2959   ∉ wnel 3065  ∃wrex 3090   ∖ cdif 4048   class class class wbr 5106  ‘cfv 6558  (class class class)co 7443  ℂcc 11225  ℝcr 11226  0cc0 11227  ici 11229   + caddc 11230   · cmul 11232   < clt 11370   ≤ cle 11371   − cmin 11568   -cneg 11569   / cdiv 12000  2c2 12424  4c4 12426  ↑cexp 14231  √csqrt 15429
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-cnex 11283  ax-resscn 11284  ax-1cn 11285  ax-icn 11286  ax-addcl 11287  ax-addrcl 11288  ax-mulcl 11289  ax-mulrcl 11290  ax-mulcom 11291  ax-addass 11292  ax-mulass 11293  ax-distr 11294  ax-i2m1 11295  ax-1ne0 11296  ax-1rid 11297  ax-rnegex 11298  ax-rrecex 11299  ax-cnre 11300  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303  ax-pre-mulgt0 11304  ax-pre-sup 11305
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-riota 7400  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-2nd 8026  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-er 8745  df-en 9002  df-dom 9003  df-sdom 9004  df-sup 9461  df-pnf 11372  df-mnf 11373  df-xr 11374  df-ltxr 11375  df-le 11376  df-sub 11570  df-neg 11571  df-div 12001  df-nn 12363  df-2 12432  df-3 12433  df-4 12434  df-n0 12634  df-z 12721  df-uz 12993  df-rp 13148  df-seq 14172  df-exp 14232  df-cj 15295  df-re 15296  df-im 15297  df-sqrt 15431  df-abs 15432
This theorem is used by:  requad1  48925  requad2  48926
  Copyright terms: Public domain W3C validator