Welcome to PF,
andrewwg94 said:
I basically found the KE due to the spring to be 20N. Then using that i calculated work lost due to friction. P. Energy at top of ramp = mgh. so i solved for h.
Did you mean 20 J (joules)? Energy is measured in joules, not Newtons. If so, this is correct. Your equation, which expresses the basic physical concept behind this problem (namely the conservation of energy) is also correct. Energy is conserved, hence:
KE
i + PE
i = KE
f + PE
f + W
fric
Initially, the object is not moving, hence KE
i = 0. All of the energy is in the form of elastic potential energy (energy stored in the spring). So PE
i = (1/2)kx
2 = 20 J.
At the very end, when the object has traveled as high as it is going to go, it is also not moving. Hence, KE
f = 0. All of these 20 joules have been converted into some combination of gravitational potential energy and heat (the latter being equal to the work done by friction).
20 J = mgh + W
fric
W
fric = F
fric * d
where F
fric is the frictional force, and d is the distance traveled along the ramp by the object. The distance d is related to h by simple trigonometry, which means that you can express everything in terms of one variable: h.
For the frictional force, F
fric = μF
N, where F
N is the normal force acting on the object. The normal force always acts perpendicular (i.e. normal) to the two surfaces that are in contact. So, in this case, the normal force is perpendicular to the ramp surface, which means that you need to use the geometry (specifically the inclination angle of the ramp) to figure out what it is. You can figure out what it is by noting that all forces perpendicular to the ramp have to balance each other out, so the normal force is just equal (in magnitude) to the component of the weight that acts perpendicular to the ramp.
So, it looks like you may have been doing well in the beginning, but then did not compute W
fric properly, at least based on what you posted above.