畫圖法就是把兩條方程式畫在圖上,兩線的交點就是解了。
如要解決以下聯立方程式︰
{
2
x
+
y
=
8
x
+
y
=
6
{\displaystyle {\begin{cases}2x+y=8\\x+y=6\end{cases}}}
首先要把要把它們畫在圖上︰
綠色為
2
x
+
y
=
8
{\displaystyle 2x+y=8\,}
,
紅色為
x
+
y
=
6
{\displaystyle x+y=6\,}
。
兩線的交點是︰
(
x
,
y
)
=
(
2
,
4
)
{\displaystyle (x,y)=(2,4)}
所以它的解為:
{
x
=
2
y
=
4
{\displaystyle {\begin{cases}x=2\\y=4\end{cases}}}