Professional Documents
Culture Documents
Applications Linear Systems PDF
Applications Linear Systems PDF
(xn, yn)
POLYNOMIAL CURVE FITTING
(x3, y3) Suppose n points in the xy-plane
sx 1, y1d, sx 2 , y2 d, . . . , sx n , yn d
represent a collection of data and you are asked to find a polynomial function of degree
(x2, y2) n21
x
psxd 5 a0 1 a1x 1 a2 x 2 1 . . . 1 an21 x n21
(x1, y1)
whose graph passes through the specified points. This procedure is called polynomial curve
Polynomial Curve Fitting
fitting. If all x-coordinates of the points are distinct, then there is precisely one polynomial
Figure 1.4 function of degree n 2 1 (or less) that fits the n points, as shown in Figure 1.4.
To solve for the n coefficients of psxd, substitute each of the n points into the
polynomial function and obtain n linear equations in n variables a0 , a1, a2 , . . . , an21.
a0 1 a1x 1 1 a2 x 12 1 . . . 1 an21 x 1n21 5 y1
a0 1 a1x 2 1 a2 x 22 1 . . . 1 an21 x 2n21 5 y2
.
.
.
a0 1 a1x n 1 a2 x n2 1 . . . 1 an21 x nn21 5 yn
Example 1 demonstrates this procedure with a second-degree polynomial.
y
12
(3, 12)
Polynomial Curve Fitting
10
Determine the polynomial psxd 5 a0 1 a1x 1 a2 x 2 whose graph passes through the
8 points s1, 4d, s2, 0d, and s3, 12d.
p(x)
6 SOLUTION
(1, 4)
4 Substituting x 5 1, 2, and 3 into psxd and equating the results to the respective y-values
2
produces the system of linear equations in the variables a0 , a1, and a2 shown below.
(2, 0)
x
ps1d 5 a0 1 a1s1d 1 a2s1d2 5 a0 1 a1 1 a2 5 4
1 2 3 4 ps2d 5 a0 1 a1s2d 1 a2s2d2 5 a0 1 2a1 1 4a 2 5 0
Figure 1.5 ps3d 5 a0 1 a1s3d 1 a2s3d2 5 a0 1 3a1 1 9a 2 5 12
The solution of this system is
a0 5 24, a1 5 228, and a2 5 8
so the polynomial function is
Simulation psxd 5 24 2 28x 1 8x 2.
Explore this concept further with
an electronic simulation available Figure 1.5 shows the graph of p.
at www.cengagebrain.com.
26 Chapter 1 Systems of Linear Equations
s2006, 3d, s2007, 5d, s2008, 1d, s2009, 4d, s2010, 10d.
SOLUTION
Because the given x-values are large, use the translation z 5 x 2 2008 to obtain
sz 1, y1d sz 2 , y2d sz 3 , y3d sz 4 , y4d sz 5 , y5 d
s22, 3d, s21, 5d, s0, 1d, s1, 4d, s2, 10d.
This is the same set of points as in Example 2. So, the polynomial that fits these points is
1
pszd 5 24 s24 2 30z 1 101z 2 1 18z 3 2 17z 4d
5 1 2 45 z 1 101 2 3 3 17 4
24 z 1 4 z 2 24 z .
Find a polynomial that relates the periods of the three planets that are closest to the Sun
to their mean distances from the Sun, as shown in the table. Then test the accuracy of
the fit by using the polynomial to calculate the period of Mars. (In the table, the mean
distance is given in astronomical units, and the period is given in years.)
SOLUTION
Begin by fitting a quadratic polynomial function
psxd 5 a0 1 a1x 1 a2 x 2
to the points
s0.387, 0.241d, s0.723, 0.615d, and s1, 1d.
The system of linear equations obtained by substituting these points into psxd is
a0 1 0.387a1 1 s0.387d2a2 5 0.241
a0 1 0.723a1 1 s0.723d2a2 5 0.615
a0 1 a1 1 a2 5 1.
The approximate solution of the system is
a0 < 20.0634, a1 < 0.6119, a2 < 0.4515
which means that an approximation of the polynomial function is
psxd 5 20.0634 1 0.6119x 1 0.4515x 2.
Using psxd to evaluate the period of Mars produces
ps1.524d < 1.918 years.
Note that the actual period of Mars is 1.881 years. Figure 1.7 compares the estimate
with the actual period graphically.
1.5
1.0
Earth
(1.000, 1.000)
Venus
0.5 (0.723, 0.615)
Mercury (0.387, 0.241)
x
0.5 1.0 1.5 2.0
Mean distance from the Sun
(in astronomical units)
Figure 1.7
28 Chapter 1 Systems of Linear Equations
Now, fitting a polynomial to the logarithms of the distances and periods produces the
linear relationship
ln y 5 23 ln x
shown in Figure 1.8.
ln y
ln y = 3 ln x
1 2
Mars
Earth
ln x
−2 Venus 1 2
−1
Mercury
−2
Figure 1.8
NETWORK ANALYSIS
Networks composed of branches and junctions are used as models in such fields
as economics, traffic analysis, and electrical engineering. In a network model,
you assume that the total flow into a junction is equal to the total flow out of the
junction. For instance, the junction shown in Figure 1.9 has 25 units flowing into
it, so there must be 25 units flowing out of it. You can represent this with the
linear equation
x 1 1 x 2 5 25.
x1
25
x2
Figure 1.9
Because each junction in a network gives rise to a linear equation, you can analyze
the flow through a network composed of several junctions by solving a system of
linear equations. Example 5 illustrates this procedure.
Analysis of a Network
20 Set up a system of linear equations to represent the network shown in Figure 1.10. Then
1 2 solve the system.
x2 x3 SOLUTION
x1 3 x4
Each of the network’s five junctions gives rise to a linear equation, as follows.
10 10
x1 1 x2 5 20 Junction 1
4 5 x3 2 x4 5 220 Junction 2
x5
x2 1 x3 5 20 Junction 3
Figure 1.10 x1 2 x 5 5 210 Junction 4
2x 4 1 x 5 5 210 Junction 5
The augmented matrix for this system is
3 4
1 1 0 0 0 20
0 0 1 21 0 220
0 1 1 0 0 20 .
1 0 0 0 21 210
0 0 0 21 1 210
Gauss-Jordan elimination produces the matrix
3 4
1 0 0 0 21 210
0 1 0 0 1 30
0 0 1 0 21 210 .
0 0 0 1 21 10
0 0 0 0 0 0
From the matrix above, you can see that
x 1 2 x 5 5 210, x 2 1 x 5 5 30, x3 2 x5 5 210, and x 4 2 x 5 5 10.
Letting t 5 x 5 , you have
x 1 5 t 2 10, x 2 5 2t 1 30, x 3 5 t 2 10, x 4 5 t 1 10, x 5 5 t
where t is any real number, so this system has infinitely many solutions.
30 Chapter 1 Systems of Linear Equations
You may be able to see how the type of network analysis demonstrated in Example 5
could be used in problems dealing with the flow of traffic through the streets of a city
REMARK or the flow of water through an irrigation system.
A closed path is a sequence An electrical network is another type of network where analysis is commonly
of branches such that the applied. An analysis of such a system uses two properties of electrical networks known
beginning point of the first as Kirchhoff’s Laws.
branch coincides with the end
point of the last branch. 1. All the current flowing into a junction must flow out of it.
2. The sum of the products IR (I is current and R is resistance) around a closed path
is equal to the total voltage in the path.
In an electrical network, current is measured in amperes, or amps sAd, resistance is
measured in ohms sVd, and the product of current and resistance is measured in
volts sV d. The symbol represents a battery. The larger vertical bar denotes
where the current flows out of the terminal. The symbol denotes resistance. An
arrow in the branch indicates the direction of the current.
3 4
1 21 1 0
3 2 0 7
0 2 4 8
produces the reduced row-echelon form
3 4
1 0 0 1
0 1 0 2
0 0 1 1
which means I1 5 1 amp, I2 5 2 amps, and I3 5 1 amp.
1.3 Applications of Systems of Linear Equations 31
Determine the currents I1, I2, I3, I4, I5, and I6 for the electrical network shown in
Figure 1.13.
17 V R 4 = 2 Ω
2 4
I4
10 V 14 V
Path 1 Path 3
Path 2
I1 I2 R 2 = 4Ω I5 I6 R 6 = 4Ω
R1 = 2Ω R 5 = 2Ω
R3 = 1Ω
1 3
I3
Figure 1.13
SOLUTION
Applying Kirchhoff’s first law to the four junctions produces
I1 1 I3 5 I2 Junction 1
I1 1 I4 5 I2 Junction 2
I3 1 I6 5 I5 Junction 3
I4 1 I6 5 I5 Junction 4
You now have the following system of seven linear equations in the variables I1, I2, I3,
I4, I5, and I6.
I1 2 I2 1 I3 5 0
I1 2 I2 1 I4 5 0
I3 2 I5 1 I6 5 0
I4 2 I5 1 I6 5 0
2I1 1 4I2 5 10
4I2 1 I3 1 2I4 1 2I5 5 17
2I5 1 4I6 5 14
The augmented matrix for this system is
3 4
1 21 1 0 0 0 0
1 21 0 1 0 0 0
0 0 1 0 21 1 0
0 0 0 1 21 1 0 .
2 4 0 0 0 0 10
0 4 1 2 2 0 17
0 0 0 0 2 4 14
Using Gauss-Jordan elimination, a graphing utility, or a software program, solve this
system to obtain
I1 5 1, I2 5 2, I3 5 1, I4 5 1, I5 5 3, and I6 5 2
meaning I1 5 1 amp, I2 5 2 amps, I3 5 1 amp, I4 5 1 amp, I5 5 3 amps, and I6 5 2 amps.