Graph this system of equations and solve.
expr([ "+", [ "*", A1, "x" ], [ "*", B1, "y" ] ]) = C1
y = PRETTY_SLOPE_1 x + YINT_1
expr([ "+", [ "*", A2, "x" ], [ "*", B2, "y" ] ]) = C2
y = PRETTY_SLOPE_2 x + YINT_2
x =
X
y =
Y
6
Convert the first equation,
expr([ "+", [ "*", A1, "x" ], [ "*", B1, "y" ] ]) = C1
,
to slope-intercept form.
y = PRETTY_SLOPE_1 x + YINT_1
The y-intercept for the first equation is YINT_1
, so the first line
must pass through the point (0, YINT_1)
.
The slope for the first equation is decimalFraction( SLOPE_1, true, true )
. Remember that
the slope tells you rise over run. So in this case for every
abs( SLOPE_1_FRAC[0] )
"position" + ( abs( SLOPE_1_FRAC[0] ) !== 1 ? "s" : "" )
you move
down (because it's negative)
up
you must also move
SLOPE_1_FRAC[1]
"position" + ( abs( SLOPE_1_FRAC[1] ) !== 1 ? "s" : "" )
to the right.
SLOPE_1_FRAC[1]
"position" + ( abs( SLOPE_1_FRAC[1] ) !== 1 ? "s" : "" ) to the right and
abs( SLOPE_1_FRAC[0] )
"position" + ( abs( SLOPE_1_FRAC[0] ) !== 1 ? "s" : "" )
downup from
(0, YINT_1)
is
(SLOPE_1_FRAC[1], YINT_1 + SLOPE_1_FRAC[0])
.
Graph the blue line so it passes through
(0, YINT_1)
and
(SLOPE_1_FRAC[1], YINT_1 + SLOPE_1_FRAC[0])
.
Convert the second equation,
expr([ "+", [ "*", A2, "x" ], [ "*", B2, "y" ] ]) = C2
,
to slope-intercept form.
y = PRETTY_SLOPE_2 x + YINT_2
The y-intercept for the second equation is YINT_2
, so the second line
must pass through the point (0, YINT_2)
.
The slope for the second equation is decimalFraction( SLOPE_2, true, true )
. Remember that
the slope tells you rise over run. So in this case for every
abs( SLOPE_2_FRAC[0] )
"position" + ( abs( SLOPE_2_FRAC[0] ) !== 1 ? "s" : "" )
you move
down (because it's negative)
up
you must also move
SLOPE_2_FRAC[1]
"position" + ( abs( SLOPE_1_FRAC[1] ) !== 1 ? "s" : "" )
to the right.
SLOPE_2_FRAC[1]
"position" + ( abs( SLOPE_2_FRAC[1] ) !== 1 ? "s" : "" ) to the right and
abs( SLOPE_2_FRAC[0] )
"position" + ( abs( SLOPE_2_FRAC[0] ) !== 1 ? "s" : "" )
downup from
(0, YINT_2)
is
(SLOPE_2_FRAC[1], YINT_2 + SLOPE_2_FRAC[0])
.
Graph the green line so it passes through
(0, YINT_2)
and
(SLOPE_2_FRAC[1], YINT_2 + SLOPE_2_FRAC[0])
.
The solution is the point where the two lines intersect.
The lines intersect at (X, Y)
.