From my understanding, most forces that are conservative are of the form
$$\vec F = \hat i F(x)$$
Which means the force is only a function of one variable, which means the work done of the force in any direction $dr$ is independent of the path taken, as the integral is a function of $x$ only. For example, let $F(x) = x$, and $\vec {dr} = dx \hat i + dy \hat j$.
$$\therefore W = \int_{r_1}^{r_2}\vec F \cdot \vec dr = \int_{x_1}^{x_2}x\ dx \ + 0$$
$$W = \left[x^2/2\right]_{x_1}^{x_2}$$
So the work done only matters on the distance taken in only the direction along the force. However, is this force conservative?
$$\vec F = \hat i F(x) + \hat j F(y)$$
Let $F(x) = x$ and $F(y) = y$, then the work done is:
$$W = \int_{x_1}^{x_2} x \ dx + \int_{y_1}^{y_2} y \ dy $$
$$W = \left[x^2/2\right]_{x_1}^{x_2} + \left[y^2/2\right]_{y_1}^{y_2}$$
Here I think this is in indeed a conservative force because there is no integral with a function of a variable that isn't directly able to be integrated.
But, I think my lack of sureness with the previous statement above can be highlighted with the following example, where the next force I consider is not a conservative force.
$$F = \hat j F(x,y) = \hat j xy^2$$
$$W = \int_{y_1}^{y_2} xy^2\ dy$$
Here, the work done depends on how $x$ depends on $y$, which means the path taken does indeed matter.
(Note: I originally was going to want to express the work vector as a vector with component $\hat i$ instead of $\hat j$ to have an expression for work as $\int_{x_1}^{x_2} xy^2 \ dx$ and then $y$ would have to be expressed as a function of $x$ which sounds more intuitive to me but I wanted to do it this way to test my general understanding).
So am I right in implying that the force is only not conservative if any of the work integrals have a integral that is not expressed in terms of the differential of the variable, i.e integrating something like $xy^2$ in terms of $x$?