Ask Your Question

carlotaaa2's profile - activity

2024-02-20 19:38:41 +0200 received badge  Famous Question (source)
2020-02-08 00:25:27 +0200 received badge  Notable Question (source)
2018-07-03 11:54:07 +0200 received badge  Popular Question (source)
2017-02-28 20:39:44 +0200 commented answer System of differential equations

Thank you!

But x and y are not variables, these are the i and j components of my pursuit curve, and they are functions of t. The graph should look a little bit like the one here: http://mathworld.wolfram.com/PursuitCurve.html (http://mathworld.wolfram.com/PursuitC...)

(I'm sorry if you actually have x and y as functions, I am really new to sage.)

2017-02-28 14:33:38 +0200 asked a question System of differential equations

Hi! I am doing a project on pursuit curves, and I am trying to plot the system:

de1 = diff(x,t) == 2*(-x)/sqrt(x^2+(t-y)^2)
de2 = diff(y,t) == 2*(t-y)/sqrt(x^2+(t-y)^2)

with x(t) and y(t) being my i and j components for the trajectory a an object.

I wrote:

t = var('t')
x = function('x',t)
y = function('y',t)
de1 = diff(x,t) == 2*(-x)/sqrt(x^2+(t-y)^2)
de2 = diff(y,t) == 2*(t-y)/sqrt(x^2+(t-y)^2)
f,g = desolve_system([de1, de2],[x,y],ics = [0,10,0])
show(f)
show(g)

It gives me a solution for my system, x(t) and y(t) (that I don't understand, since I hacen't seen Laplace), but I can't figure out how to plot the vector equation A(t) = *x(t)i + *y(t)j.

I wanted to use parametric_plot(x(t),y(t),(t,0,20)) but it doesn't work.

Could anyone help me?

Thank you!