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 | |- ( 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 | i2linesd | |- ( ph -> X = ( ( D - B ) / ( A - C ) ) ) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | i2linesd.1 | |- ( ph -> A e. CC ) |
|
2 | i2linesd.2 | |- ( ph -> B e. CC ) |
|
3 | i2linesd.3 | |- ( ph -> C e. CC ) |
|
4 | i2linesd.4 | |- ( ph -> D e. CC ) |
|
5 | i2linesd.5 | |- ( ph -> X e. CC ) |
|
6 | i2linesd.6 | |- ( ph -> Y = ( ( A x. X ) + B ) ) |
|
7 | i2linesd.7 | |- ( ph -> Y = ( ( C x. X ) + D ) ) |
|
8 | i2linesd.8 | |- ( ph -> ( A - C ) =/= 0 ) |
|
9 | 1 3 | subcld | |- ( ph -> ( A - C ) e. CC ) |
10 | 3 5 | mulcld | |- ( ph -> ( C x. X ) e. CC ) |
11 | 4 2 | subcld | |- ( ph -> ( D - B ) e. CC ) |
12 | 1 5 | mulcld | |- ( ph -> ( A x. X ) e. CC ) |
13 | 6 7 | eqtr3d | |- ( ph -> ( ( A x. X ) + B ) = ( ( C x. X ) + D ) ) |
14 | 12 2 13 | mvlraddd | |- ( ph -> ( A x. X ) = ( ( ( C x. X ) + D ) - B ) ) |
15 | 10 4 2 14 | assraddsubd | |- ( ph -> ( A x. X ) = ( ( C x. X ) + ( D - B ) ) ) |
16 | 10 11 15 | mvrladdd | |- ( ph -> ( ( A x. X ) - ( C x. X ) ) = ( D - B ) ) |
17 | 1 5 3 16 | joinlmulsubmuld | |- ( ph -> ( ( A - C ) x. X ) = ( D - B ) ) |
18 | 9 5 8 17 | mvllmuld | |- ( ph -> X = ( ( D - B ) / ( A - C ) ) ) |