What is the correct way to calculate streamlines of a vector field

AI Thread Summary
The discussion revolves around the calculation of streamlines for the vector field v = xy i + y j. The original derivation led to the equation y = log(x) + C, which only accounts for positive x-values. It was pointed out that the correct integral should be ln(|x|) + C, allowing for the inclusion of negative x-values and reflecting the orientation of the field. This adjustment reveals that streamlines can indeed be defined for x less than zero, addressing the initial concern about missing solutions. The clarification emphasizes the importance of considering the absolute value in the logarithmic function for accurate streamline representation.
Jonsson
Messages
78
Reaction score
0
Hello there,

What is wrong with my way of finding stream lines of a vector field? Say I have this vector field:

\vec{v} = x\,y\,\vec{i} + y\,\vec{j}

You can see a plot here: http://kevinmehall.net/p/equationexplorer/vectorfield.html#xyi+yj|[-10,10,-10,10]

It appears as if the stream lines could be y = log(x) + C.

I proceed to find out:

v_y \, \mathrm{d}x = v_x \, \mathrm{d}y\\<br /> x\,y\,\mathrm{d}y = y\,\mathrm{d}x\\<br /> \mathrm{d}y = \frac{1}{x}\,\mathrm{d}x\\<br /> \int\,\mathrm{d}y = \int \frac{1}{x}\,\mathrm{d}x\\<br /> y = log(x) + C<br />

This looks about right. However there is a problem, when I look back at my vector field (http://kevinmehall.net/p/equationexplorer/vectorfield.html#xyi+yj|[-10,10,-10,10]), for values of x less than zero, it appears as if the streamlines should be a mirror-image of y = log(x) + C.

So my question, does the above streamline calculation have more solutions which I have missed? Or is there something else which is wrong, which is causing me only to find the streamlines for x values greater than 0?

Thank you for your time.

Kind regards,
Marius
 
Last edited:
Physics news on Phys.org
Your derivation simply does not care about the orientation of the field. You could see y=0 as region where field lines from both sides end, as the field vanishes.

The correct integral of ##\frac{1}{x}## is ##ln(|x|)+C## (where you can use a different C for positive and negative x), this allows to use negative x-values as well.
 
mfb, thank you so much :)

Kind regards,
Marius
 
Thread 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Thread 'Recovering Hamilton's Equations from Poisson brackets'
The issue : Let me start by copying and pasting the relevant passage from the text, thanks to modern day methods of computing. The trouble is, in equation (4.79), it completely ignores the partial derivative of ##q_i## with respect to time, i.e. it puts ##\partial q_i/\partial t=0##. But ##q_i## is a dynamical variable of ##t##, or ##q_i(t)##. In the derivation of Hamilton's equations from the Hamiltonian, viz. ##H = p_i \dot q_i-L##, nowhere did we assume that ##\partial q_i/\partial...
Back
Top