HP 50g HP 50g_user's manual_English_HDPSG49AEM8.pdf - Page 122

Solution of linear systems, Using the numerical solver for linear systems - linear equations

Page 122 highlights

Solution of linear systems A system of n linear equations in m variables can be written as a11⋅x1 + a12⋅x2 + a13⋅x3 + ...+ a1,m-1⋅x m-1 + a1,m⋅x m = b1, a21⋅x1 + a22⋅x2 + a23⋅x3 + ...+ a2,m-1⋅x m-1 + a2,m⋅x m = b2, a31⋅x1 + a32⋅x2 + a33⋅x3 + ...+ a3,m-1⋅x m-1 + a3,m⋅x m = b3, . . . ... . . . an-1,1⋅x1 + an-1,2⋅x2 + an-1,3⋅x3 + ...+ an-1,m-1⋅x m-1 + an-1,m⋅x m = bn-1, an1⋅x1 + an2⋅x2 + an3⋅x3 + ...+ an,m-1⋅x m-1 + an,m⋅x m = bn. This system of linear equations can be written as a matrix equation, An×m⋅xm×1 = bn×1, if we define the following matrix and vectors: ⎡a11 a12 L a1m ⎤ ⎡ x1 ⎤ ⎡b1 ⎤ A = ⎢⎢a21 ⎢M a22 M L O a2m ⎥ ⎥ M⎥ x = ⎢ ⎢ ⎢ x2 M ⎥ ⎥ ⎥ b = ⎢⎢b2 ⎢M ⎥ ⎥ ⎥ ⎢⎣an1 an2 L anm ⎥ ⎦ n×m , ⎢ ⎣ xm ⎥ ⎦ m×1 , ⎢⎣bn ⎥ ⎦ n×1 Using the numerical solver for linear systems There are many ways to solve a system of linear equations with the calculator. One possibility is through the numerical solver ,Ï. From the numerical solver screen, shown below (left), select the option 4. Solve lin sys.., and press @@@OK@@@. The following input form will be provide (right): To solve the linear system A⋅x = b, enter the matrix A, in the format [[ a11, a12 in the A: field. Also, enter the vector b in the B: field. When the X: field is highlighted, press @SOLVE. If a solution is available, the solution vector x will be shown in the X: field. The solution is also copied to stack level 1. Some examples follow. The system of linear equations Page 9-9

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Page 9-9
Solution of linear systems
A system of
n
linear equations in
m
variables can be written as
a
11
x
1
+ a
12
x
2
+ a
13
x
3
+ …+ a
1,m-1
x
m-1
+ a
1,m
x
m
= b
1
,
a
21
x
1
+ a
22
x
2
+ a
23
x
3
+ …+ a
2,m-1
x
m-1
+ a
2,m
x
m
= b
2
,
a
31
x
1
+ a
32
x
2
+ a
33
x
3
+ …+
a
3,m-1
x
m-1
+ a
3,m
x
m
= b
3
,
.
.
.
.
.
.
a
n-1,1
x
1
+ a
n-1,2
x
2
+ a
n-1,3
x
3
+ …+ a
n-1,m-1
x
m-1
+ a
n-1,m
x
m
= b
n-1
,
a
n1
x
1
+ a
n2
x
2
+ a
n3
x
3
+ …+ a
n,m-1
x
m-1
+ a
n,m
x
m
= b
n
.
This system of linear equations can be written as a matrix equation,
A
n
×
m
x
m
×
1
=
b
n
×
1
, if we define the following matrix and vectors:
,
,
Using the numerical solver for linear systems
There are many ways to solve a system of linear equations with the
calculator.
One possibility is through the numerical solver
‚Ï
.
From
the numerical solver screen, shown below (left), select the option
4.
Solve
lin sys..,
and press
@@@OK@@@
.
The following input form will be provide (right):
To solve the linear system
A
x
=
b
, enter the matrix
A
, in the format
[[ a
11
, a
12,
… ], … [….]] in the A: field.
Also, enter the vector
b
in the B:
field.
When the X: field is highlighted, press
@SOLVE
.
If a solution is
available, the solution vector
x
will be shown in the X: field. The solution is
also copied to stack level 1.
Some examples follow.
The system of linear equations
m
n
nm
n
n
m
m
a
a
a
a
a
a
a
a
a
A
×
=
L
M
O
M
M
L
L
2
1
2
22
21
1
12
11
1
2
1
×
=
m
m
x
x
x
x
M
1
2
1
×
=
n
n
b
b
b
b
M