惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
博客园_首页
爱范儿
爱范儿
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
博客园 - 【当耐特】
Y
Y Combinator Blog
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
月光博客
月光博客
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans

Cocoa

Untitled | Cocoa PicoBf: A brainf**k lang REPL environment for Pico Pi Compile LLVM with OpenMP on macOS and Linux My Virtualization Setup | Cocoa Doodles | Cocoa Hardware UART communication between Raspberry Pi 4 and Arduino Micro The first amazing thing in 2021 OK Google, set Telegram as my YouTube music player! Record YouTube Live Stream | Cocoa 可能隨時咕咕咕掉的 NLP 項目(1)—— 抓取 YouTube Live Chat NextDest | Cocoa macOS version of Twitter Image Saver Rust Learning from Zero (26) —— Save Twitter Images Notes on Differential Equations (3) —— $\frac{dy}{dt}=ay+q(t)$
Notes on Differential Equations (4) —— Step Function $H(t...
Cocoa · 2020-10-27 · via Cocoa

The step function $H(t)$ is always 0 until a time point $t=0$, it becomes a constant and then stay at that constant forever.

\begin{align}H(t)=\left\{\begin{aligned} 0 &\, &t \lt 0\\ 1 &\, &t \ge 0 \end{aligned}\right.\end{align}

And we can shift the $H(t)$ by $T$ time, that is $H(t-T)$.

The delta function $$\delta (t) is always 0, except for a single time point $t=0$, it has a value 1. Thus delta function is all in one instant, an impulse. Also, the delta function can be shifted by $T$ time, that is $\delta (t-T)$.

Although this is not a continuous function, this is what we do in real life. Because the deposits are always made at some specific instants.

Well, the derivative of $\delta(t)$ isn't quite legitimate at the jump point, but fortunately we have the tool called integration. And you may already spotted that, the step function is actually the integral of the delta function.

$$\int_{-\infty}^{\infty}\delta (t)dt=\left[H(t)\right]^{\infty}_{-\infty}=1-0=1$$

For a more general case of integral $\delta (t)$, let's say we integrate it with $f(t)$,

$$\int_{-\infty}^{\infty}\delta (t)f(t)dt=f(0)$$

Because $\delta (t)$ is 0 everywhere except for the point $t=0$, and $\delta (0)=1$ so the result we get $f(0)$.

As for the shifted delta function, the example will be

$$\int_{-\infty}^{\infty}\delta (t-T)e^tdt=e^T$$

What if it appears in the first order differential equation? Let's try $\frac{dy}{dt}=ay+\delta (t-T)$ with $y(0)=0$.

The solution is simple

\begin{align}y(t)=\left\{\begin{aligned}0 & \, &-\infty < t \le T\\ e^{a(t-T)} & \, & t \ge T \end{aligned}\right.\end{align}

Why? If you interpret this as a bank account, it becomes super clear. In the beginning, you have no money in the account, $y(0)=0$, and you deposit 1 pound at $t=T$. So from time point $T$ to now, the total balance with interest rate $a$ is $e^{a(t-T)}$.

いまが最高!