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

Click For Summary
SUMMARY

The correct way to calculate streamlines of the vector field \(\vec{v} = x\,y\,\vec{i} + y\,\vec{j}\) involves recognizing that the integral of \(\frac{1}{x}\) is \(\ln(|x|) + C\), which accommodates both positive and negative values of \(x\). The initial calculation by the user, which resulted in \(y = \ln(x) + C\), only applies to \(x > 0\) and fails to account for the orientation of the vector field. This oversight leads to an incomplete understanding of the streamlines, particularly in the negative \(x\) region.

PREREQUISITES
  • Understanding of vector fields and their properties
  • Knowledge of calculus, specifically integration techniques
  • Familiarity with logarithmic functions and their properties
  • Ability to interpret graphical representations of mathematical functions
NEXT STEPS
  • Study the properties of vector fields in fluid dynamics
  • Learn about the implications of using absolute values in integrals, particularly in logarithmic functions
  • Explore the concept of streamlines in different vector fields
  • Investigate the graphical interpretation of vector fields and their streamlines using tools like MATLAB or Python's Matplotlib
USEFUL FOR

Mathematicians, physicists, and engineers who are working with vector fields, particularly those interested in fluid dynamics and streamline analysis.

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:

[itex]\vec{v} = x\,y\,\vec{i} + y\,\vec{j}[/itex]

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 [itex]y = log(x) + C[/itex].

I proceed to find out:

[itex]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[/itex]

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
 

Similar threads

  • · Replies 59 ·
2
Replies
59
Views
6K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
19
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
44
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K