**1. The problem statement, all variables and given/known data**

A block of mass

**m**is moving at a speed of

**v**at a distance

_{0}**L**away from a spring of on a table with coefficient of friction

**μ**. How much does the block compress the spring? Determine the average power generated due to friction during the compression of the spring.

_{k}I'm not sure if there is a problem with the question or is it just my methods, but is there a spring constant

**K**needed to solve this problem? Also how would I solve for the average power?

**2. Relevant equations**

W+W

_{friction}=ΔKE+ΔU

_{spring}

W

_{friction}=F

_{friction}x=μ

_{k}mgx

**3. The attempt at a solution**

I split the problem into three sections. When the spring is compressed, right after the block reaches the end of the spring, and when the block is a distance

**L**away from the spring. From these positions I got two equations and combined them into this:

kx

^{2}-2μ

_{k}mgx=m(v

_{0}+2μ

_{k}gL)

Now if the

**k**was given, I would just solve for

**x**and that would be the compression of the spring. Am I missing something? or do I need a k to keep on going?

For the average power dissipated by friction, I would use the W

_{friction}=μ

_{k}mgx and then maybe integrate with respect to time or divide by time. Am I right in my assumption?