Questions tagged [vector-calculus]
Questions on dealing with vector calculus functions of Mathematica such as Grad, Div, Curl, Laplacian and their representations in various coordinate systems.
313 questions
46
votes
3
answers
51k
views
How to make Jacobian automatically in Mathematica
If we have two vectors, $a$ and $b$, how can I make Jacobian matrix automatically in Mathematica?
$$ a=\left(
\begin{array}{c}
x_1^3+2x_2^2 \\
3x_1^4+7x_2
\end{array}
\right);b=\left(
\begin{array}{...
33
votes
4
answers
28k
views
Finding unit tangent, normal, and binormal vectors for a given r(t)
For my Calc III class, I need to find $T(t), N(t)$, and $B(t)$ for $t=1, 2$, and $-1$, given $r(t)=\{t,t^2,t^3\}$.
I've got Mathematica, but I've never used it before and I'm not sure how to coerce ...
26
votes
4
answers
2k
views
What is the definition of Curl in Mathematica?
I have a usual mathematical background in vector and tensor calculus. I was trying to use the differential operators of Mathematica, namely Grad, ...
21
votes
2
answers
7k
views
Is it possible to do vector calculus in Mathematica?
I am trying to rearrange and manipulate some vector differential equations in Mathematica. As far as I understand you have to tell Mathematica that a variable is a vector by specifying the components ...
19
votes
4
answers
8k
views
How do I plot the unit normal field for a surface?
The question is pretty much in the title; I'm about to teach my multivariable calculus students about orientations on surfaces, and I would like to be able to show them pictures. Any ideas?
17
votes
1
answer
3k
views
How can I define or use a new coordinate system?
I want to use the dipole coordinate system as defined in this paper: http://arxiv.org/abs/physics/0606044
I see that Mathematica can do all kinds of vector analysis using different kinds of ...
16
votes
3
answers
8k
views
How to declare a 3D vector variable?
How can I do vector calculations without telling Mathematica the vector entries?
I have very many arbitrary linear combinations in $\mathbb{R}^3$ which I want to perform some general calculations on (...
15
votes
2
answers
8k
views
How do I plot a proper streamline plot, including spacings and line endings?
Mathematica includes two nice built-in tools to visualize vector fields, VectorPlot and StreamPlot. The latter is a useful tool, ...
14
votes
4
answers
3k
views
How to expand dot product by applying properties
I would like to expand a dot product which includes vectors $ \vec{v_1}, \vec{v_2}, \dots $ and constants $ c_1, c_2, \dots $
So that:
$$ c_1 \vec{v_1} \cdot \left(c_2 \vec{v_2}+ c_3 \vec{v_3}+\dots ...
13
votes
2
answers
1k
views
Creating randomly oriented planes
I would like to create randomly oriented planes.
This is how I'm attempting to do that:
I create a 2 random unit vectors, $\mathbf{v}_1$, and $\mathbf{v}_2$, in the $x$-$y$ plane
I assume that if I ...
11
votes
1
answer
58k
views
Why I get the "Set::write: "Tag Times in is Protected." error?
Why I get the error below with this code:
...
10
votes
3
answers
1k
views
Creating random configurations of spherocylinders or cylinders
About the setting:
We have a 3D simulation box with side $l$ and our catesian coordinate system is set with its origin at the centre of the box.
We have a number $N$ of spherocylinders of aspect ...
10
votes
2
answers
4k
views
Singularities using VectorPlot
I am trying to plot a vector function of a fluid flow given by
$\vec{V} = (\frac{-\cos(\theta)}{r^2},-\frac{\sin(\theta)}{r^2})$
I am trying to plot it in Mathematica using the command below, I ...
10
votes
1
answer
2k
views
Dipolar magnetic field lines inside a cylinder
I'm drawing the magnetic field lines of a rotating dipole (magnetic field distorded by emission of radiation). Currently, my Mathematica 7.0 code is fully working, but I'm having a constraint which I ...
10
votes
0
answers
412
views
matrix calculus with types (similar to matrixcalculus.org) [duplicate]
Is it possible to do matrix calculus in Mathematica, like in http://www.matrixcalculus.org/ ?
One of the main limitations I've found in Mathematica is that symbols are assumed to be scalars by ...