Energy of String

exercise 3_2314