How to find undetermined coefficients using initial conditions?

조회 수: 4 (최근 30일)
ROJO
ROJO 2017년 1월 31일
댓글: ROJO 2017년 1월 31일
Hi, I would like to solve a differential equation something like y=exp(-t)*(c1(cos(w*t)+c2*sin(w*t))).
I have initial conditions as y(0) = 0, and y'(0) = 0.
Using these initial conditions, how can I get the c1 and c2, which are undetermined coefficients? It's pretty straightforward by hand, but it's tricky to code.
Thank you in advance.
  댓글 수: 2
John D'Errico
John D'Errico 2017년 1월 31일
편집: John D'Errico 2017년 1월 31일
Um, that is not a differential equation.
And why is it tricky to code? What have you tried? Show that you are making an effort, and you are more likely to get help. For example, how might you use solve to find the solution?
ROJO
ROJO 2017년 1월 31일
I just didn't wanna put a limitation on the methods. I just solved it using subs and solve. Never mind.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by