I have a differential equation that I want solved using initial conditions.
The differential equation is:
DSolve[{y''[x] == (g (A*y[x]*p - m))/m}, y[x], x]
which outputs {{y[x] -> m/(A p) + E^((Sqrt[A] Sqrt[g] Sqrt[p] x)/Sqrt[m]) C[1] + E^(-((Sqrt[A] Sqrt[g] Sqrt[p] x)/Sqrt[m])) C[2]}}
I want to have the initial conditions y'[0]==0, y[0]==0.
When putting in:
DSolve[{y''[x] == (g (A*y[x]*p - m))/m, y'[0] == 0, y[0] == 0} , y[x], x]
I get the error message DSolve::deqn: Equation or list of equations expected instead of True in the first argument {(y'')[x]==(g (-m+A p y[x]))/m,True,True}.
I'm not sure where I'm going wrong with it as it looks exactly what the mathematica examples have with initial conditions.
DSolve:Clear[y, g, A, p, m, x]. – Αλέξανδρος Ζεγγ Oct 09 '18 at 04:05