Differantation of a function with multiple unknown constants
4 次查看(过去 30 天)
显示 更早的评论
Hi Everyone! I got a function phi(t)=exp(x*y*t)*(C1*cos(z*t)+C2*sin(z*t)+A*cos(h*t-w) and I have to derive it, but I do not really know how to do it. The problem is that I know everything except C1 and C2 and I am looking for those constants. I have two initial conditions with whom I can solve the equations after the differentation.
0 个评论
采纳的回答
Walter Roberson
2020-3-26
syms h w x y z t A C1 C2;
eqn = exp(x*y*t)*(C1*cos(z*t)+C2*sin(z*t)+A*cos(h*t-w))
dt = diff(eqn, t);
bc1 = subs(dt, [h w x y z t A], [known_h, known_w, known_x, known_y, known_z, known_t, known_A])
bc1 is linear in C1 and C2. Do another such subs() with different known values to get another linear equation. You can then solve for C1 and C2.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!