Metamath Proof Explorer


Theorem i2linesd

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)

Ref Expression
Hypotheses i2linesd.1 φA
i2linesd.2 φB
i2linesd.3 φC
i2linesd.4 φD
i2linesd.5 φX
i2linesd.6 φY=AX+B
i2linesd.7 φY=CX+D
i2linesd.8 φAC0
Assertion i2linesd φX=DBAC

Proof

Step Hyp Ref Expression
1 i2linesd.1 φA
2 i2linesd.2 φB
3 i2linesd.3 φC
4 i2linesd.4 φD
5 i2linesd.5 φX
6 i2linesd.6 φY=AX+B
7 i2linesd.7 φY=CX+D
8 i2linesd.8 φAC0
9 1 3 subcld φAC
10 3 5 mulcld φCX
11 4 2 subcld φDB
12 1 5 mulcld φAX
13 6 7 eqtr3d φAX+B=CX+D
14 12 2 13 mvlraddd φAX=CX+D-B
15 10 4 2 14 assraddsubd φAX=CX+D-B
16 10 11 15 mvrladdd φAXCX=DB
17 1 5 3 16 joinlmulsubmuld φACX=DB
18 9 5 8 17 mvllmuld φX=DBAC