Step-by-step explanation:
Given that,
Mass of block = 3 kg
Spring constant k=500 N/m
Friction coefficient = 0.6
Speed = 5 m/s
(a). We need to calculate the maximum compression of the spring
Using work energy theorem
![(1)/(2)mv^2+\mu* mgx=(1)/(2)kx^2](https://img.qammunity.org/2020/formulas/physics/college/6vo1fxbw0g0q24oq5j030s0de2l9rk1lz5.png)
Put the value into the formula
![(1)/(2)*3*(5)^2+0.6*3*9.8* x=(1)/(2)*500* x^2](https://img.qammunity.org/2020/formulas/physics/college/9w7f4r19lw7x2nu853wukd8kkn8yuyci1i.png)
![250x^2-17.64x-37.5=0](https://img.qammunity.org/2020/formulas/physics/college/a0eu7x5bygk4oo7heqig5gprowvckpewfu.png)
![x=-0.354\ m](https://img.qammunity.org/2020/formulas/physics/college/pc0311p8fw7weklhwiobfjddcz2da55fo8.png)
Negative sign shows the compression.
The maximum compression of the spring is 0.354 m.
(b). We need to draw the bar diagram
We need to calculate the initial energy
![E_(i)=(1)/(2)kx^2](https://img.qammunity.org/2020/formulas/physics/college/bueez5i41u1k53n2xb2eso696at6l314yx.png)
Put the value into the formula
![E_(i)=(1)/(2)*500*(0.354)^2](https://img.qammunity.org/2020/formulas/physics/college/bdqd0zslopb7t0h9q0nfvraaovtpmb8olb.png)
![E_(i)=31.329\ J](https://img.qammunity.org/2020/formulas/physics/college/2kr169h6ben6eele2nocvas7m2jypx41ci.png)
We need to calculate the final energy
Using formula of final energy
![E_(f)=(1)/(2)mv^2](https://img.qammunity.org/2020/formulas/physics/college/tst1ty36hdasmm7kezabmxinxqk7fq0gu9.png)
![E_(f)=(1)/(2)*3*(5)^2](https://img.qammunity.org/2020/formulas/physics/college/e8l98mt9btp6nthw1gxvrw54fg77rxudn8.png)
![E_(f)=37.5\ J](https://img.qammunity.org/2020/formulas/physics/college/yy6vas3mkp0d3hiuuri2l8fduh1shiagm4.png)
We need to calculate the work
Using formula of work
![W=Fx](https://img.qammunity.org/2020/formulas/mathematics/middle-school/xm4cth4xwa7b90r8ac94jhvg9xprfr02ip.png)
![W=\mu mg* x](https://img.qammunity.org/2020/formulas/physics/college/us1p7sgrbgnea5fxsu1g4ryqnrku4auayu.png)
Put the value into the formula
![W=0.6*3*9.8*(-0.354)](https://img.qammunity.org/2020/formulas/physics/college/12w1z6fobb3ul966hr3ac7qgqa42sr5ui8.png)
![W=-6.244\ J](https://img.qammunity.org/2020/formulas/physics/college/ehlvuapw5z6lzwtxnvyql90jpl8qpdo7u9.png)
Hence, This is the required solution.