Users' Mathboxes Mathbox for David A. Wheeler < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  i2linesd Structured version   Unicode version

Theorem i2linesd 33296
Description: Solve for the intersection of two lines expressed in Y = MX+B form (note that the lines cannot be vertical). Here we use deduction form. We just solve for X, since Y can be trivially found by using X. This is an example of how to use the algebra helpers. Notice that because this proof uses algebra helpers, the main steps of the proof are higher level and easier to follow by a human reader. (Contributed by David A. Wheeler, 15-Oct-2018.)
Hypotheses
Ref Expression
i2linesd.1  |-  ( ph  ->  A  e.  CC )
i2linesd.2  |-  ( ph  ->  B  e.  CC )
i2linesd.3  |-  ( ph  ->  C  e.  CC )
i2linesd.4  |-  ( ph  ->  D  e.  CC )
i2linesd.5  |-  ( ph  ->  X  e.  CC )
i2linesd.6  |-  ( ph  ->  Y  =  ( ( A  x.  X )  +  B ) )
i2linesd.7  |-  ( ph  ->  Y  =  ( ( C  x.  X )  +  D ) )
i2linesd.8  |-  ( ph  ->  ( A  -  C
)  =/=  0 )
Assertion
Ref Expression
i2linesd  |-  ( ph  ->  X  =  ( ( D  -  B )  /  ( A  -  C ) ) )

Proof of Theorem i2linesd
StepHypRef Expression
1 i2linesd.1 . . 3  |-  ( ph  ->  A  e.  CC )
2 i2linesd.3 . . 3  |-  ( ph  ->  C  e.  CC )
31, 2subcld 9950 . 2  |-  ( ph  ->  ( A  -  C
)  e.  CC )
4 i2linesd.5 . 2  |-  ( ph  ->  X  e.  CC )
5 i2linesd.8 . 2  |-  ( ph  ->  ( A  -  C
)  =/=  0 )
62, 4mulcld 9633 . . . 4  |-  ( ph  ->  ( C  x.  X
)  e.  CC )
7 i2linesd.4 . . . . 5  |-  ( ph  ->  D  e.  CC )
8 i2linesd.2 . . . . 5  |-  ( ph  ->  B  e.  CC )
97, 8subcld 9950 . . . 4  |-  ( ph  ->  ( D  -  B
)  e.  CC )
101, 4mulcld 9633 . . . . . 6  |-  ( ph  ->  ( A  x.  X
)  e.  CC )
11 i2linesd.6 . . . . . . 7  |-  ( ph  ->  Y  =  ( ( A  x.  X )  +  B ) )
12 i2linesd.7 . . . . . . 7  |-  ( ph  ->  Y  =  ( ( C  x.  X )  +  D ) )
1311, 12eqtr3d 2500 . . . . . 6  |-  ( ph  ->  ( ( A  x.  X )  +  B
)  =  ( ( C  x.  X )  +  D ) )
1410, 8, 13mvlraddd 33281 . . . . 5  |-  ( ph  ->  ( A  x.  X
)  =  ( ( ( C  x.  X
)  +  D )  -  B ) )
156, 7, 8, 14assraddsubd 33287 . . . 4  |-  ( ph  ->  ( A  x.  X
)  =  ( ( C  x.  X )  +  ( D  -  B ) ) )
166, 9, 15mvrladdd 33283 . . 3  |-  ( ph  ->  ( ( A  x.  X )  -  ( C  x.  X )
)  =  ( D  -  B ) )
171, 4, 2, 16joinlmulsubmuld 33291 . 2  |-  ( ph  ->  ( ( A  -  C )  x.  X
)  =  ( D  -  B ) )
183, 4, 5, 17mvllmuld 10397 1  |-  ( ph  ->  X  =  ( ( D  -  B )  /  ( A  -  C ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1395    e. wcel 1819    =/= wne 2652  (class class class)co 6296   CCcc 9507   0cc0 9509    + caddc 9512    x. cmul 9514    - cmin 9824    / cdiv 10227
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1619  ax-4 1632  ax-5 1705  ax-6 1748  ax-7 1791  ax-8 1821  ax-9 1823  ax-10 1838  ax-11 1843  ax-12 1855  ax-13 2000  ax-ext 2435  ax-sep 4578  ax-nul 4586  ax-pow 4634  ax-pr 4695  ax-un 6591  ax-resscn 9566  ax-1cn 9567  ax-icn 9568  ax-addcl 9569  ax-addrcl 9570  ax-mulcl 9571  ax-mulrcl 9572  ax-mulcom 9573  ax-addass 9574  ax-mulass 9575  ax-distr 9576  ax-i2m1 9577  ax-1ne0 9578  ax-1rid 9579  ax-rnegex 9580  ax-rrecex 9581  ax-cnre 9582  ax-pre-lttri 9583  ax-pre-lttrn 9584  ax-pre-ltadd 9585  ax-pre-mulgt0 9586
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-tru 1398  df-ex 1614  df-nf 1618  df-sb 1741  df-eu 2287  df-mo 2288  df-clab 2443  df-cleq 2449  df-clel 2452  df-nfc 2607  df-ne 2654  df-nel 2655  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3111  df-sbc 3328  df-csb 3431  df-dif 3474  df-un 3476  df-in 3478  df-ss 3485  df-nul 3794  df-if 3945  df-pw 4017  df-sn 4033  df-pr 4035  df-op 4039  df-uni 4252  df-br 4457  df-opab 4516  df-mpt 4517  df-id 4804  df-po 4809  df-so 4810  df-xp 5014  df-rel 5015  df-cnv 5016  df-co 5017  df-dm 5018  df-rn 5019  df-res 5020  df-ima 5021  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-riota 6258  df-ov 6299  df-oprab 6300  df-mpt2 6301  df-er 7329  df-en 7536  df-dom 7537  df-sdom 7538  df-pnf 9647  df-mnf 9648  df-xr 9649  df-ltxr 9650  df-le 9651  df-sub 9826  df-neg 9827  df-div 10228
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator