The set of points given in coordinate form must be a function for the ideas covered in the following methods. This means that no two points in the set have the same first coordinate and the given number of points are distinct. All sets of points used in this Web page will be a function.
two distinct points will determine a straight line or linear function,
three distinct points will determine a quadratic function
four distinct points will determine a cubic function and so on.
In general, a matrix equation consisting of a constant matrix A times a variable matrix X equal to a constant matrix B may be solved for variable matrix X by taking the inverse of matrix A times matrix B.
In general:
(assume the three points do not lie on a straight line),
(assume the four points do not lie on a straight line or on a quadratic),
The methods used in the following examples assumes a knowledge of solving systems of equations using matrix solutions. Review this method in your algebra course if you need more information.
In practice, A^(-1), the inverse of constant matrix A, may not exist. Note that matrix multiplication is not commutative.
EXAMPLES:
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}
If points (-1, 1) and (0, 3) are given as points on a linear function:
then we can find a and b.
Replace x and y with the coordinate values given to get the system:
Note that b = b ( 1 ) in both equations.
The matrix equation for this system is:

Then finding the inverse of the coefficient matrix gives:

Therefore the solution of the matrix equation is found by:

The solution of the matrix equation is:

If points (-1, 1) and (0, 3) are given as points on a linear function then:
is the linear function.
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}
If points (1, 1), (2, 5) and (-1, -1) are given as points on a quadratic function:
then we can find a, b and c.
Note that FUNction 2. can be written:
Replace x and y with the coordinate values given to get the system:
Note that c = c ( 1 ) in each equation.
The matrix equation for this system is:

Then finding the inverse of the coefficient matrix gives:

Therefore the solution of the matrix equation is found by:

The solution of the matrix equation is:

If points (1, 1), (2, 5) and (-1, -1) are given as points on a quadratic function then:
is the quadratic function.
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}
If points (1, -3), (-1, -1), (2, -13) and (-2, -21) are given as points on a quadratic function:
then we can find a, b and c.
Note that FUNction 3. can be written:
Replace x and y with the coordinate values given to get the system:
Note that d = d ( 1 ) in each equation.
The matrix equation for this system is:

Then finding the inverse of the coefficient matrix gives:

Therefore the solution of the matrix equation is found by:

The solution of the matrix equation is:

If points (1, -3), (-1, -1), (2, -13) and (-2, -21) are given as points on a cubic function then:
is the cubic function.
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}
If points (-1, 10), (1, 4), (2, 10), (3, 22) and (4, 10) are given as points on a quartic function:
then we can find a, b, c, d and e.
Replace x and y with the coordinate values given to get the system:
The matrix equation for this system is:

Then finding the inverse of the coefficient matrix gives:

Therefore the solution of the matrix equation is found by:

The solution of the matrix equation is:

If points (-1, 10), (1, 4), (2, 10), (3, 22), (4, 10) and (9, 3372) are given as points on a quartic function then:
is the quartic function.
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}
If points (0, -288), (1, 12), (3, 0), (7, 192), (8, 1020) and (9, 3372) are given as points on a quintic function:
then we can find a, b, c, d, e and f.
Replace x and y with the coordinate values given to get the system:
The matrix equation for this system is:

Then finding the inverse of the coefficient matrix gives:

Therefore the solution of the matrix equation is found by:

The solution of the matrix equation is:

If points (0, -288), (1, 12), (3, 0), (7, 192), (8, 1020) and (9, 3372) are given as points on a quintic function then:
is the quintic function.
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}
A comment about notation for this n - points section. an is one symbol with the subscript n in line with a just because it is easer to type that way in Web pages. a(n-1) is one symbol with subscript (n-1) on a. an is read "a sub n" and if n = 2 then a2 is read "a sub 2" and a(n-1) is read "a sub 1" when you substitute the 2 for n in (n-1) to get (2-1) = 1.
If this is your first or second time using subscript notation then it is best if you copy the following section in your handwriting and move the superscrips, ^, up as exponents and the subscripts down in the normal subscript line.
If you do this writing you may find it easer to see and understand if your superscripts and subscripts are a bit smaller font size than the variable they are associated with.
If points (x1, y1), (x2, y2), (x3, y3) . . . and (xn, yn) are given as points on an (n-1) degree polynomial function:
then we can find an, a(n-1), . . ., a4, a3, a2 and a1.
Replace x and y with the coordinate values given to get the system:
Note that a1 = a1 ( 1 ) in each equation.
The matrix equation for this system is:

Then finding the inverse of the coefficient matrix gives:

Therefore the solution of the matrix equation is found by:

The solution of the matrix equation is:

If points (x1, y1), (x2, y2), (x3, y3) . . . and (xn, yn) are
given as points on an (n-1) degree polynomial function:
is the (n-1) degree polynomial function.
{CLICK HERE TO RETURN TO TOP OF PAGE TO SELECT AGAIN.}