Valproic acid and Sodium valproate. Valproic acid and sodium valproate are two forms of the same medication. The only difference is in how they are prepared. These medicines are most commonly used in treating problems with the nervous system such as epilepsy, migraines and mood disorders.