I am in a college Circuits class and I think this example in the book is done incorrectly. If anyone can tell me different that would just as good and explain why. Here is a link to the problem and answer
The answer is incorrect. The voltage waveform is incorrect. The voltage must remain constant during intervals in which the slope of the current is constant. The voltage should be -2.5V between 2 and 6ms. The stored energy is also incorrect. At t3ms, i 6.25ma; so the energy stored at that time should be 6.25^2 X 2H / 2 39.06 micro-Joules.