Answer:
a)
![\Delta S<0](https://img.qammunity.org/2020/formulas/chemistry/college/3fhjbdxb0ipybm61prl9b82tq0re6btd6v.png)
b) entropy of the sistem equal to a), entropy of the universe grater than a).
Step-by-step explanation:
a) The change of entropy for a reversible process:
![\delta S=(\delta Q)/(T)](https://img.qammunity.org/2020/formulas/chemistry/college/mg1cyb6wnrzz4q8il0tyqg37xh05xdqgcc.png)
![\Delta S=(Q)/(T)](https://img.qammunity.org/2020/formulas/chemistry/college/yrb5io6xv1mubosm02x00ax4ulzph2pgf5.png)
The energy balance:
![\delta U=[tex]\delta Q- \delta W](https://img.qammunity.org/2020/formulas/chemistry/college/sdbt79oppcypfye7o32sl2s6vf14kkhbng.png)
If the process is isothermical the U doesn't change:
![0=[tex]\delta Q- \delta W](https://img.qammunity.org/2020/formulas/chemistry/college/cilbgjqdhunhjdtktws759dq4owz8ywu2h.png)
![\delta Q= \delta W](https://img.qammunity.org/2020/formulas/chemistry/college/tomadnidsyzd2kncz7agkdnssbjhe0kzwr.png)
![Q= W](https://img.qammunity.org/2020/formulas/chemistry/college/5zmksm5fwqw4ac9o7puuthcki1tgupduew.png)
The work:
![W=\int_(V1)^(V2)P*dV](https://img.qammunity.org/2020/formulas/chemistry/college/s6bu4cjpo09n6767z9xur61ipeexf59lk3.png)
If it is an ideal gas:
![P=(n*R*T)/(V)](https://img.qammunity.org/2020/formulas/chemistry/college/bd7k1emanjx23c20ixcuvmc7kgtoxvwl5k.png)
![W=\int_(V1)^(V2)(n*R*T)/(V)*dV](https://img.qammunity.org/2020/formulas/chemistry/college/ycelomerdj5uebcufvyuyz0ith8v6pds6a.png)
Solving:
![W=n*R*T*ln(V2/V1)](https://img.qammunity.org/2020/formulas/chemistry/college/rxqs5nuw4otedqhs1ei78ydeaxxzuddg4q.png)
Replacing:
![\Delta S=(n*R*T*ln(V2/V1))/(T)](https://img.qammunity.org/2020/formulas/chemistry/college/fg319555c7po1lr0ubs4x8tm7mjri9b59g.png)
![\Delta S=n*R*ln(V2/V1)}](https://img.qammunity.org/2020/formulas/chemistry/college/8657umcyqumlv8mz5qjiww0ipafgd1hrax.png)
Given that it's a compression: V2<V1 and ln(V2/V1)<0. So:
![\Delta S<0](https://img.qammunity.org/2020/formulas/chemistry/college/3fhjbdxb0ipybm61prl9b82tq0re6btd6v.png)
b) The entropy change of the sistem will be equal to the calculated in a), but the change of entropy of the universe will be 0 in a) (reversible process) and in b) has to be positive given that it is an irreversible process.