# Homework Help: Finding vector potential

1. Sep 17, 2011

### Idoubt

In problem of finding the vector potential of a vector F = yz i + xz k + xy j,
the solution gives in Griffith's solution manual is

http://img843.imageshack.us/img843/2725/vectorpotential.jpg [Broken]

But I don't understand how we can integrate

$\frac{\partial Az}{\partial y}$ = yz + $\frac{ \partial Ay}{\partial z}$

and get only f (x,z), why can't the partial w.r.t z be a function a function of y?? eg A = xyz

then the partial w.r.t z is xy, which is a function of y.

Last edited by a moderator: May 5, 2017
2. Sep 17, 2011

### vanhees71

I don't know, how Griffiths comes to his solution, but I'd use the following simpler idea. The equation

$$\vec{F}=\vec{\nabla} \times \vec{A}$$

has a solution $\vec{A}$ for a given $\vec{F}$, if and only if

$$\vec{\nabla} \cdot \vec{F}=0,$$

which is fulfilled for your example.

This solution is not unique, but only determined up to a potential field, i.e., a gradient of a scalar field. Thus, we can impose one constraint. Here, I use the "axial gauge condition"

$$A_z=0.$$

Then we have

$$\vec{\nabla} \times \vec{A}=\begin{pmatrix} -\partial_z A_y \\ \partial_z A_x \\ \partial_y A_x - \partial_x A_y \end{pmatrix} \stackrel{!}{=} \begin{pmatrix} yz \\ xz \\ xy \end{pmatrix}$$

$$A_y=-\int_0^z \mathrm{d} z F_x + A_y'(x,y) = -\frac{1}{2} y z^2 + A_y'(x,y)$$

and the second line

$$A_x=\int_0^z \mathrm{d} z F_y+A_x'(x,y)=\frac{1}{2}x z^2 + A_x'(x,y).$$

$$F_z=-\int_0^z \mathrm{d} z (\partial_x F_x + \partial_y F_y)+\partial_x A_y'-\partial_y A_x'.$$

Because of $\vec{\nabla} \cdot \vec{F}=0$, we have

$$F_z=\int_0^z \mathrm{d} z \partial_z F_z+\partial_x A_y'-\partial_y A_x' =F_z(x,y,z)-F_z(x,y,0) + \partial_x A_y'(x,y) - \partial_y A_x'(x,y) .$$

Now we can again arbitrarily set $A_x'(x,y)=0$. To fulfill the above equation, we just have to set

$$\partial_x A_y'=F_z(x,y,0)=xy \; \Rightarrow A_y'=\frac{1}{2} x^2 y+A_y''(y)$$.

Of course, $A_y''=0$ is good enough since it doesn't contribute to the curl at all. Plugging everything together leads to

$$\vec{A}=\begin{pmatrix} x z^2/2 \\ (x^2 y-y z^2)/2 \\ 0 \end{pmatrix}.$$

Finally, it's good to check, whether everything is fine. Thus we take the curl

$$\vec{\nabla} \times \vec{A}=\begin{pmatrix} -\partial_z A_y \\ \partial_z A_x \\ \partial_x A_y - \partial_y A_x \end{pmatrix}=\begin{pmatrix} yz \\ xz \\ xy \end{pmatrix}=\vec{F}.$$

Thus, we have found a vector potential for $\vec{F}$.

3. Sep 18, 2011

### Idoubt

Can you explain what the axial gauge condition is and how it makes Az = 0?

4. Sep 18, 2011

### vanhees71

The vector potential for a given solenoidal vector field is determined up to a gradient of a scalar field since $\vec{\nabla} \times \vec{\nabla} \chi=0$ for any scalar field, $\chi$.

Now, suppose you have a solution to the equation
$$\vec{\nabla} \times \vec{A}=\vec{F}.$$
Now, any field
$$\vec{A}'=\vec{A}-\vec{\nabla} \chi$$
also fulfills this equation and is as good as the original $\vec{A}$. Thus, to make our life easier, we can impose one additional constraint to our vector potential. Since it's easier to solve for two components rather than three components, we make one component vanishing. So, suppose for a moment, you have found a solution $\vec{A}$ and you like to find another representation such that the gauge transformed field obeys the axial-gauge condition
$$A_z'=0.$$
Thus, I've to find a scalar field, $\chi$, such that
$$A_z'=A_z-\partial_z \chi=0$$.
It's very easy to see that one possible solution for this equation is
$$\chi(x,y,z)=\int_{z_0}^z \mathrm{d} z' A_z(x,y,z').$$
Of course, $\chi$ is not completely determined by this condition. You can still add an arbitrary gradient of a gauge field that depends only on $x$ and $y$. That's why we could choose arbitrarily $A_x'(x,y)=0$ in the solution presented yesterday.

5. Sep 19, 2011

### Bill_K

It's an ansatz. As a trial solution he splits each equation up into a pair of equations:

∂Az/∂y = ½ yz and ∂Ay/∂z = - ½ yz
∂Ax/∂z = ½ xz and ∂Az/∂x = - ½ xz
∂Ay/∂x = ½ xy and ∂Ax/∂y = - ½ xy

from which

Az = 1/4 z (y2 - x2)
Ay = 1/4 y (x2 - z2)
Ax = 1/4 x (z2 - y2)

I suppose you could say there's no logic to it; but it works, and leads to a nice symmetrical solution.

6. Sep 19, 2011

### dynamicsolo

Another way of saying what vanhees71 has is that the given vector field is supposed to be the result of taking curl A = F . (So plainly this is not a conservative potential, or the curl would have given us zero.) The equations Griffiths shows are the components of this curl result, which are supposed to equal F. (And, as Bill K notes, it appears Griffiths, or the solver for the manual, has omitted factors of 1/2 somewhere...)

We are doing the inverse problem of trying to figure out what the components of A must look like in order to have produced F. We have to integrate each of those components in two ways, since we have information only about the partial derivatives of the components. Integrating $\frac{\partial Az}{\partial y} = \frac{1}{2}yz + \frac{ \partial Ay}{\partial z}$ with respect to y gets us definitely only the $\frac{1}{4} y^{2}z$ term, but leaves an "arbitrary integration function" dependent on the two variables not involved in that integration (analogous to the "arbitrary constant" in single variable integration).

There is also a second integration taking place by rearranging the curl component differential equation as $\frac{\partial Ay}{\partial z} = \frac{ \partial Az}{\partial y} - \frac{1}{2}yz$ and then integrating with respect to z. This gives Griffith's second result for this equation, and the "arbitrary function" now depends on x and y .

We go through the same process for all three curl components, which gets us two pieces of information for each component of A. So, for example, on the Ax component, we have

$$A_{x} = \frac{1}{4} xz^{2} + h( x , y ) and A_{x} = - \frac{1}{4} xy^{2} + l( x , z ) .$$

[And, incidentally, there is a typo for that arbitrary function l ("el" of x and z) . ]

We see that Ax has a term with powers of x and z , a term with powers of x and y , an arbitrary function of x and y , and another arbitrary function of x and z . So the arbitrary function of one of the integrations is apparently the result for the integration with respect to the other variable. There's nothing left over, so we must have $A_{x} = \frac{1}{4} xz^{2} - \frac{1}{4} xy^{2}$ , and similar results for the other components of A, as Bill K lists.

Also, if the expression you gave for F is correct, then all of these (1/4)'s should be (1/2)'s.

(And I'll keep in mind that the solution manual for Griffiths is rife with typoes...)

Last edited: Sep 19, 2011