- #1
It is not correct to use the output of dsolve to define a function like you did above.Dwightun said:Summary:: DE solution
Hi,
I have my solved DE, like this:
View attachment 262344
How can i get sin(pi x /2) (without "y(x)=") to put it in array?
Thank you in advance
restart;
# Specify ODE and initial conditions.
ode := diff(y(x), x, x) = -y(x);
ics := y(0) = 1, D(y)(0) = 0;
# Solve ODE and assign the output.
sol := dsolve({ode, ics}, y(x));
assign(sol);
# Now you can evaluate the solution.
plot(y(x), x = 0..2*Pi);
No, taking the derivative on both sides of a differential equation solution is not a valid method for removing "y(x)". This will result in a new differential equation that may not be equivalent to the original one.
Yes, it is possible to substitute a different variable for "y(x)" in the DE solution. However, this substitution should be carefully chosen in order to maintain the equivalence of the solution.
In some cases, algebraic manipulation may be used to remove "y(x)" from the DE solution. However, this method can be complex and may not work for all types of differential equations.
No, there is no single general method for removing "y(x)" from any DE solution. The method used will depend on the specific form of the differential equation and its solution.
You can know if you have successfully removed "y(x)" from the DE solution by checking if the resulting equation is equivalent to the original one. This can be done by plugging the new equation back into the original DE and verifying that it satisfies the equation.