Professional Documents
Culture Documents
Caringal Activity 9 Application of System of Linear Equation
Caringal Activity 9 Application of System of Linear Equation
Caringal Activity 9 Application of System of Linear Equation
Honor Pledge:
1. Objective(s):
4. Procedure:
Activity 1.
Polynomial curve fitting The net profits (in millions of Pesos) for instant powdered milk
drink from 2010 to 2017 are shown in the table
To identify all of the given information from the problem, we will let z = (x – 2013). This
procedure is crucial, for step two, where we will setup a system equation to fit the data for each and
every specified years.
let z = (x – 2013)
(2010-2013) = -3
(2011-2013) = -2
(2012-2013) = -1
(2013-2013) = 0
(2014-2013) = 1
(2015-2013) = 2
(2016-2013) = 3
(2017-2013) = 4
We have a total of 8 system of equations, we will substitute each of them to p(z) to form a
Matrix to find the approximate solution of the system.
If (-3,9942)
Then 9421 = (𝑎 + 𝑎 (−3) + 𝑎 (−3) + 𝑎 (−3) + 𝑎 (−3) + 𝑎 (−3) + 𝑎 (−3) + 𝑎 (−3) )
9421 = (𝒂𝟎 − 𝟑𝒂𝟏 + 𝟗𝒂𝟐 − 𝟐𝟕𝒂𝟑 + 𝟖𝟏𝒂𝟒 − 𝟐𝟒𝟑𝒂𝟓 + 𝟕𝟐𝟗𝒂𝟔 − 𝟐𝟏𝟖𝟕𝒂𝟕)
If (-2, 10003)
Then 10003 = (𝑎 + 𝑎 (−2) + 𝑎 (−2) + 𝑎 (−2) + 𝑎 (−2) + 𝑎 (−2) + 𝑎 (−2) + 𝑎 (−2) )
10003 = ( 𝒂𝟎 − 𝟐𝒂𝟏 + 𝟒𝒂𝟐 − 𝟖𝒂𝟑 + 𝟏𝟔𝒂𝟒 − 𝟑𝟐𝒂𝟓 + 𝟔𝟒𝒂𝟔 − 𝟏𝟐𝟖𝒂𝟕)
If (-1, 10384)
Then 10384 = (𝑎 + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) )
10384 = (𝒂𝟎 − 𝒂𝟏 + 𝒂𝟐 − 𝒂𝟑 + 𝒂𝟒 − 𝒂𝟓 + 𝒂𝟔 − 𝒂𝟕 )
If (0, 10384)
Then 10384 = (𝑎 + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) )
10384 = ( 𝒂𝟎 )
If (1, 10384)
Then 10384 = (𝑎 + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) )
10384 = (𝒂𝟎 + 𝒂𝟏 + 𝒂𝟐 + 𝒂𝟑 + 𝒂𝟒 + 𝒂𝟓 + 𝒂𝟔 + 𝒂𝟕 )
If (2, 10384)
Then 10384 = (𝑎 + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) )
10384 = ( 𝒂𝟎 + 𝟐𝒂𝟏 + 𝟒𝒂𝟐 + 𝟖𝒂𝟑 + 𝟏𝟔𝒂𝟒 + 𝟑𝟐𝒂𝟓 + 𝟔𝟒𝒂𝟔 + 𝟏𝟐𝟖𝒂𝟕)
If (3, 10384)
Then 10384 = (𝑎 + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) )
10384 = ( 𝒂𝟎 + 𝟑𝒂𝟏 + 𝟗𝒂𝟐 + 𝟐𝟕𝒂𝟑 + 𝟖𝟏𝒂𝟒 + 𝟐𝟒𝟑𝒂𝟓 + 𝟕𝟐𝟗𝒂𝟔 + 𝟐𝟏𝟖𝟕𝒂𝟕)
If (4, 10384)
Then 10384 = (𝑎 + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) + 𝑎 (−1) )
10384 = ( 𝒂𝟎 + 𝟒𝒂𝟏 + 𝟏𝟔𝒂𝟐 + 𝟔𝟒𝒂𝟑 + 𝟐𝟓𝟔𝒂𝟒 + 𝟏𝟎𝟐𝟒𝒂𝟓 + 𝟒𝟎𝟗𝟔𝒂𝟔 + 𝟏𝟔𝟑𝟖𝟒𝒂𝟕 )
3.) Using MATLAB find the approximate solution of the system.
a. Find all the systems of linear equations involved
b. Write the system in matrix form to find the unknown coefficients.
c. Using MATLAB input the augmented matrix, name the matrix as A.
d. Find the reduced row echelon form of the matrix using the command “rats(rref(A))”.
The last column of the reduced row echelon form will be the values of a0, a1, a2 to a7.
Augmented Matrix
1 0 0 0 0 0 0 0 10526
0 1 0 0 0 0 0 0 3863 / 11
0 0 1 0 0 0 0 0 1326 / 7
0 0 0 1 0 0 0 0 -1729 / 16
0 0 0 0 1 0 0 0 -447 / 7
0 0 0 0 0 1 0 0 191 / 6
0 0 0 0 0 0 1 0 38 / 7
0 0 0 0 0 0 0 1 -47 / 24
4.) Write the polynomial function model. ( coefficients are in fraction )
z = (x – 2013),
To predict the value of net profit for following years. Z = ( x – 2013 ). Where x is the year
to predict net profit. For example, 2020 – 2013 = 7. 7 will be substitute to all of the z on
No.It is okay to reference for polynomial function model to predict future net profits. But
in reality, profits are unpredictable. Just like how the table of predicting future net
profits, all of it is in negative. Once they see this, there is a high chance that the owner
of this business will shut it down immediately.The polynomial function model finds a
sequence within the preciding profit of the year table. In reality, there will be ups and
down of having profits, it is not always to be progressing. So it is not really a good way
to put your faith on using polynomial function model to predict future net profits. Use it
just a reference, but don’t use it for predicting your future net profits.
The flow of traffic (in vehicles per hour) through a network of street is shown in figure 1.
Figure 1.0
Junction 1: x1 + x3 = 600
Junction 2: x1-x2-x4 =0
Junction 3: x2 + x5 = 500
Junction 4: x3+ x6 = 600
Junction 5: x4 – x6 + x7 = 0
Junction 6: x5 + x7 = 500
2. Using MATLAB solve for the traffic flows x1, x2, x3, x4, x5, x6,and x7
a. Write the linear equations involve in each junction.
b. Write the linear system of equation in augmented matrix form.
c. Input the augmented matrix form in MATLAB and name as “A”.
d. Find the reduce row echelon form of the augmented matrix using the
command “rref(A)” then press enter.
e. To solve the values of x1 to x7 use Back-Substitution and use parameter
(t, s, u).
Augmented Matrix
1 0 0 0 0 -1 0 0
0 1 0 0 0 0 -1 0
0 0 1 0 0 1 0 600
0 0 0 1 0 -1 1 0
0 0 0 0 1 0 1 500
0 0 0 0 0 0 0 0
by using the rref(B). the result was shown below
Conclusion:
In Conclusion, the students were able to identify, solve, and show the solution to the
given problem. The student were also able to solve homogenous system of linear
equation, set up all of the data that was need for predicting the flow of vehicles, and the
net profit of a company. The student uses matlab to prevent any further calculation error
that could be foresaw from manually computing a problem. Furthermore, the intended
learning outcomes were satisfied by the student. There were also difficulties that the
student were encountered, but was eventually solved by the student. The student also
used different kind of reference to check and answer the given problem.