January 29, 2011

Plotting The Points of a Linear Equation

For any given linear equation, constructing its graph requires plotting at least two points of the given line.

When choosing points for construction, the following suggestions may be considered:

  • the points must be wide apart to include as many points as desired;
  • it's desirable to plot points whose x-coordinate and y-coordinate are whole numbers.

A point of a given line can be determined by substituting into its equation an arbitrary value of x or y. The resulting pair of x and y values correspond to the x and y coordinates of that point in the Cartesian coordinate system.

This is easy when your graph consists of just one line. But if you have several graphs and some of them, perhaps, consist of several lines, finding the points for all those lines can be an unenjoyable task.

When you want to construct several lines, this can be constructed more easily and quickly by calculating the points using spreadsheet formulas.

If you are new to spreadsheet formulas, you can just copy each formula from this web page and paste them directly into the spreadsheet cells.

These formulas are tested using Excel 2007. The formulas are very basic. I'm sure they will run in any version of Excel, or even in any spreadsheet program of your choice.

For simplicity, we will just use the constants of a linear equation in our spreadsheet calculations.

Given a linear equation in this form: Ax + By + C = 0,

  • A is the coefficient of x;
  • B is the coefficient of y;
  • C is the constant of the equation.


These are the headings to be entered in the first row:
celltext
A1A value
B1B value
C1C value
E1x value
F1y value


These are the values to be entered in cells E2 to E12:
cellx value
E25
E34
E43
E52
E61
E70
E8-1
E9-2
E10-3
E11-4
E12-5


These are the formulas to be entered in cells F2 to F12:
cellformula
F2=(-C2-E2*A2)/B2
F3=(-C2-E3*A2)/B2
F4=(-C2-E4*A2)/B2
F5=(-C2-E5*A2)/B2
F6=(-C2-E6*A2)/B2
F7=(-C2-E7*A2)/B2
F8=(-C2-E8*A2)/B2
F9=(-C2-E9*A2)/B2
F10=(-C2-E10*A2)/B2
F11=(-C2-E11*A2)/B2
F12=(-C2-E12*A2)/B2

Suppose we have the equation x - 2y = -5.

The transformed equation is x - 2y + 5 = 0.

The values we must enter for:

  • A is 1;
  • B is -2;
  • C is 5.
Here is how it might look like after entering the values.

snapshot-of-spreadsheet-containing-formulas-that-calculate-points-of-a-linear-equation

And here is the graph of the line:



Make sure that the option for calculation of the sheet is set to automatic so that every time you enter new values each cell with formula will be recalculated.

If you want a longer line, simply replace any values in the column E with a higher value.

That's it. These simple spreadsheet formulas will calculate the points of any given linear equations just as quickly as you want.

January 20, 2011

Systems of Linear Inequalities And Their Graphs

This set of problems is about the systems of:

  • two linear inequalities
  • three linear inequalities
  • four linear inequalities

The solid lines and the dashed lines are the loci of the points that satisfy the corresponding equalities.

The region where a given inequality holds true is indicated in black text.

The region where two or more inequalities hold true is indicated in yellow text.

Different color shades of the other regions simply indicate that different sets of corresponding inequalities apply to those regions.



Constructing the graphs of these inequalities requires at least two points for each of the corresponding equalities. After plotting, another two points on each side of the plotted line should be tested for the given inequality.

For those of you who want to draw the graphs the old fashioned way (that is, the paper-and-pencil method), finding the points can be a tedious task. This is where spreadsheet formulas can be a lot useful: you use spreadsheet formulas to calculate the points for you. So if you're unfamiliar with those spreadsheet formulas you might want to read my coming blog on simple spreadsheet formulas for calculating the x and y coordinates of points for a given linear equation.





Systems of Two Linear Inequalities

1. Draw the graph of the given system of inequalities:
  • 3x - 2y > -2
  • x + 3y < 5


graph-of-3x-minus-2y-greater-than-negative-2-and-x-plus-3y-less-than-5



2. Sketch the graph of the following system:
  • 3x - 4y < 2
  • 5x - y < 9


graph-of-3x-minus-4y-less-than-2-and-5x-minus-y-less-than-9



3. Sketch the graph of the following system:
  • x + 2y > -4
  • 3x + y < 3


graph-of-x-plus-2y-greater-than-negative-4-and-3x-plus-y-less-than-3



Systems of Three Linear Inequalities

1. Draw the graph of the given system of inequalities:
  • 2x + 3y > -2
  • x - 4y > -1
  • 5x + 2y < 17


graph-of-2x-plus-3y-greater-than-negative-2-and-x-minus-4y-greater-than-negative-1-and-5x-plus-2y-less-than-17



2. Draw the graph of the given system of inequalities:
  • x - 2y < -7
  • 2x - y < 4
  • x + y < 2


graph-of-x-minus-2y-less-than-negative-7-and-2x-minus-y-less-than-4-and-x-plus-y-less-than-2



3. Sketch the graph of the following system:
  • 3x - 5y < 7
  • 4x - y > -2
  • x + 4y > -9


graph-of-3x-minus-5y-less-than-7-and-4x-minus-y-greater-than-negative-2-and-x-plus-4y-greater-than-negative-9



System of Four Linear Inequalities

1. Draw the graph of the given system of inequalities:
  • 3x - 2y > -13
  • 2x + 3y < 6
  • x - 3y < 12
  • x + 6y > -21


graph-of-3x-minus-2y-greater-than-negative-13-and-2x-plus-3y-less-than-6-and-x-minus-3y-less-than-12-and-x-plus-6y-greater-than-negative-21