an example problem for Joint Variation