0

I got to a point where I have $x$ and $y$ coordinates of a position vector written as a function of time.

x[t_]:=t^2-67;
y[t_]:= Sin[t] t^4 + 5 t^2;

Now my idea was to somehow use Manipulate[] so that I could animate how the position of point $(x(t),y(t))$ changes in a two-dimensional space with time.

I was able to use Manipulate and plot $x$ or $y$ coordinates separately but I can't get any further. I got an idea to discretize the time domain and than use Manipulate with combination of ListPlot or something, yet I would like to stay in the continuous case if possible.

skrat
  • 1,275
  • 1
  • 10
  • 19

1 Answers1

2

Do you mean something like this?

x[t_] := t^2 - 67;
y[t_] := Sin[t] t^4 + 5 t^2;
Manipulate[
 Graphics[Arrow[{{0, 0}, {x[t], y[t]}}], Axes -> True], {t, 0, 3}]

I did it like this because you wanted the position. However, I suggest something that not only you can see the current position, but the plot has the memory of previous positions:

Manipulate[
 ParametricPlot[{x[t], y[t]}, {t, 0, tmax}], {tmax, 0.01, 3}]
MathX
  • 1,614
  • 11
  • 17