# Homework Help: Finding mechanical energy of simple harmonic oscilator

1. Jul 25, 2015

### Dalip Saini

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

A simple harmonic oscillator consists of a block of mass 45 g attached to a spring of spring constant 240 N/m, oscillating on a frictionless surface. If the block is displaced 3.5 cm from its equilibrium position and released with an initial velocity of 2.5 m/s, what is its total energy?
• A

0.15 J

• B

The total energy varies during each cycle of oscillation.

• C

0.20 J

• D

0.29 J

• E

0.14 J

2. Relevant equations
E = 0.5kx^2+0.5mv^2

3. The attempt at a solution
I plugged in the values into the formula and I got 0.14J but the answer is 0.29J

2. Jul 25, 2015

### SammyS

Staff Emeritus
What values did you plug into the formula?

3. Jul 25, 2015

### Dalip Saini

k=240 N/m
x=0.035m
m=0.045
v = 2.5 m/s

4. Jul 25, 2015

### Dalip Saini

Actually I just plugged in the values again and I got the answer. Sorry about that