Some people are just like me, I’m not an artist, and really don’t know how to draw. But drawing linear equations is something that anyone can learn and do!
To explain how to illustrate different equations on a coordinate system, we have to learn how to rewrite equations in a specific way.
In this example, we are going to use the most common two variables: \(x\) and \(y\).
How does the variable \(y\) relate to the variable \(x\) in the following equation?
$$2y - 5 = 6x + 3$$
We could rewrite this equation with algebra:
$$2y - 5 = 6x + 3$$
$$2y = 6x + 8$$
$$\mathbf{y = 3x + 4}$$
Or if we want it written as a function:
$$\mathbf{y(x) = 3x + 4}$$
By rewriting the equation like this, we could now express the equation as y in terms of x, or that y is a function of x. In other words, \(y\) is always \(4\) greater than \(x\) times \(3\).
Because both \(x\) and \(y\) are variables, there is always a variable that is dependent on what value the other variable has.
And by knowing the value of either \(x\) or \(y\), we could solve the corresponding variable to the equation algebraically by substituting that variable with the known value in the function.
What is \(y\) if \(x\) is 100 in \(y(x) = 3x + 4 \)?
And what is \(x\) if \(y\) is 91 in \(y(x) = 3x + 4 \)?
We can calculate \(y\) by substituting \(x\) with \(100\):
$$y(x) = 3x + 4 \text{ and } x = 100$$
$$y(100) = 3 \cdot (100) + 4$$
$$y(100) = 304$$
We could also solve it the other way around. If we know that \(y\) is \(91\) :
$$y(x) = 3x + 4 \text{ and } y = 91$$
$$91 = 3x + 4$$
$$87 = 3x$$
$$x = 29$$
With the help of the coordinate system, we can easily illustrate relations between different variables.
If a banana costs \(SEK 5 \) each, then we could first write the equation as the following function:
$$ y(x) = 5x $$
By looking at this function, we could say that the total price is always 5 times larger than the number of bananas. And because we wrote the function as y in terms of $x$: How much you pay depends on the number of bananas you buy, or $y$ is a function of $x$.
We could also draw a line on the coordinate system to show the relation between the price of the bananas and the number of bananas we have bought. Later in this lesson, we are going to learn where and how the line is drawn.
We use the $x$-axis for the number of bananas we want to buy, and the $y$-axis for the total price.
This straight line is called a linear equation. With this, we can easily find the corresponding cost for each number of bananas.
If we want to know how much \(7 \) bananas costs in total, we vertically draw a straight line from the number \(7 \) on the x-axis, until we arrive to the linear equation, and then continue by drawing a horizontal line until we reach the $y$-axis. Then we read off the number line to know the price of \(7 \) bananas.
In this case, the price for \(7 \) bananas were \(SEK 35\).
This works because every point on this linear equation is a solution to the equation \(y = 5x\).
For example, \((0, 0)\), \((3, 15)\) and \((7, 35)\).
We can also calculate the value of the graph where it intersects with the axis, known as intercepts.
If we want to calculate the $y$-coordinate of where the graph intersects with the $y$-axis, we could set \( x = 0\). This is the $y$-intercept.
Likewise, if we want to calculate the $x$-coordinate of where the graph intersects with the $x$-axis, we could set \(y = 0\). This is the $x-intercept.