Text this: A study on thermodynamic potential energy for magnetostrictive system