In this educational academic paper we will derive the equations of motion for a wedge in contact by friction with spherical object. This object is connected to a spring. We will approach the problem with Newtonian mechanics and compare this result with a Lagrangian approach and we will show that they with some restriction leads to the same result. The results from the equations of motion will be dicussed. The equations will then be numerically simulated for a number of different cases and the results will be analyzed.