need to account for a piecewise child when looking for an algebraic LHS variable.
need to keep track of which variable we think of as the variable of integration/independent variable since it will often not be defined in a component with math in it; only allowing one independent variable and throwing an error if another one is found
adding a bit more useful information to the output when something goes wrong