Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-bary1lem Structured version   Visualization version   GIF version

Theorem bj-bary1lem 34724
Description: Lemma for bj-bary1 34726: expression for a barycenter of two points in one dimension (complex line). (Contributed by BJ, 6-Jun-2019.)
Hypotheses
Ref Expression
bj-bary1.a (𝜑𝐴 ∈ ℂ)
bj-bary1.b (𝜑𝐵 ∈ ℂ)
bj-bary1.x (𝜑𝑋 ∈ ℂ)
bj-bary1.neq (𝜑𝐴𝐵)
Assertion
Ref Expression
bj-bary1lem (𝜑𝑋 = ((((𝐵𝑋) / (𝐵𝐴)) · 𝐴) + (((𝑋𝐴) / (𝐵𝐴)) · 𝐵)))

Proof of Theorem bj-bary1lem
StepHypRef Expression
1 bj-bary1.b . . . . . . . . . 10 (𝜑𝐵 ∈ ℂ)
2 bj-bary1.a . . . . . . . . . 10 (𝜑𝐴 ∈ ℂ)
31, 2mulcld 10650 . . . . . . . . 9 (𝜑 → (𝐵 · 𝐴) ∈ ℂ)
4 bj-bary1.x . . . . . . . . . 10 (𝜑𝑋 ∈ ℂ)
54, 2mulcld 10650 . . . . . . . . 9 (𝜑 → (𝑋 · 𝐴) ∈ ℂ)
63, 5subcld 10986 . . . . . . . 8 (𝜑 → ((𝐵 · 𝐴) − (𝑋 · 𝐴)) ∈ ℂ)
74, 1mulcld 10650 . . . . . . . 8 (𝜑 → (𝑋 · 𝐵) ∈ ℂ)
82, 1mulcld 10650 . . . . . . . 8 (𝜑 → (𝐴 · 𝐵) ∈ ℂ)
96, 7, 8addsub12d 11009 . . . . . . 7 (𝜑 → (((𝐵 · 𝐴) − (𝑋 · 𝐴)) + ((𝑋 · 𝐵) − (𝐴 · 𝐵))) = ((𝑋 · 𝐵) + (((𝐵 · 𝐴) − (𝑋 · 𝐴)) − (𝐴 · 𝐵))))
103, 5, 8sub32d 11018 . . . . . . . . 9 (𝜑 → (((𝐵 · 𝐴) − (𝑋 · 𝐴)) − (𝐴 · 𝐵)) = (((𝐵 · 𝐴) − (𝐴 · 𝐵)) − (𝑋 · 𝐴)))
111, 2bj-subcom 34722 . . . . . . . . . 10 (𝜑 → ((𝐵 · 𝐴) − (𝐴 · 𝐵)) = 0)
1211oveq1d 7150 . . . . . . . . 9 (𝜑 → (((𝐵 · 𝐴) − (𝐴 · 𝐵)) − (𝑋 · 𝐴)) = (0 − (𝑋 · 𝐴)))
1310, 12eqtrd 2833 . . . . . . . 8 (𝜑 → (((𝐵 · 𝐴) − (𝑋 · 𝐴)) − (𝐴 · 𝐵)) = (0 − (𝑋 · 𝐴)))
1413oveq2d 7151 . . . . . . 7 (𝜑 → ((𝑋 · 𝐵) + (((𝐵 · 𝐴) − (𝑋 · 𝐴)) − (𝐴 · 𝐵))) = ((𝑋 · 𝐵) + (0 − (𝑋 · 𝐴))))
159, 14eqtrd 2833 . . . . . 6 (𝜑 → (((𝐵 · 𝐴) − (𝑋 · 𝐴)) + ((𝑋 · 𝐵) − (𝐴 · 𝐵))) = ((𝑋 · 𝐵) + (0 − (𝑋 · 𝐴))))
16 0cnd 10623 . . . . . . 7 (𝜑 → 0 ∈ ℂ)
177, 16, 5addsubassd 11006 . . . . . 6 (𝜑 → (((𝑋 · 𝐵) + 0) − (𝑋 · 𝐴)) = ((𝑋 · 𝐵) + (0 − (𝑋 · 𝐴))))
187addid1d 10829 . . . . . . 7 (𝜑 → ((𝑋 · 𝐵) + 0) = (𝑋 · 𝐵))
1918oveq1d 7150 . . . . . 6 (𝜑 → (((𝑋 · 𝐵) + 0) − (𝑋 · 𝐴)) = ((𝑋 · 𝐵) − (𝑋 · 𝐴)))
2015, 17, 193eqtr2d 2839 . . . . 5 (𝜑 → (((𝐵 · 𝐴) − (𝑋 · 𝐴)) + ((𝑋 · 𝐵) − (𝐴 · 𝐵))) = ((𝑋 · 𝐵) − (𝑋 · 𝐴)))
211, 4, 2subdird 11086 . . . . . 6 (𝜑 → ((𝐵𝑋) · 𝐴) = ((𝐵 · 𝐴) − (𝑋 · 𝐴)))
224, 2, 1subdird 11086 . . . . . 6 (𝜑 → ((𝑋𝐴) · 𝐵) = ((𝑋 · 𝐵) − (𝐴 · 𝐵)))
2321, 22oveq12d 7153 . . . . 5 (𝜑 → (((𝐵𝑋) · 𝐴) + ((𝑋𝐴) · 𝐵)) = (((𝐵 · 𝐴) − (𝑋 · 𝐴)) + ((𝑋 · 𝐵) − (𝐴 · 𝐵))))
244, 1, 2subdid 11085 . . . . 5 (𝜑 → (𝑋 · (𝐵𝐴)) = ((𝑋 · 𝐵) − (𝑋 · 𝐴)))
2520, 23, 243eqtr4rd 2844 . . . 4 (𝜑 → (𝑋 · (𝐵𝐴)) = (((𝐵𝑋) · 𝐴) + ((𝑋𝐴) · 𝐵)))
2625oveq1d 7150 . . 3 (𝜑 → ((𝑋 · (𝐵𝐴)) / (𝐵𝐴)) = ((((𝐵𝑋) · 𝐴) + ((𝑋𝐴) · 𝐵)) / (𝐵𝐴)))
271, 4subcld 10986 . . . . 5 (𝜑 → (𝐵𝑋) ∈ ℂ)
2827, 2mulcld 10650 . . . 4 (𝜑 → ((𝐵𝑋) · 𝐴) ∈ ℂ)
294, 2subcld 10986 . . . . 5 (𝜑 → (𝑋𝐴) ∈ ℂ)
3029, 1mulcld 10650 . . . 4 (𝜑 → ((𝑋𝐴) · 𝐵) ∈ ℂ)
311, 2subcld 10986 . . . 4 (𝜑 → (𝐵𝐴) ∈ ℂ)
32 bj-bary1.neq . . . . . 6 (𝜑𝐴𝐵)
3332necomd 3042 . . . . 5 (𝜑𝐵𝐴)
341, 2, 33subne0d 10995 . . . 4 (𝜑 → (𝐵𝐴) ≠ 0)
3528, 30, 31, 34divdird 11443 . . 3 (𝜑 → ((((𝐵𝑋) · 𝐴) + ((𝑋𝐴) · 𝐵)) / (𝐵𝐴)) = ((((𝐵𝑋) · 𝐴) / (𝐵𝐴)) + (((𝑋𝐴) · 𝐵) / (𝐵𝐴))))
3626, 35eqtrd 2833 . 2 (𝜑 → ((𝑋 · (𝐵𝐴)) / (𝐵𝐴)) = ((((𝐵𝑋) · 𝐴) / (𝐵𝐴)) + (((𝑋𝐴) · 𝐵) / (𝐵𝐴))))
374, 31, 34divcan4d 11411 . 2 (𝜑 → ((𝑋 · (𝐵𝐴)) / (𝐵𝐴)) = 𝑋)
3827, 2, 31, 34div23d 11442 . . 3 (𝜑 → (((𝐵𝑋) · 𝐴) / (𝐵𝐴)) = (((𝐵𝑋) / (𝐵𝐴)) · 𝐴))
3929, 1, 31, 34div23d 11442 . . 3 (𝜑 → (((𝑋𝐴) · 𝐵) / (𝐵𝐴)) = (((𝑋𝐴) / (𝐵𝐴)) · 𝐵))
4038, 39oveq12d 7153 . 2 (𝜑 → ((((𝐵𝑋) · 𝐴) / (𝐵𝐴)) + (((𝑋𝐴) · 𝐵) / (𝐵𝐴))) = ((((𝐵𝑋) / (𝐵𝐴)) · 𝐴) + (((𝑋𝐴) / (𝐵𝐴)) · 𝐵)))
4136, 37, 403eqtr3d 2841 1 (𝜑𝑋 = ((((𝐵𝑋) / (𝐵𝐴)) · 𝐴) + (((𝑋𝐴) / (𝐵𝐴)) · 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1538  wcel 2111  wne 2987  (class class class)co 7135  cc 10524  0cc0 10526   + caddc 10529   · cmul 10531  cmin 10859   / cdiv 11286
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-po 5438  df-so 5439  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287
This theorem is referenced by:  bj-bary1  34726
  Copyright terms: Public domain W3C validator