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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
宝玉的分享
宝玉的分享
量子位
Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
J
Java Code Geeks
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
S
SegmentFault 最新的问题
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
小众软件
小众软件
The Cloudflare Blog
Y
Y Combinator Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
IT之家
IT之家

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)}$.

いまが最高!