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

推荐订阅源

G
Google Developers Blog
博客园 - 聂微东
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
D
Docker
B
Blog
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
月光博客
月光博客
F
Fortinet All Blogs
爱范儿
爱范儿
H
Help Net Security
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
The Cloudflare Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
U
Unit 42

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 (4) —— Step Function $H(t)$ and Delta Function $\delta(t)$
Notes on Differential Equations (3) —— $\frac{dy}{dt}=ay+...
Cocoa · 2020-10-27 · via Cocoa

The general form for any input (or source term) with first order differential equations can be written as below, and it starts at $y(0)$.

$$\frac{dy}{dt}=ay+q(t)$$

One way to interpret this equation is to think it as a bank account, where $a$ is the interest rate and $q(t)$ is the new deposits.

$$\frac{dy}{dt}=\underbrace{ay}_\textrm{interest added}+\underbrace{q(t)}_\textrm{new deposits}$$

The general formula of the solution is

$$y(t)=\underbrace{y(0)e^{at}}_\textrm{null solution}+\underbrace{\int_{s=0}^{s=t}e^{a(t-s)}q(s)ds}_\textrm{particular solution}$$

where $s$ is the running clock, and $t$ is the time we look at it. Why the integral term has $(t-s)$ inside? Because the deposits $q(s)$ is made at time point $s$, and you only get interests after you made the deposits.

Let's have some examples of $q(t)$,

\begin{align*}q(t)&=C\\ &=e^{st}\\ &=\cos\omega t\\ &=\textrm{step function}\\ &=\textrm{delta function} \end{align*}

The step function is always 0 until a time point $t$, it becomes a constant and then stay at that constant forever. The delta function is always 0, except for a single time point, it has a value. Thus delta function is all in one instant, an impulse.

We can verify the particular part of the general solution is correct by the following steps,

\begin{align*}y_p(t)&=\int_{s=0}^{s=t}e^{a(t-s)}q(s)ds\\ &=e^{at}\int_{s=0}^{s=t}e^{-as}q(s)ds\\ \frac{dy}{dt}&=\frac{d\left(e^{at}\right)\left(\int_{s=0}^{s=t}e^{-as}q(s)ds\right)}{dt}\\ &=ae^{at}\int_{s=0}^{s=t}e^{-as}q(s)ds+e^{at}e^{-at}q(t)\\ &=\underbrace{ae^{at}\int_{s=0}^{s=t}e^{-as}q(s)ds}_{ay}+q(t) \end{align*}

いまが最高!