Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'DSolve and initial value problems' topicStudent Support Forum > General > Archives > "DSolve and initial value problems"

Next Comment >Help | Reply To Topic
Author Comment/Response
Andrew R
10/18/12 11:32pm

I am trying to solve any initial value problems with DSolve. if i use the input

DSolve[y''[t] + 4 y'[t] + 4 y[t] == Sin[t], y[t], t]

i get the solution in terms of C1 and C2

now i am trying to get a solution that satisfies y[0]=1 and y'[0]=0

how do i put the initial conditions to the DSolve command

i tried this way

DSolve[{y''[t] + 4 y'[t] + 4 y[t] == Sin[t], y[0] == 0}, y[t], t] but i get the error

DSolve::deqn: "Equation or list of equations expected instead of True in the first argument {\!\(4\\\ y[t] + 4\\\ \*SuperscriptBox[\"y\", \"\[Prime]\",
MultilineFunction->None][t] + \*SuperscriptBox[\"y\", \"\[Prime]\[Prime]\",
MultilineFunction->None][t] == Sin[t], True\)}."

Can anyone help me?

URL: ,

Subject (listing for 'DSolve and initial value problems')
Author Date Posted
DSolve and initial value problems Andrew R 10/18/12 11:32pm
Re: DSolve and initial value problems Bill Simpson 10/19/12 12:15pm
Re: DSolve and initial value problems Alex 10/19/12 12:16pm
Next Comment >Help | Reply To Topic