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 = A X + B
i2linesd.7 φ Y = C X + D
i2linesd.8 φ A C 0
Assertion i2linesd φ X = D B A C

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 = A X + B
7 i2linesd.7 φ Y = C X + D
8 i2linesd.8 φ A C 0
9 1 3 subcld φ A C
10 3 5 mulcld φ C X
11 4 2 subcld φ D B
12 1 5 mulcld φ A X
13 6 7 eqtr3d φ A X + B = C X + D
14 12 2 13 mvlraddd φ A X = C X + D - B
15 10 4 2 14 assraddsubd φ A X = C X + D - B
16 10 11 15 mvrladdd φ A X C X = D B
17 1 5 3 16 joinlmulsubmuld φ A C X = D B
18 9 5 8 17 mvllmuld φ X = D B A C