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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Last Week in AI
Last Week in AI
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
The Cloudflare Blog
罗磊的独立博客
月光博客
月光博客
N
Netflix TechBlog - Medium
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Jina AI
Jina AI
J
Java Code Geeks

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*}

いまが最高!