ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Jan 2016 03:14:22 +0100How to enter and solve this differential equation?https://ask.sagemath.org/question/9560/how-to-enter-and-solve-this-differential-equation/I'm studying electronics and I've encountered the weird and interesting relationship between the exponential function and the sine and cosine functions. In my effort to understand this better, I'd like to solve the following differential equation.
f'(x) = f(x+1), or more generally...
f'(x) = f(x + k) for any constant k
I wanted to explore these functions because the exponential function is where k = 0 and the sin(x) is solution when k=pi/2. I wanted to see what was "in between" those two. I know how to find the e^x case:
x = var('x')
y = function('y', x)
desolve(diff(y,x) == y, y, [0,1])
but, is there a way to add the k, something like this (which doesn't work as written):
desolve(diff(y,x) == y(x+1), y, [0,1])
Fri, 23 Nov 2012 14:19:29 +0100https://ask.sagemath.org/question/9560/how-to-enter-and-solve-this-differential-equation/Comment by vdelecroix for <p>I'm studying electronics and I've encountered the weird and interesting relationship between the exponential function and the sine and cosine functions. In my effort to understand this better, I'd like to solve the following differential equation. </p>
<p>f'(x) = f(x+1), or more generally... <br/>
f'(x) = f(x + k) for any constant k</p>
<p>I wanted to explore these functions because the exponential function is where k = 0 and the sin(x) is solution when k=pi/2. I wanted to see what was "in between" those two. I know how to find the e^x case:</p>
<pre><code>x = var('x')
y = function('y', x)
desolve(diff(y,x) == y, y, [0,1])
</code></pre>
<p>but, is there a way to add the k, something like this (which doesn't work as written):</p>
<pre><code>desolve(diff(y,x) == y(x+1), y, [0,1])
</code></pre>
https://ask.sagemath.org/question/9560/how-to-enter-and-solve-this-differential-equation/?comment=32073#post-id-32073As you certainly know this is not an ordinary different equation. Sometimes the term [Delay differentia equation](https://en.wikipedia.org/wiki/Delay_differential_equation). It seems that desolve does not handle this case. However for a genral 'k' I doubt that there exists any formula. In the aformentioned wikipedia article, there are some numerical approach to these problems...Tue, 05 Jan 2016 03:14:22 +0100https://ask.sagemath.org/question/9560/how-to-enter-and-solve-this-differential-equation/?comment=32073#post-id-32073