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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 2:Acids and Bases"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:1,Page no:38"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"OH=0.0025 #OH- concentration#\n",
"K=1*10**-14#water ionization constant#\n",
"\n",
"#Calculation\n",
"H=K/OH \n",
"H=H/10**-12 \n",
"\n",
"#Result\n",
"print\"The concentration of H+ ions is\",H*10**-12,\"M\" \n",
" \n",
"print\"\\nAs concentration of H+ is lesser than the concentration of OH-(0.0025) the cleaning solution will be basic in nature\" "
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The concentration of H+ ions is 4e-12 M\n",
"\n",
"As concentration of H+ is lesser than the concentration of OH-(0.0025) the cleaning solution will be basic in nature\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2,Page no:40"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"pH=7.3 #pH value of human blood\n",
"H=10**-pH \n",
"\n",
"#Calculation\n",
"H1=H\n",
"k=1*10**-14 #water ionization constant\n",
"OH=k/H \n",
"OH=OH\n",
"\n",
"#Result\n",
"print\"H+ concentration of human blood is %.e\"%H1,\"M\" \n",
"print\"\\nOH- concentration of human blood is %.3g\"%OH,\"M(in scientiifc form) or 0.2*10**-6 M\" "
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"H+ concentration of human blood is 5e-08 M\n",
"\n",
"OH- concentration of human blood is 2e-07 M(in scientiifc form) or 0.2*10**-6 M\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:3,Page no:41"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#Variable declaration\n",
"N1=0.2 #normality of HCl#\n",
"V1=25 #volume of HCl in ml#\n",
"M2=0.25 #molarity of NaOH#\n",
"N2=M2*1 #normality of NaOH#\n",
"V2=50 #volume of NaOH in ml#\n",
"\n",
"#Calculation\n",
"V=V1+V2 #volume of resulting solution#\n",
"N=(N2*V2-N1*V1)/V #normality of resulting solution#\n",
"\n",
"K=1*10**-14 #ionization constant of water#\n",
"H=K/N \n",
"H1=H/10**-13 \n",
"\n",
"pH=-math.log10(H) \n",
"\n",
"#Result\n",
"\n",
"print\"\\npH of the mixure will be\",pH"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"pH of the mixure will be 13.0\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:4,Page no:44"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"S=0.2 #salt concentration#\n",
"A=0.2 #acid concentration#\n",
"k=1.8*10**-5 #dissociation constant of acetic acid#\n",
"\n",
"import math\n",
"\n",
"#Calculation\n",
"pH=-math.log10(k)+math.log10(S/A) \n",
"v=1*10**-3 #amount of HCl added in lit#\n",
"M=1 #molarity of HCl added#\n",
"n=v*M #no of moles of HCl added per litre#\n",
"A1=A+n \n",
"S1=S-n \n",
"pH2=-math.log10(k)+math.log10(S1/A1) \n",
"p=pH-pH2 \n",
"\n",
"#Result\n",
"print\"pH of the buffer solution before adding HCl is\",round(pH ,4)\n",
"\n",
"print\"\\npH of the buffer solution after adding HCl is\",round(pH2,3)\n",
"print\"\\nAns: Change in pH is\",round(p,3)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"pH of the buffer solution before adding HCl is 4.7447\n",
"\n",
"pH of the buffer solution after adding HCl is 4.74\n",
"\n",
"Ans: Change in pH is 0.004\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.1,Page no:46"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#(a)#\n",
"#Variable declaration\n",
"N1=1.0/1000.0 #normality of HCl#\n",
"a=100.0 #percentage of ionization#\n",
"import math\n",
"\n",
"#Calculation\n",
"C1=N1*a/100.0 \n",
"pH1=-math.log10(C1) \n",
"N2=1.0/10000.0 #normality of NaOH solution#\n",
"C2=N2*a/10.0 \n",
"C2a=C2/10.0**-4 \n",
"k=10.0**-14 #dissociation constant of water#\n",
"H2=k/C2 \n",
"H2a=H2/10.0**-10 \n",
"pH2=-math.log10(H2) \n",
"N3=1.0/1000.0 #normality of NaOH solution#\n",
"C3=N3*a/1000.0 \n",
"C3a=C3/10.0**-3 \n",
"H3=k/C3 \n",
"H3a=H3/10.0**-11 \n",
"pH3=-math.log10(H3) \n",
"\n",
"#Result\n",
"print\"Ans(a)\\n(i)\\tThe pH of N/1000 HCl solution is\",pH1 \n",
"print\"\\n(ii)\\tThe pH of the N/10000 solution is\",pH2 \n",
"print\"\\n(iii)\\tThe pH of the N/1000 solution is\",pH3\n",
"\n",
"\n",
"\n",
"\n",
"#(b)#\n",
"#Variable declaration\n",
"N=0.1 #normality of given weak base#\n",
"pH=9.0 #pH of the base#\n",
"H=10.0**(-pH) \n",
"Ha=H/10.0**-9\n",
"\n",
"#Calculation\n",
"OH=k/H \n",
"OHa=OH/10.0**-5 \n",
"a1=OH/N \n",
"a1b=a1\n",
"\n",
"#Result\n",
"print\"\\nAns(b)\\nDegree of ionization of given weak base is\",a1b,\"=\",a1b*100,\"%\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Ans(a)\n",
"(i)\tThe pH of N/1000 HCl solution is 3.0\n",
"\n",
"(ii)\tThe pH of the N/10000 solution is 11.0\n",
"\n",
"(iii)\tThe pH of the N/1000 solution is 10.0\n",
"\n",
"Ans(b)\n",
"Degree of ionization of given weak base is 0.0001 = 0.01 %\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.2,Page no:47"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"N=0.002 #normality of acetic acid solution#\n",
"a=2.3 #percentage of ionization#\n",
"import math\n",
"\n",
"#Calculation\n",
"H=N*a/100.0 #concentration of H+ ion#\n",
"pH=-math.log10(H) \n",
"\n",
"#Result\n",
"print\"\\nAns(a)\\n pH value of acid solution is\",round(pH,4)\n",
"\n",
"\n",
"\n",
"#Part b(b)#\n",
"\n",
"#Variable declaration\n",
"N1=0.01 #normality of acetic acid solution#\n",
"a1=60.0 #percentage of ionization#\n",
"#ii#\n",
"N2=0.1 #normality of acetic acid solution#\n",
"a2=1.8 #percentage of ionization#\n",
"#iii#\n",
"N3=0.04 #normality of HNO3#\n",
"a3=100.0 #percentage of ionization#\n",
"#iv#\n",
"W=4.0 #weight of NaOH dissolved in water in grams#\n",
"EW=40.0 #equivalent weight weight of NaOH#\n",
"\n",
"\n",
"#Calculation\n",
"#i#\n",
"H1=N1*a1/100.0 #concentration of H+ ion#\n",
"pH1=-math.log10(H1) \n",
"#ii#\n",
"H2=N2*a2/100.0 #concentration of H+ ion#\n",
"pH2=-math.log10(H2) \n",
"#iii#\n",
"H3=N3*a3/100.0 \n",
"pH3=-math.log10(H3) \n",
"N4=0.0001 #normality of Hcl#\n",
"a4=100.0 #percentage of ionization#\n",
"H4=N4*a4/100.0 \n",
"pH4=-math.log10(H4) \n",
"N5=1.0 #normality of Hcl#\n",
"a5=100.0 #percentage of ionization#\n",
"H5=N5*a5/100.0 \n",
"pH5=-math.log10(H5) \n",
"N6=0.1 #normality of HNO3#\n",
"a6=100.0 #percentage of ionization#\n",
"OH6=N6*a6/100.0 \n",
"Kw=10.0**-14 \n",
"H6=Kw/OH6 \n",
"pH6=-math.log10(H6)\n",
"N7=0.001 #normality of NaOH#\n",
"a7=100.0 #percentage of ionization#\n",
"OH7=N7*a7/100.0 \n",
"Kw=10.0**-14 \n",
"H7=Kw/OH7 \n",
"pH7=-math.log10(H7) \n",
"#iv#\n",
"N8=W/EW \n",
"a8=100.0 #percentage of ionization#\n",
"OH8=N8*a8/100.0 \n",
"Kw=10.0**-14 \n",
"H8=Kw/OH8 \n",
"pH8=-math.log10(H8) \n",
"\n",
"\n",
"#Result\n",
"print'\\nAns(b)\\n(i) pH value of 0.01N acid solution is',round(pH1,4)\n",
"\n",
"print\"\\n(ii) pH value of decinormal acid solution is\",round(pH2 ,4)\n",
"\n",
"print\"\\n(iii) The pH of 0.04N HNO3 solution is\",round(pH3,3)\n",
"print\"\\n The pH of 0.0001N Hcl solution is\",pH4 \n",
"print\"\\n The pH of 1N Hcl solution is\",pH5 \n",
"print\"\\n The pH of 0.1N NaOH solution is \",pH6\n",
"print\"\\n The pH of 0.01N NaOH solution is\",pH7\n",
"\n",
"print\"\\n(iv) The pH of solution containing 4g NaoH solution is \",pH8 "
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"Ans(a)\n",
" pH value of acid solution is 4.3372\n",
"\n",
"Ans(b)\n",
"(i) pH value of 0.01N acid solution is 2.2218\n",
"\n",
"(ii) pH value of decinormal acid solution is 2.7447\n",
"\n",
"(iii) The pH of 0.04N HNO3 solution is 1.398\n",
"\n",
" The pH of 0.0001N Hcl solution is 4.0\n",
"\n",
" The pH of 1N Hcl solution is -0.0\n",
"\n",
" The pH of 0.1N NaOH solution is 13.0\n",
"\n",
" The pH of 0.01N NaOH solution is 11.0\n",
"\n",
"(iv) The pH of solution containing 4g NaoH solution is 13.0\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.3,Page no:48"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"N1=0.1 #normality of acetic acid#\n",
"a1=1.3 #percentage of ionization#\n",
"M1=10**-8 #molarity of hcl solution#\n",
"a=100 #percentage of ionization#\n",
"N2=0.05 #normality of Hcl#\n",
"a2=100 #percentage of ionization#\n",
"\n",
"#Calculation\n",
"#(a)#\n",
"H1=N1*a1/100 \n",
"#(b)#\n",
"H=M1*a/100 \n",
"pH=-math.log10(H) \n",
"#(c)#\n",
"pH2=-math.log10(N2*a2/100) \n",
"M3=0.05 #molarity os H2SO4#\n",
"a3=100 #percentage of ionization#\n",
"pH3=-math.log10(M3*a3/100.0) \n",
"\n",
"#Result\n",
"print\"(a).The hydrogen ion concentration of solution is %.2e\"%H1,\"g.ion/lit\"\n",
"print'\\n(b).The pH of the Hcl solution is',pH\n",
"print\"Theoretically the pH should be 8,however,the value will be close to 7 because H+ ions of water also plays a role\"\n",
"print\"\\n(c).The pH of 0.05 Hcl solution is\",round(pH2,3)\n",
"print\"The pH of 0.05M H2SO4 solution is\",round(pH3,3)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a).The hydrogen ion concentration of solution is 1.30e-03 g.ion/lit\n",
"\n",
"(b).The pH of the Hcl solution is 8.0\n",
"Theoretically the pH should be 8,however,the value will be close to 7 because H+ ions of water also plays a role\n",
"\n",
"(c).The pH of 0.05 Hcl solution is 1.301\n",
"The pH of 0.05M H2SO4 solution is 1.301\n"
]
}
],
"prompt_number": 16
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.4,Page no:49"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"H1=0.005 #H+ ion concentration of solution in g.ion/lit#\n",
"H2=3*10**-4 #H+ concentration of the solution#\n",
"k=10**-14 #dissociation constant of water#\n",
"OH3=0.1#hydroxyl concentration of a solution#\n",
"k4=1.8*10**-5#dissociation constant of acetic acid at 180C#\n",
"N4=0.1 #normality of acetic acid#\n",
"N5=0.01 #normality of acetic acid#\n",
"N6=0.001 #normality of acetic acid#\n",
"\n",
"#Calculation\n",
"\n",
"#Part-a#\n",
"pH1=-math.log10(H1) \n",
"\n",
"#Part-b#\n",
"pH2=-math.log10(H2) \n",
"pOH2=14-pH2 \n",
"OH2=k/H2\n",
"\n",
"#Part-c#\n",
"H3=k/OH3 \n",
"pH3=-math.log10(H3) \n",
"V4=1/N4 \n",
"\n",
"#Part-d#\n",
"a4=math.sqrt(k4*V4) #formula for degree of dissociation#\n",
"H4=N4*a4 #H+ ion concentration#\n",
"pH4=-math.log10(H4) \n",
"V5=1/N5 \n",
"a5=sqrt(k4*V5) #formula for degree of dissociation#\n",
"H5=N5*a5 #H+ ion concentration#\n",
"pH5=-math.log10(H5) \n",
"V6=1/N6 \n",
"a6=sqrt(k4*V6) #formula for degree of dissociation#\n",
"H6=N6*a6 #H+ ion concentration#\n",
"pH6=-math.log10(H6) \n",
"\n",
"\n",
"#Result\n",
"print\"\\n\\n(a) The pH value of solution whose H+ ion concentration is 0.005g.ion/lit is\",round(pH1 ,3)\n",
"print\"\\n(b) The pH of a solution in which H+ is 3*10**-4 is\",round(pH2 ,2)\n",
"print\"\\n pOH of the solution is\",round(pOH2,2)\n",
"print\"\\n OH- concentration for a solution is%.1e\"%OH2,\"M\"\n",
"print\"\\n(c) pH of the solution whose hydroxyl concentration is N/10g.ion/lit is\",pH3\n",
"print\"\\n(d) pH of 0.1N acetic acid solution is\",round(pH4,3)\n",
"print\"\\n pH of 0.01N acetic acid solution is\",round(pH5,4)\n",
"print\"\\n pH of 0.001N acetic acid solution is\",round(pH6,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"\n",
"(a) The pH value of solution whose H+ ion concentration is 0.005g.ion/lit is 2.301\n",
"\n",
"(b) The pH of a solution in which H+ is 3*10**-4 is 3.52\n",
"\n",
" pOH of the solution is 10.48\n",
"\n",
" OH- concentration for a solution is3.3e-11 M\n",
"\n",
"(c) pH of the solution whose hydroxyl concentration is N/10g.ion/lit is 13.0\n",
"\n",
"(d) pH of 0.1N acetic acid solution is 2.872\n",
"\n",
" pH of 0.01N acetic acid solution is 3.3724\n",
"\n",
" pH of 0.001N acetic acid solution is 3.8724\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.5,Page no:51"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"K1=10.0**-8 #dissociation constant of weak mono basic acid#\n",
"N1=0.01 #normality of the acid#\n",
"a2=4.0/100.0 #percentage of dissociation of acid at 20C#\n",
"N2=0.1 #normality of acid#\n",
"N3=0.1 #normality of HCl#\n",
"N4=1.0/50.0 #normality of HCl#\n",
"N5=0.01 #normality of H2SO4#\n",
"\n",
"#Calculation\n",
"#Part-a#\n",
"V1=1.0/N1 \n",
"a1=math.sqrt(K1*V1) #degree of dissociation for weak acids#\n",
"H1=N1*a1 #H+ concentration of the solution#\n",
"pH1=-math.log10(H1) \n",
"#Part-b#\n",
"V2=1.0/N2 \n",
"K2=(a2**2)/V2 \n",
"#Part-c#\n",
"pH3=-math.log10(N3) \n",
"pH4=-math.log10(N4) \n",
"pH5=-math.log10(N5) \n",
"\n",
"#Result\n",
"print\"(a) pH value of 0.01N solution of a weak mono basic acid is\",pH1 \n",
"print\"\\n(b) The dissociation constant of the acid is %.1e\"%K2\n",
"print\"\\n(c) The pH of the 0.1N HCl solution is\",pH3\n",
"print\"\\n The pH of the 1/50N HCl solution is\",round(pH4,1)\n",
"print\"\\n The pH of the 0.01N H2SO4 solution is \",pH5"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) pH value of 0.01N solution of a weak mono basic acid is 5.0\n",
"\n",
"(b) The dissociation constant of the acid is 1.6e-04\n",
"\n",
"(c) The pH of the 0.1N HCl solution is 1.0\n",
"\n",
" The pH of the 1/50N HCl solution is 1.7\n",
"\n",
" The pH of the 0.01N H2SO4 solution is 2.0\n"
]
}
],
"prompt_number": 9
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.6,Page no:52"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"V1=50.0 #volume of Hcl in ml#\n",
"V2=30.0 #volume of NaOH in ml#\n",
"N1=1.0 #normality of Hcl#\n",
"N2=1.0 #nomality of NaOH#\n",
"import math\n",
"\n",
"#Calculation\n",
"V=V1+V2 #total volume of mixure of solutions#\n",
"a=100.0 #percentage of ionization#\n",
"N=(N1*V1-N2*V2)/V \n",
"H=N*a/100 \n",
"pH=-math.log10(H) \n",
"\n",
"#Result\n",
"\n",
"print'\\nThe pH of resultant solution is',round(pH,3)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"The pH of resultant solution is 0.602\n"
]
}
],
"prompt_number": 10
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.7,Page no:52"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"N1=1.0/10.0 #normality of NaOH#\n",
"N2=1.0/20.0 #normality of HCl#\n",
"V1=1.0 #volume of NaOH in lit#\n",
"V2=1.0 #volume of HCl in lit#\n",
"import math\n",
"\n",
"#Calculation\n",
"V=V1+V2 #volume of resultant solution#\n",
"N=(N1*V1-N2*V2)/V \n",
"k=1.0*10.0**-14 #ionization constant of water#\n",
"H1=k/N \n",
"H=H1/10.0**-13 \n",
"pH=-math.log10(H1)\n",
"\n",
"#Result\n",
"print\"\\npH of the solution is\",round(pH,1)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"pH of the solution is 12.4\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.8,Page no:53"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"W=2.0 #weight of NaOH dissolved in water in grams#\n",
"M=40.0 #molecular weight of NaOH#\n",
"N=W/M #normality#\n",
"a=100.0 #percentage of ionization#\n",
"import math\n",
"\n",
"#Calculation\n",
"OH=N*a/100.0 #the OH- ion concentration of solution#\n",
"Kw=10.0**-14 \n",
"H=Kw/OH \n",
"pH=-math.log10(H) \n",
"\n",
"#Result\n",
"print'\\n The pH of the NaOH solution is',round(pH,1)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
" The pH of the NaOH solution is 12.7\n"
]
}
],
"prompt_number": 12
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.9,Page no:53"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"M=0.001 #molarity of benzoic acid#\n",
"N=M #normality of benzoic acid#\n",
"import math\n",
"\n",
"#Calculation\n",
"V=1/N \n",
"K=7.3*10**-5 #dissociation constant of benzoic acid#\n",
"a=math.sqrt(K*V) #since benzoic acid is very weak#\n",
"\n",
"#Result\n",
"H=N*a \n",
"print\"\\n The H+ concentration of the solution is%.3e\"%H,\"g.ion/litre\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
" The H+ concentration of the solution is2.702e-04 g.ion/litre\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.10,Page no:53"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"W=0.092 #weight of Formic acid per litre in grams#\n",
"M=46 #molecular weight of Formic acid#\n",
"import math\n",
"\n",
"#Calculation\n",
"N=W/M \n",
"V=1/N \n",
"K=2.4*10**-4 #Dissociation constant of Formic acid at 25C#\n",
"a=math.sqrt(K*V) #For weak acids#\n",
"\n",
"#Result\n",
"H=a*N \n",
"print'\\n The H+ concentration of the solution is %.3e'%H"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
" The H+ concentration of the solution is 6.928e-04\n"
]
}
],
"prompt_number": 14
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.11,Page no:54"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"k=2.5*10**-5 #dissociation constant of NH4OH#\n",
"N=1.0/100.0 #normality of NH4OH#\n",
"V=100\n",
"#Calculation\n",
"C=N #since volume of solution is one litre#\n",
"NH=C \n",
"NHOH=C \n",
"OH1=k*NHOH/NH \n",
"a=math.sqrt(k*V)\n",
"\n",
"#Result\n",
"print\"Cong of OH- ions in solution is\",a*N,\"g ion per litre\"\n",
"print\"\\nWhen 1/100 part of a g mol NH4Cl are dissolverd in a litre ,then ,\\nHydroxyl ion concentration in the solution is\",OH1\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Cong of OH- ions in solution is 0.0005 g ion per litre\n",
"\n",
"When 1/100 part of a g mol NH4Cl are dissolverd in a litre ,then ,\n",
"Hydroxyl ion concentration in the solution is 2.5e-05\n"
]
}
],
"prompt_number": 15
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.12,Page no:56"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"K=1.7*10**-5 #Dissociation constant of NH4OH#\n",
"N=0.01 #Normality of NH4OH solution#\n",
"\n",
"import math\n",
"\n",
"#Calculation\n",
"V=1.0/N \n",
"a=math.sqrt(K*V) #since a is very small#\n",
"OH=a*N \n",
"\n",
"NH4=0.05 #concentration of NH4+ in g.ion/lit#\n",
"NH4OH=0.01 #concentration of NH4OH in g.mol/lit#\n",
"OH2=K*NH4OH/NH4 \n",
"#Result\n",
"print\"\\nConcentration of OH- ions before addition of NH4Cl is %.2e\"%OH,\"g.ion/litre\"\n",
"print\"\\nThe concentration of hydroxyl ions after adding NH4Cl is\",OH2,\"g.ion/litre\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"Concentration of OH- ions before addition of NH4Cl is 4.12e-04 g.ion/litre\n",
"\n",
"The concentration of hydroxyl ions after adding NH4Cl is 3.4e-06 g.ion/litre\n"
]
}
],
"prompt_number": 16
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.13,Page no:56"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"k=1.8*10**-5 #dissociation constant of acetic acid at 18C#\n",
"N=0.25 #normality of acetic acid solution#\n",
"N2=0.25#normality os sodium acetate added#\n",
"import math\n",
"\n",
"#Calculation\n",
"#Part-a#\n",
"V=1/N \n",
"a=math.sqrt(k*V) #formula of degree of dissociation for weak acids#\n",
"H=N*a \n",
"#Part-b#\n",
"CH3COO=N2 \n",
"CH3COOH=N2 \n",
"H2=k*CH3COOH/CH3COO \n",
"H3=H2/10**-5 \n",
"a2=H2/N2 \n",
"a3=a2/10**-5 \n",
"\n",
"\n",
"#Result\n",
"print\"(a) 0.25 N acetic acid solution---\"\n",
"print\"\\tDegree of dissociation of acetic acid is %.3e\"%a\n",
"print\"\\tH+ concentration of the solution is %.3e\"%H,\"g.ion/litre\"\n",
"\n",
"print\"\\n(b) 0.25 N acetic acid solution containing 0.25N sodium acetate----\"\n",
"print\"\\tH+ ion concentration after adding sodium acetate is\",H3*10**-5\n",
"print\"\\tDegree of dissociation after adding sodium acetate is\",a3*10**-5"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) 0.25 N acetic acid solution---\n",
"\tDegree of dissociation of acetic acid is 8.485e-03\n",
"\tH+ concentration of the solution is 2.121e-03 g.ion/litre\n",
"\n",
"(b) 0.25 N acetic acid solution containing 0.25N sodium acetate----\n",
"\tH+ ion concentration after adding sodium acetate is 1.8e-05\n",
"\tDegree of dissociation after adding sodium acetate is 7.2e-05\n"
]
}
],
"prompt_number": 17
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.14,Page no:57"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"C1=0.06 #concentration od acetic acid in g.mol/lit#\n",
"C2=0.04 #concentration of sodium acetate in g.mol/li#\n",
"K=1.8*10**-5 #dissociation constant of acetic acid#\n",
"import math\n",
"\n",
"#Calculation\n",
"H=K*C1/C2 \n",
"pH=-math.log10(H) \n",
"\n",
"#Result\n",
"print\"\\nThe pH of solution is\",round(pH,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"The pH of solution is 4.5686\n"
]
}
],
"prompt_number": 18
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.15,Page no:58"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"M1=0.2 #molarity of acetic acid#\n",
"M2=0.2 #molarity of sodium acetate#\n",
"K=1.8*10**-5 \n",
"import math\n",
"\n",
"#Calculation\n",
"pH=-math.log10(K)+math.log10(M2/M1) #by using Henderson's equation#\n",
"\n",
"#Result\n",
"print\"The pH value of buffer solution is\",round(pH,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The pH value of buffer solution is 4.7447\n"
]
}
],
"prompt_number": 19
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.16,Page no:58"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"N=1.0/100.0 #normality of acetic acid#\n",
"V=1.0/N \n",
"k=1.8*10**-5 #dissociation constant of acetic acid#\n",
"import math\n",
"\n",
"#Calculation\n",
"\n",
"#Part-a#\n",
"a=math.sqrt(k*V) #formula of degree of dissociation for weak acids#\n",
"H=a*N \n",
"\n",
"#Part-b#\n",
"n=0.01 #sodium acetate added in moles to one litre of acetic acid solution#\n",
"CH3COO=n \n",
"CH3COOH=n \n",
"H1=k*CH3COOH/CH3COO \n",
"\n",
"\n",
"#Result\n",
"print\"(a) H+ concentration of N/100 acetic acid solution is %.2e\"%H,\"g ion/litre\"\n",
"print\"\\n(b) H+ ion concentration in the solution after adding the sodium acetate is\",H1,\"g.ions/litre\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) H+ concentration of N/100 acetic acid solution is 4.24e-04 g ion/litre\n",
"\n",
"(b) H+ ion concentration in the solution after adding the sodium acetate is 1.8e-05 g.ions/litre\n"
]
}
],
"prompt_number": 20
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.17,Page no:59"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"V=10 #volume of water in litres#\n",
"N1=0.10 #moles of HCN added in solution#\n",
"N2=0.10 #moles of NaCN added in solution#\n",
"K=7.2*10**-10 #dissociation constant of HCN#\n",
"CN=0.1 #CN- concentration#\n",
"HCN=0.1 #HCN concentration#\n",
"\n",
"#Calculation\n",
"H1=K*HCN/CN \n",
"H=H1/10**-10 \n",
"k=1*10**-14 #ionization constant of water#\n",
"\n",
"#Result\n",
"print\"H+ concentration in the solution is\",H*10**-10\n",
"OH=k/H1 \n",
"print\"\\nOH- concentration in the solution is %.1e\"%OH"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"H+ concentration in the solution is 7.2e-10\n",
"\n",
"OH- concentration in the solution is 1.4e-05\n"
]
}
],
"prompt_number": 21
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.18,Page no:59"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"K=1.7*10**-5 #dissociation constant of acid#\n",
"pH=3.77#pH value of buffer solution#\n",
"import math\n",
"\n",
"#Calculation\n",
"M=pH+math.log10(K) \n",
"N=10**M #ratio of salt to acid#\n",
"L=1/N\n",
"\n",
"#Result\n",
"print\"The ratio of salt to acid in buffer is\",round(L)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The ratio of salt to acid in buffer is 10.0\n"
]
}
],
"prompt_number": 22
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.19,Page no:59"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"k=1.8*10**-5 #dissociation constant of acetic acid#\n",
"M=0.01 #molarity of acetic acid#\n",
"N=M*1 #normality of acetic acid#\n",
"import math\n",
"\n",
"#Calculation\n",
"V=1/N \n",
"a=math.sqrt(k*V)#degree of dissociation for weak acids#\n",
"H1=a/V \n",
"H=H1/10**-4 \n",
"pH=-math.log10(H1) \n",
"\n",
"#Result\n",
"print\"Degree of dissociation of solution is %.2e\"%a \n",
"print\"pH of the solution is\",round(pH ,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Degree of dissociation of solution is 4.24e-02\n",
"pH of the solution is 3.3724\n"
]
}
],
"prompt_number": 24
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.20,Page no:60"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"N1=0.2#concentration of acetic acid in g.molecule/lit#\n",
"N2=0.25#concentration of sodium acetate in g.molecule/lit#\n",
"K=1.8*10**-5#ionization constant of acetic acid at room temparature#\n",
"import math\n",
"\n",
"#Calculation\n",
"pH1=-math.log10(K)+math.log10(N2/N1) \n",
"N=1.0#normality of HCl added#\n",
"V=0.5*10**-3#amount of HCl added in lit#\n",
"M=N*V\n",
"C1=N1+M#concentration of CH3COOH in moles/lit#\n",
"C2=N2-M#concentration of CH3COONa in moles/lit#\n",
"pH2=-math.log10(K)+math.log10(C2/C1)\n",
"pH=pH1-pH2 \n",
"\n",
"#Result\n",
"print\"pH value of the solution before adding HCl is\",round(pH1,4)\n",
"print\"\\nThe pH of the solution after adding HCl is\",round(pH2,4)\n",
"print\"\\nThe change of pH is\",round(pH,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"pH value of the solution before adding HCl is 4.8416\n",
"\n",
"The pH of the solution after adding HCl is 4.8397\n",
"\n",
"The change of pH is 0.002\n"
]
}
],
"prompt_number": 25
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.21,Page no:61"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"K=18*10**-6 #dissociation constant of NH4OH#\n",
"N1=0.1 #normality of NH4OH solution#\n",
"V=1.0/N1 \n",
"import math\n",
"\n",
"#Calculation\n",
"a=math.sqrt(K*V)#since a is very small#\n",
"OH=a/V \n",
"W=2.0#weight of added NH4Cl in grams#\n",
"M=53.0#molecular weight of NH4Cl#\n",
"C=W/M \n",
"C1=0.1 #concentration of NH4OH in g.mol/lit#\n",
"OH2=K*C1/C\n",
"CH3COO=0.02 #g ion per litre\n",
"CH3COOH=0.2 #g mol per litre\n",
"H_plus=K*CH3COOH/CH3COO\n",
"pH=math.log10(H_plus)\n",
"\n",
"\n",
"#Result\n",
"print\"\\nThe concentration of hydroxyl ion before adding of NH4Cl is %.3e\"%OH,\"g ion per litre\"\n",
"print\"\\nThe concentration of hydroxyl ion after adding 2g of NH4Cl is %.1e\"%OH2,\"g ion per litre\"\n",
"print\"NOTE:Calculation mistake in book.(wrongly written as 48.6*10**-5,it should be 10**-6\"\n",
"print \"\\npH is\",round(-pH,4)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"The concentration of hydroxyl ion before adding of NH4Cl is 1.342e-03 g ion per litre\n",
"\n",
"The concentration of hydroxyl ion after adding 2g of NH4Cl is 4.8e-05 g ion per litre\n",
"NOTE:Calculation mistake in book.(wrongly written as 48.6*10**-5,it should be 10**-6\n",
"\n",
"pH is 3.7447\n"
]
}
],
"prompt_number": 27
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example no:2.22,Page no:62"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"ly=11.92 #equivalent conductvity of 0.02acetic acid solution in mho at 20C#\n",
"lih=360 #the equivalent ionic conductance of an infinite dillution of hydrogen ion in mho#\n",
"lic=40 #of acetate ion#\n",
"li=lih+lic #of acetic acid#\n",
"import math\n",
"\n",
"#Calculation\n",
"a=ly/li #degree of dissociation#\n",
"N=0.02 #normality of acetic acid#\n",
"V=1/N \n",
"K=(a**2)/V \n",
"W=82 #mol.wt of CH3COONa#\n",
"M=8.2#amount of sodium acetate added in g per litre solution#\n",
"CH3COO=M/W \n",
"H=K*N/CH3COO \n",
"pH=-math.log10(H) \n",
"\n",
"#Result\n",
"print\"Dissociation constant of acetic acid is %.2e\"%K\n",
"print\"\\npH of the solution is\",round(pH,2)\n",
"print\"\\nNOTE:\\n(i)Calculation istake in calculation of K in book,exponent wrongly written as -6\"\n",
"print\"(ii)pH is wrongly calculated in book as 3.45\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Dissociation constant of acetic acid is 1.78e-05\n",
"\n",
"pH of the solution is 5.45\n",
"\n",
"NOTE:\n",
"(i)Calculation istake in calculation of K in book,exponent wrongly written as -6\n",
"(ii)pH is wrongly calculated in book as 3.45\n"
]
}
],
"prompt_number": 28
}
],
"metadata": {}
}
]
}
|