The solution to a system can usually be found by graphing, but graphing may not always be the most precise or the most efficient way to solve a system.
Here is a system of equations:
{3p+q=712p−q=30
The graphs of the equations show an intersection at approximately 20 for p and approximately 10 for q.
Without technology, however, it is not easy to tell what the exact values are.
Instead of solving by graphing, we can solve the system algebraically. Here is one way.
If we subtract 3p from each side of the first equation, 3p+q=71, we get an equivalent equation: q=71−3p. Rewriting the original equation this way allows us to isolate the variable q.
Because q is equal to 71−3p, we can substitute the expression 71−3p in the place of q in the second equation. Doing this gives us an equation with only one variable, p, and makes it possible to find p.
2p−q2p−(71−3p)2p−71+3p5p−715ppp=30=30=30=30=101=5101=20.2original equationsubstitute 71−3p for qapply distributive propertycombine like termsadd 71 to both sidesdivide both sides by 5
Now that we know the value of p, we can find the value of q by substituting 20.2 for p in either of the original equations and solving the equation.
3(20.2)+q60.6+qqq=71=71=71−60.6=10.4
2(20.2)−q40.4−q-q-qqq=30=30=30−40.4=-10.4=-1-10.4=10.4
The solution to the system is the pair p=20.2 and q=10.4, or the point (20.2,10.4) on the graph.
This method of solving a system of equations is called solving by substitution, because we substituted an expression for q into the second equation.