You are on page 1of 21

1.

MATRICES
EXAMPLE-1
Add the matrices A and B using spreadsheet.

SOLUTION

STEP-1 :- Declare two matrices in your spreadsheet by typing numbers in 3x3 grids.
STEP-2 :- Then select elements of matrix and name it A ( You can also add borders).
STEP-3 :- Repeat for B also.
STEP-4 :- Beside them in a box type D to represent result A+B.
STEP-5 :- Move the cursor in an empty box. Now in formula bar type =A+B.
Then press CRTL+SHIFT+ENTER.
And there is the result for A+B .

A B
11 7 8 15 15 9
9 12 3 12 16 17
15 13 13 8 4 17

26 22 17
D 21 28 20
23 17 30
EXAMPLE-2

Peform A-B using spreadsheet on matrices A, B.

SOLUTION

STEP-1 :- Follow steps 1,2,3 of Example 1 to create matrices A, B .


STEP-2 :- This time in a separate cell type E.
STEP-3 :- After which navigate to another empty cell. Type =A-B in formula bar.
STEP-4 :- You have to press CTRL+SHIFT+ENTER and then again ENTER just like we did
in previous example to get desired result.

A B
11 7 8 15 15 9
9 12 3 12 16 17
15 13 13 8 4 17

-4 -8 -1
E -3 -4 -14
7 9 -4
TER just like we did
EXAMPLE-3

Using spreadsheet perform scalar multiplication 3xA considering


matrix A.
SOLUTION

STEP-1 :- Create Matrix A and declare that as done in example 1.


STEP-2 :-Then in a separate cell type F.
STEP-3 :- Move cursor pointer to another empty cell and in formula bar type =3xA.
STEP-4 :- Then press CRTL+SHIFT+ENTER then ENTER.You will see the resultant matrix.

A
11 7 8
9 12 3
15 13 13

33 21 24
F 27 36 9
45 39 39
n 3xA considering
EXAMPLE-4

Consider matrices M, N and perform matrix multiplication MxN


on them using spreadsheets.

SOLUTION

STEP-1:- Start by declaring and naming two matrices as given M, N in spreadsheet.


STEP-2 :- Next in another cell type MxN. Move the cursor pointer to another empty cell.
STEP-3 :- In formula bar type =MMULT (M, N).
STEP-4 :- Then press CRTL+SHIFT+ENTER then ENTER.You will see the resultant matrix.

M N
3 33 10 12 11 11
2 23 9 4 2 1
2 12 18 8 32 4

248 419 106


M*N 188 356 81
216 622 106
ultiplication MxN
EXAMPLE-5

Using spreadsheet, find the inverse of matrix M.

SOLUTION

STEP-1 :- Declare and name matrix M.


STEP-2 :- In a separate celln type inv_M and then move cursor pointer to a separate cell.
STEP-3 :- In formula bar type +MINVERSE(M)
STEP-4 :- Then press CRTL+SHIFT+ENTER then ENTER.You will see the resultant matrix.

M
3 33 10
2 23 9
2 12 18

2.942 -4.56 0.644


inv_M -0.17 0.327 -0.07
-0.21 0.288 0.029
2. FUNCTIONS
EXAMPLE-1

For integers in range (-6,6) plot function f(x)=2x^2+1 using


a spreadsheet.

SOLUTION

STEP-1 :- In your spreadsheet make two columns x, f(x).


STEP-2 :- Fill the column x with atleast two values eg: -6, -5.
STEP-3 :- Then you can highlight these two cells and use the fill handle to extend this in the
cells below. You Will observe the values get autofilled. This trick saves time.
STEP-4 :- Now movethe cursor pointer to cellbelow f(x). In formula bar type =
2*POWER(A2,2)+1. Then press ENTER.
STEP-5 :- You will see the result for x=-6. To extend this for other values you can press
CTRL+ENTER or use fill handle and highlight cells below f(x).
STEP-6 :- Now you need to highlight both of these columns x, f(x) alongwith their values.
STEP-7 :- Now go to Insert => Chart => Select line plot. You will get tge required plot.

-6 73
80
-5 51
70
-4 33
-3 19 60
-2 9 50
-1 3 40
0 1
30
1 3
2 9 20
3 19 10
4 33 0
5 51 1 2 3 4 5 6 7 8 9 10 11 12 13
-10
6 73
x^2+1 using

e to extend this in the

ues you can press


EXAMPLE-2
For the given data plot the corresponding demand curve in the spreadsheet.
Take demand function to be f(x)=25000-0.5x, where x is a parameter.

SOLUTION

STEP-1 :- Since we are plotting the demand curve, we consider Buyer Demand price. In
spreadsheet make column of Buyer Demands and insert above values.
STEP-2 :- Make another column of price and navigate the cursor to the cell below it.
Then in formula bar write =25000-0.5*A2. Then press ENTER.
STEP-3 :- Expand this using fill handle for below cells also.
STEP-4 :- Select both columns along with all their rows and go to Insert => Chart => Line plot.
You will see the required plot.

Buyer Demand Price


25000 12500
20000 10000
15000 7500
10000 5000
5000 2500

30000

25000

20000

15000 Buyer Demand


Price
10000

5000

0
1 2 3 4 5
=> Chart => Line plot.
EXAMPLE-3
Plot a supply curve for corresponding data.
Take supply function to be f(x)=25000+0.5x, where x is a parameter

SOLUTION

STEP-1 :- Since this time we are plotting the supply curve, we consider the Car Dealer
Supply column and make a column for it.
STEP-2 :- Now in another column type Price .
STEP-3 :- Navigate to the cell below Price and in formula bar type =25000+0.5*A2 and
press ENTER.
STEP-4 :- Expand this result to below cells by using fill handle and table is ready.
STEP-5 :- Select both columns and go to Insert => Chart => Line plot. You will see the
required plot.

Car Dealer Supply Price


5000 27500
10000 30000
15000 32500
20000 35000
25000 37500

Price
40000
35000
30000
25000
20000
15000 Price

10000
5000
0
1 2 3 4 5
r the Car Dealer
EXAMPLE-4
Plot f(x)=logx with base 10, in spreadsheet and analyse plot for any maxima or minima.
Take values of x from set {0.05, 0.1 , ….. , 6.5}

SOLUTION

STEP-1 :- Again make two columns x, f(x) .


STEP-2 :- To insert values of x type first two x values and then highlight them. Using fill
handle expand that column for below cells also and
you will see values get autofilled.
STEP-3 :- Navigate to cell below f(x), in formula bar type =LOG10(A2). Press ENTER.
Using fill handle external this cell to below cells till where values of x are present.
STEP-4 :- Now values of x, f(x) are ready. Go to INSERT => CHART => LINE plot and
your plot will be ready.

x f(x)
5.3 0.72427587
5.35 0.728353782
8
5.4 0.73239376
7
5.45 0.736396502
5.5 0.740362689 6

5.55 0.744292983 5
5.6 0.748188027 4 f(x)
5.65 0.752048448 3 x
5.7 0.755874856 2
5.75 0.759667845
1
5.8 0.763427994
0
5.85 0.767155866
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
5.9 0.770852012
5.95 0.774516966
6 0.77815125
6.05 0.781755375
ght them. Using fill

2). Press ENTER.

=> LINE plot and


EXAMPLE-5
Using spreadsheet plot function f(x)=|x| and analyse plot for maxima-minima.
Use values of x.

SOLUTION

STEP-1 :- Again make two columns x, f(x) .


STEP-2 :- Then you can highlight these two cells and use the fi to extend this in the cells
below. You Will observe the values get autofilled.
STEP-3Navigate
:- to cell below f(x), then in formula bar type =ABS(A2) and press ENTER.
STEP-4 :- Now use fill handleto fill values till last value of x.
STEP-5 :- Select both columns and go to Insert => Chart => Line plot.

x f(x)
-6 6
-5 5
f(x) vs x
-4 4 7

-3 3 6
-2 2 5
-1 1
4
0 0
3 f(x)
1 1
2 2 2
3 3 1
4 4 0
5 5 1 2 3 4 5 6 7 8 9 10 11 12 13
6 6
maxima-minima.

nd this in the cells


EXAMPLE-6

Plot a graph using spreadsheet for f(x)=√x for values of x.


SOLUTION

STEP-1 :- Again make two columns x and f(x).


STEP-2 :- Fill the values of x ( type two values starting from 0 then 0.05). Extend these two lower
cells by highlighting two values and using fill handle for lower cells.
STEP-3 :- Navigate to cell below f(x) then in formula bar type =SQRT(A2), then press enter.
STEP-4 :- Use fill handle to expand this formula to below cells also upto x=6.05
STEP-5 :- Now we have both columns ready. So select both columns then go to Insert => Chart =>
Line plot. You will have required plot. Observe the plot. After analysing it we conclude
the point of minima is 0 and maxima does not exist.

x f(x)
0 0
0.05 0.223606798
0.1 0.316227766
0.15 0.387298335
0.2 0.447213595 f(x)
0.25 0.5 1
0.3 0.547722558 0.9
0.35 0.591607978 0.8
0.4 0.632455532 0.7
0.6
0.45 0.670820393
0.5
0.5 0.707106781 f(x)
0.4
0.55 0.741619849 0.3
0.6 0.774596669 0.2
0.65 0.806225775 0.1
0
0.7 0.836660027
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0.75 0.866025404
0.8 0.894427191
0.85 0.921954446
0.9 0.948683298
end these two lower

to Insert => Chart =>

You might also like