Plotting Vector and Derivative: A Frustrating Challenge

Click For Summary

Discussion Overview

The discussion revolves around the challenge of plotting a vector function and its derivative in a 3D space using Mathematica. Participants are exploring methods to visualize both the vector and its derivative at a specific point, addressing issues related to code implementation and plotting techniques.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant shares their code for plotting a vector and its derivative but encounters issues with the implementation.
  • Another participant suggests starting by plotting the vector function alone to identify any issues before attempting to plot the derivative.
  • A third participant questions the rationale behind plotting the derivative over the same range as the vector function, noting that the derivative should only be evaluated at the point Pi/4.
  • Further advice is given to refer to external resources for combining the plots of the vector and the derivative at the specified point.

Areas of Agreement / Disagreement

Participants generally agree on the need to first successfully plot the vector before addressing the derivative. However, there is a disagreement regarding the appropriate range for plotting the derivative, with some advocating for a specific point evaluation while others suggest a broader range.

Contextual Notes

There are unresolved aspects regarding the correct implementation of the plotting functions and the specific requirements for combining the vector and its derivative in the visual output.

Who May Find This Useful

This discussion may be useful for individuals working with vector calculus, particularly those using Mathematica for visualization of mathematical functions and derivatives.

dpeagler
Messages
32
Reaction score
0
I have been trying to plot a vector and it's derivative for a while now, but I cannot figure out why I can't get them to plot.

Here is what I put for my code...

a[t_] := Sin[t] Cos[2 t]
b[t_] := Sin[t] Sin[2 t]
c[t_] := Cos[t]
V[t_] := {a, b, c}

I tried this...

ParametricPlot[{a[t], b[t], c[t]}, {a'[t], b'[t], c'[t]}, {t, -\[Pi]/2, \[Pi]/2}, {t, \[Pi]/4}]

and this...

ParametricPlot[{V[t]},{V'[\[Pi]/4]},{{t, -\[Pi]/2, \[Pi]/2}

The function is seen as V[t]. I want to graph it from -Pi/2 to Pi/2 and I want to have V'[Pi/4] on the same graph. And then I want to have two different images.

I know that's a lot, but I'm sure it's something really simple that I'm missing. Thanks to anyone who can give any advice.
 
Physics news on Phys.org
See if you can just plot the vector first.

a[t_] := Sin[t] Cos[2 t];
b[t_] := Sin[t] Sin[2 t];
c[t_] := Cos[t];
V[t_] := {a[t], b[t], c[t]};
ParametricPlot3D[V[t], {t, -Pi/2, Pi/2}]

If that works then compare what I did with what you did and figure out the differences.

After that see if you can just plot the derivative

ParametricPlot3D[{a'[t], b'[t], c'[t]}, {t, -Pi/2, Pi/2}]

After that perhaps you can start thinking about combining the two
 
Thanks for the response. The only thing I am confused about is why you are plotting the derivative over the same range. It is only supposed to be at the point Pi/4
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K