As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

Vector function projection raises an error

Working on ODE systems solution with NDSolve[] I decided to try to replace system of equations like: ...
Cpp Nosavvier's user avatar
3 votes
0 answers
137 views

Summation variables aren't recognised as dummy variables

I'm trying to write this expression in Mathematica, and calculate the following quantity However, when I tried the following ...
Our's user avatar
  • 229
0 votes
0 answers
49 views

Scaling vectors by their norm in VectorPlot3D

I'm trying to generate a 3D vector plot in which the length of the vector is really it's norm. This is my code: ...
NA PV's user avatar
  • 1
3 votes
1 answer
326 views

Derivative of a norm

I learned not use the Norm[] function when computing vector derivative, so I use the dot product instead: In: D[x.x, x] Out: 1.x + x.1 What does the result mean? ...
Soid's user avatar
  • 133
5 votes
1 answer
255 views

Finding unit tangent, normal, and binormal vectors for interpolated function

As an extension of this question, is it possible to find the unit tangent, normal, and binormal vectors for an interpolated function? eg ...
martin's user avatar
  • 8,332
1 vote
1 answer
171 views

Problems With StreamPlot

I have the following vector functions: $$E=\left\langle \cos\left[\frac{\pi x}{5}\right]\sin\left[\frac{\pi y}{4}\right], \sin\left[\frac{\pi x}{5}\right]\cos\left[\frac{\pi y}{4}\right], \sin\left[\...
Chris's user avatar
  • 113
2 votes
0 answers
74 views

12.1 VectorPlot - How to show differing magnitudes in the new implementation

I'm graphing vector fields for a class. Magnitude is important at least initially. In 12.0 and earlier VectorPlot plotted the different magnitudes as length. In 12.1 VectorPlot represents magnitude by ...
Gerald Bilodeau's user avatar
0 votes
0 answers
41 views

Picking elements from separate lists and multiplying them

So I'm doing some instruction items about surface integrals. I've written the following code. it calculates curl and partial derivatives of the surface. I now want to create the following function, ...
Abcderia's user avatar
  • 115
1 vote
1 answer
73 views

Help with code on integration

I'm trying to do a surface integral through a vector field of a disc. The problem says there is a vector field $\langle 0, y, -z\rangle$ and the disc is $x^2 + z^2 \le 1, y = 1$. The answer is $\pi$ ...
Abcderia's user avatar
  • 115
3 votes
1 answer
192 views

Parametric Surface Integral Boundary Code?

I am having trouble using MMA to calculate 2 parametrized surface integrals. I'd be grateful for any fixes people can offer. I usually calculate surface integrals with the following code, which works, ...
JDVC's user avatar
  • 129
2 votes
3 answers
328 views

Parametric equations and eq. of tangent plane

I have written the following code to determine the equation of a plane tangent to a surface at a given point: ...
JDVC's user avatar
  • 129
4 votes
1 answer
140 views

Help on center of mass code

I have reviewed questions on MMMA Stack Exchange and found no help. Here's my problem and my code, which only partially works. I can't figure out my mistake. Help? Find the mass and COM of a wire in ...
JDVC's user avatar
  • 129
1 vote
1 answer
156 views

Exploring curl of a gradient of a scalar function

Suppose I want to explore $\nabla \times \nabla V$ where $V$ is some scalar function. It basically results in a zero. But I would only know why if I solve it on paper. I wanted to use Mathematica for ...
Irtiza's user avatar
  • 576
1 vote
0 answers
104 views

How to plot integral of a gradient function

For $f : \mathbb{R} \longrightarrow \mathbb{R}$ continously differentiable and $\phi \in [0,\pi/2]$ let $$F(x) = \int \frac{f'(x)-\cot \phi}{1+ f'(x) \cot \phi} d x$$ be a clockwise 'rotation' of $f$. ...
JHT's user avatar
  • 1,005
4 votes
2 answers
246 views

Issue with the Laplacian in Cylindrical Coordinates

I am using Mathematica 12.1.1 and am unable to get the correct result for a simple laplacian in 3D Cylindrical Coordinates. I want to reproduce the following result on Mathematica: But, I am only ...
Siddharth Chaini's user avatar
1 vote
0 answers
152 views

How to write a program on gradients and the path for steepest ascent?

I'm given two functions f[x ,y ]=Cos[x]*Cos[y]/(6+x^2+y^2) and df[x ,y ]=Grad[F[x,y],{x,y}] I was given a note that ...
imarben007's user avatar
1 vote
1 answer
193 views

Understanding and visualizing Bessel function with complex argument

I have a vector field in polar coordinates $(r,\phi)$, which I wish to visualize and better understand. It represents the Electric field vectors for a given field distribution inside a circular ...
user135626's user avatar
2 votes
1 answer
144 views

Plotting list data of cross product of field vectors

I have some experimental data points of electric Ey(t, value) and magnetic field Hz(t, value). I am trying to calculate the ...
Gopal Verma's user avatar
  • 1,013
2 votes
2 answers
336 views

Triple Integral boundaries and solution

So I'm working on triple integrals, specifically on those where I have a region bounded by various surfaces. (In other words, the ranges for each integrals are not given, but must be calculated.) I ...
Abcderia's user avatar
  • 115
1 vote
2 answers
290 views

Scalar potential function from 3D vectorial field [duplicate]

I am new at this forum and a beginner with Mathematica. Today I was studying multivariable calculus and I came with this problem. For example, in 2D case I have this code: ...
Sardar Radhakrishna's user avatar
0 votes
1 answer
39 views

A mistery in the documentation of the StreamDensityPlot command, and Is Abs' the same as Sign?

I was trying to decipher the documentation example ...
florin's user avatar
  • 1,418
0 votes
2 answers
44 views

JacobianMatrix Command Not Working Properly [duplicate]

This is what I get when using the command: ...
mcqueen's user avatar
3 votes
1 answer
210 views

Plotting a corrugated ribbon on a 3D Plot

I was assigned to write the following code: ...
dodgevipert56's user avatar
2 votes
0 answers
114 views

How can I make NDSolve aware of vectorial nature of an ODE?

I am trying to solve the equilibrium equation $\text{DIV } \mathbf P(\textbf{u}(x,y)) = \mathbf{f}$, where $\mathbf P$ is the stress tensor defined by $$ \mathbf P = \mathbf F + (1-\det\mathbf F)^...
rmk236's user avatar
  • 21
0 votes
1 answer
255 views

How to calculate the gradient in cylindrical coordinates in more efficient way?

I would like to obtain the gradient for the following function in cylindrical Coordinates ...
irondonio's user avatar
  • 505
1 vote
3 answers
176 views

Cannot derive `Norm` or `Normalize` when recreating Frenet Serret equations

I'm trying to calculate the torsion of a curve at a point using the following code: ...
swissnetizen's user avatar
0 votes
0 answers
53 views

Eliminate doesn't work

I tried to define r by the polynomials a,b,c only. The result which I want is r=4/3 a. But this eliminate doesn't work! It is continue running without stop and without any output. Eliminate[{a == x[1] ...
Zai's user avatar
  • 1
0 votes
2 answers
240 views

Why is ParametricPlot3D not producing a graph

I have the vector V = {2, y z^2, 3 y + z} I wanted to get a 3d parametric plot of V using: x[t] = Sin[t^2]; y[t] = t^2 - Cos[t]; z[t] = Sinh[t] - Cos[t]. So I did: <...
Kurapika's user avatar
0 votes
0 answers
92 views

Functions of several variables composition

If we have two functions $G,F:\mathbb R^2\to\mathbb R^2$ then the mechanism $F\circ G(x,y)=F(G(x,y))$ gives us a new map $F\circ G:\mathbb R^2\to\mathbb R^2$ called its composition. In a "...
janmarqz's user avatar
  • 201
8 votes
3 answers
473 views

How is Grad defined for array particularly in non-Cartesian coordinates?

This question can be viewed as a follow-up of What is the definition of Curl in Mathematica? First argument of Grad can be an array, but what definition does ...
xzczd's user avatar
  • 60.8k
1 vote
1 answer
99 views

Find Solution to Exact ODE with 4 Variables?

OK, I give up. I was trying to use the solution in this post to solve an exact ODE with 4 independent variables. This works ...
Jeffrey Rolland's user avatar
0 votes
1 answer
69 views

Aesthetic Constant Vectorial Field 3D-Plot

I am trying to 3D-Plot a constant Vectorial Field: ...
Dauph's user avatar
  • 377
1 vote
1 answer
298 views

Referencing the Component of a vector

If I were to define a vector r = {2, 0} + t*({5, 4} - {2, 0}) >>{2 + 3 t, 4 t} Sqrt[(D[r[1]])^2 + (D[r[2]])^2] How do I properly reference a single ...
sasha leona's user avatar
-1 votes
2 answers
375 views

Line Integral with Vector Plot Parametric Plot and Show

How can I make different plottings of this line integral where $C$ is the square bounded by lines $x = \pm 1$ and $y = \pm 1$. $$ \begin{equation} \int_C 4y^3dx-2x^2dy \end{equation} $...
sasha leona's user avatar
1 vote
0 answers
89 views

How to reproduce `JacobianMatrix` function

I want to use the JacobianMatrix function in package VectorAnalysis, but I get the following warning message after running the ...
A little mouse on the pampas's user avatar
0 votes
1 answer
129 views

Help with simplification

Could anyone please help me simply the following expression ...
Jennifer S.'s user avatar
1 vote
3 answers
120 views

About composition of functions (I don't want to use a vector variable function)

f2[x_, y_] := x^2 + y^3; g[t_] := {t^2, 3*t+1} $g$ returns a list, but $f_2$ is a two variable function. So, we cannot compose these functions: ...
tchappy ha's user avatar
3 votes
1 answer
119 views

Efficiently finding spheres furthers apart along and perpendicular to a given direction

Setting I am dealing with a box of spheres, all having the same radius and inserted into a finite box size without any overlaps. Along a given direction $\mathbf v$, I am trying to find: (a) The two ...
user avatar
2 votes
1 answer
362 views

Generating random vectors using Mathematica and an inequality

Consider $n$-dimensional vectors $c^i = \left(c^i_1, c^i_2 ...c^i_n \right)$ , whose entries are complex and generated at random. These vectors are normalized such that $$|c^i|^2 = 1.$$ Using ...
Michael Williams's user avatar
1 vote
0 answers
61 views

Obtain the vector potential and magnetic vector of infinite wire carrying charge

I'm working on the question above, but I'm really stuck for days. my goal is to implement the following Problem in Mathematica. Any help would be appreciated. I want to evaluate the following ...
Farhad's user avatar
  • 23
2 votes
0 answers
59 views

Find vectors describing two interconnected pyramids in Euclidean space

I need the help of competent linear algebra specialists in Mathematica. In the Euclidean space, two tetrahedrons are turned at different angles. Their vertices coincide with the beginning of the base ...
dtn's user avatar
  • 2,344
2 votes
1 answer
87 views

Using Grad and NDSolve with vector variables

A simple orbital model might be developed like this: ...
sudnadja's user avatar
3 votes
1 answer
924 views

How can I use a unit vector notation found in physic texts?

In physics (I'm thinking of Taylor's Classical Mechanics or Griffith's Classical Electrodynamics) it is common to use "hat" vectors to denote unit vectors like $\hat{x}$ or $\hat{r}$. If I wanted to ...
Tanner Legvold's user avatar
1 vote
0 answers
115 views

Error when trying to solve elastic PDEs using FEM: "Compile::argcompten: The comparison, LessEqual, is invalid for tensor arguments."

I'm trying to solve the following linear elastic problem: The pairs of numbers beside each node is the coordinates in meters. The loads are in Newtons. The part of codes that probably have no ...
Yukai Qian's user avatar
0 votes
2 answers
419 views

Summations on Variables with subscripts

One of my equations uses a set of variables which ultimately for a set of certain values gives a list of 8 numbers: c=13.9506 (31 - k) following cc(sub k) = Round[Table[13.950621339931203...
Petros Theodorou's user avatar
3 votes
5 answers
794 views

Computing the intersection area of two disks in 3D

Closely related to this question about highlighting intersection of two disks, I am trying to figure out if one can do so similarly for disks embedded in $3D$ (e.g. in a bounding box). The difference ...
user avatar
2 votes
2 answers
132 views

How can I concisely define a matrix-form partial derivative operator?

I have a vector $\boldsymbol{u}(x,y) = \begin{bmatrix} u_x(x,y) \\ u_y(x,y) \\ \end{bmatrix}.$ I would like to get $\boldsymbol{\sigma}(x,y) = \begin{bmatrix} \sigma_x \\ \sigma_y \\ \tau_{xy}...
Yukai Qian's user avatar
0 votes
1 answer
134 views

How can I take the divergence of a symbolic vector? [duplicate]

I would like to compute expressions that have the following form: $$\left(\partial_{p_1} - \partial_{p_2}\right)^2 \left(\partial_{p_1} - \partial_{p_2}\right)^2 \frac{(p_1-p_2)\cdot(p_3-p_4)}{p_1^...
Pxx's user avatar
  • 661
5 votes
2 answers
356 views

How do I get actual values from a Jacobian matrix?

I have a Jacobian function: D[{Sqrt[x^2 + y^2], ArcTan[x, y]}, {{x, y}}] It gives me a matrix with the formulas I need for my transposition matrix: ...
Quark Soup's user avatar
  • 1,521
0 votes
0 answers
63 views

How do you get a partial derivative of a vector to another vector?

I have a translation function between Cartesian and Polar coordinates: xi[xPrime_] := {xPrime[[1]]*Cos[xPrime[[2]]], xPrime[[1]]*Sin[xPrime[[2]]]} I now want to ...
Quark Soup's user avatar
  • 1,521