Interesting... it appears that for tranformed variables, all the cost functions need to be in transformed space... groan
Notebook on introduction to Variational schemes
Examples revamped and ready to go into nbconvert