$$F=(ycos(xy)+e^{x+y})i+(xcos(xy)+e^{x+y})j$$
also show that $$\int_cF \cdot dr = e^2-e^{-2}$$ where c is the straight line from $(-1,-1)$ to $(1,1)$.
$$F=(ycos(xy)+e^{x+y})i+(xcos(xy)+e^{x+y})j$$
also show that $$\int_cF \cdot dr = e^2-e^{-2}$$ where c is the straight line from $(-1,-1)$ to $(1,1)$.
By definition, the potential is a function $f: \mathbb{R}^2\rightarrow \mathbb{R}$ such that $$ \nabla f = \pmatrix{\frac{\partial f}{\partial x} \\ \frac{\partial f}{\partial y}}= \vec{F} $$
Can you solve this equation ?
Once you have found $f(x,y)$, the fundamental theorem of line integrals states that $$ \int_C \vec{F} \cdot d\vec{r} = f(1,1)-f(-1,-1) $$
In order to find the potential function of a conservative force, you choose some point, lets say (-1,-1), than take the line integral of the force from (-1,-1) to (x,y), which will give you the potential function of the force.
$$\int_{(-1,-1)}^{(x,y)} \vec{F} \cdot d \vec{r} = U(x,y)$$
This is quite easy when you know differential forms.
Let $\int_{C} F\cdot dr = \int_{C} \,(y*cos(xy) + exp(x+y))dx + (x*cos(xy) + exp(x+y))dy, $
where $\omega = (y*cos(xy) + exp(x+y))dx + (x*cos(xy) + exp(x+y))dy$ is your differential form.
I assume that you consider the vector field over $\mathbb{R^2}$. This vector space is simply connected and thus star-shaped. Therefore you can apply Poincaré's Lemma. This basically tells you that every closed differential form is also exact. In the title of your question you are looking for a potential function. Therefore I can assume (without calculation) that the differential form above is closed. Since it is exact it does not matter which curve C you use to integrate over! Only the end points matter. Hence take the curve $\phi: [-1;1] \to \mathbb{R}, x \to (x,x)$.
The theory of differential forms now says that
$$\int_{C} F \cdot dr = \int_{-1}^{1} <\omega(\phi(x)), \phi'(x)> dx$$.
Since $\phi'(x) = (1,1)$ and $\omega(\phi(x)) = 2*(x*cos(x^2) + exp(2*x))$, it follows that
$\int_{C} F\cdot dr = \int_{-1}^{1} 2*(x*cos(x^2) + exp(2*x)) = exp(2) - exp(-2)$.