Graph the following system of inequalities:
\blue{expr([ "+", [ "*", A_1, "x" ], [ "*", B_1, "y" ] ]) STD_FORM_COMP_1 C_1}
\blue{y COMP_1 PRETTY_SLOPE_1 + YINT_1}
\green{expr([ "+", [ "*", A_2, "x" ], [ "*", B_2, "y" ] ]) STD_FORM_COMP_2 C_2}
\green{y COMP_2 PRETTY_SLOPE_2 + YINT_2}
Is (POINT[0], POINT[1])
a solution of the inequality?
Let's first graph the boundary lines.
If an inequality is in slope-intercept form, we can use it to
determine the slope and the y
-intercept of the line.
If an inequality isn't in slope-intercept form, let's convert it to this form.
The inequality signs in each inequality then tell us which side of the lines are to be shaded and whether the lines are solid or dashed.
Finally, we can see whether or not our given point lies in the shaded area representing both inequalities to check if it's a solution of the system.
The first inequality,
\blue{expr(["+", ["*", A_1, "x"], ["*", B_1, "y"]])STD_FORM_COMP_1C_1}
,
isn't in slope-intercept form. Let's convert it:
\qquad\begin{eqnarray}
expr(["+", ["*", A_1, "x"], ["*", B_1, "y"]]) &STD_FORM_COMP_1& C_1 \\
coefficient(B_1)y &STD_FORM_COMP_1& expr([ "+", [ "*", -A_1, "x" ], C_1 ]) \\
y &COMP_1& PRETTY_SLOPE_1 + YINT_1
\end{eqnarray}
Now we see the slope of the line is
\pink{fractionReduce(SLOPE_FRAC_1[0], SLOPE_FRAC_1[1])}
and its y
-intercept is \purple{(0, YINT_1)}.
The first inequality, \blue{y COMP_1 PRETTY_SLOPE_1 + YINT_1}
,
is in slope-intercept form: the slope of the line is
fractionReduce(SLOPE_FRAC_1[0], SLOPE_FRAC_1[1])
and its y
-intercept is (0, YINT_1).
According to the slope, we know the line also passes through
(0 \pink{+ SLOPE_FRAC_1[1]}, YINT_1 \purple{+ SLOPE_FRAC_1[0]})
= (SLOPE_FRAC_1[1], YINT_1 + SLOPE_FRAC_1[0])
.
The second inequality,
\green{expr(["+", ["*", A_2, "x"], ["*", B_2, "y"]])STD_FORM_COMP_2C_2}
,
isn't in slope-intercept form. Let's convert it:
\qquad\begin{eqnarray}
expr(["+", ["*", A_2, "x"], ["*", B_2, "y"]]) &STD_FORM_COMP_2& C_2 \\
coefficient(B_2)y &STD_FORM_COMP_2& expr([ "+", [ "*", -A_2, "x" ], C_2 ]) \\
y &COMP_2& PRETTY_SLOPE_2 + YINT_2
\end{eqnarray}
Now we see the slope of the line is
\pink{fractionReduce(SLOPE_FRAC_2[0], SLOPE_FRAC_2[1])}
and its y
-intercept is \purple{(0, YINT_2)}.
The second inequality, \green{y COMP_2 PRETTY_SLOPE_2 + YINT_2}
,
is in slope-intercept form: the slope of the line is
fractionReduce(SLOPE_FRAC_2[0], SLOPE_FRAC_2[1])
and its y
-intercept is (0, YINT_2).
According to the slope, we know the line also passes through
(0 \pink{+ SLOPE_FRAC_2[1]}, YINT_2 \purple{+ SLOPE_FRAC_2[0]})
= (SLOPE_FRAC_2[1], YINT_2 + SLOPE_FRAC_2[0])
.
According to the sign of the first inequality,
\blue{y COMP_1 PRETTY_SLOPE_1 + YINT_1}
,
its solution set lies below the boundary line and the line should be solid.
According to the sign of the first inequality,
\blue{y COMP_1 PRETTY_SLOPE_1 + YINT_1}
,
its solution set lies below the boundary line and the line should be dashed.
According to the sign of the first inequality,
\blue{y COMP_1 PRETTY_SLOPE_1 + YINT_1}
,
its solution set lies above the boundary line and the line should be solid.
According to the sign of the first inequality,
\blue{y COMP_1 PRETTY_SLOPE_1 + YINT_1}
,
its solution set lies above the boundary line and the line should be dashed.
According to the sign of the second inequality,
\green{y COMP_2 PRETTY_SLOPE_2 + YINT_2}
,
its solution set lies below the boundary line and the line should be solid.
According to the sign of the second inequality,
\green{y COMP_2 PRETTY_SLOPE_2 + YINT_2}
,
its solution set lies below the boundary line and the line should be dashed.
According to the sign of the second inequality,
\green{y COMP_2 PRETTY_SLOPE_2 + YINT_2}
,
its solution set lies above the boundary line and the line should be solid.
According to the sign of the second inequality,
\green{y COMP_2 PRETTY_SLOPE_2 + YINT_2}
,
its solution set lies above the boundary line and the line should be dashed.
We can see that the point
\red{(POINT[0], POINT[1])}
lies in the shaded area representing both inequalities,
which means that it is a solution of the system represented by the graph.
We can see that the point
\red{(POINT[0], POINT[1])}
does not lie in the shaded area representing both inequalities,
which means that it is not a solution of the system represented by the graph.