具有两个初始条件的串联RLC电路,wikibook电路理论的示例33
如果Vs(t) = 1 + cos(3t),求io(t)。
由于存在初始条件,我们将从Vc(t)开始,然后逐步通过初始条件推导出io。

MuPad命令将是
L :=1; R1:=.5; R2:=1.5; C:=.5;
simplify((1/(s*C))/(1/(s*C) + 1/(1/R1 + 1/(s*L)) + R2))
结果是

将传递函数的分母设置为0,并求解s
solve(8*s^2 + 11*s + 4)
虚根

因此,解的形式为

经过很长时间后,电容器断路,没有电流流动,因此所有电源电压都落在电容器两端。电源是一个单位阶跃函数,因此

计算常数B之前的mupad屏幕截图
将特解和齐次解相加,得到

再次进行最终条件计算,得到

这意味着C为零。
根据给定的初始条件,我们知道Vc(0+) = 0.5,因此可以求出A

求解B比较困难。根据电容器端子关系
VC := 1 + exp(-11*t/16)*(-.5*cos(7*t/16) + B*sin(7*t/16))
IT := diff(VC,t)
总电流为

回路方程可以用来求解LR并联组合上的电压


VLR := 1 - VC - 1.5*IT
我们知道根据电感端电压关系,

IL := 1/.5 * int(VLR,t)
在这一点上,MuPAD放弃了并进行了数值计算。无论如何,从t = ∞(此时电感电流必须为零)可以清楚地看出积分常数为零。这使我们能够根据电感的初始条件计算B。
t :=0
将时间设置为零,将IL设置为0.2安培的初始条件,并求解B
solve(IL=0.2, B)
并得到B为-0.2008928571 ...
MuPAD截图,找到所需的输出io
所需的答案是io,它只是VLR/R_1。为了计算,需要启动新的MuPAD会话,因为t现在为零。从以下开始:
B := -0.2008928571;
R1 :=0.5;
重复上述命令直至VLR,然后添加
io = VLR/R1