How to remove "y(x)" from this DE solution?

  • Maple
  • Thread starter Dwightun
  • Start date
  • Tags
    Maple
In summary, the conversation is about how to get the sine of pi x /2 in array form without using "y(x)=" and the solution is to use the assign command after solving the ODE, as shown in the provided example.
  • #1
Dwightun
2
0
TL;DR Summary
DE solution
Hi,
I have my solved DE, like this:
1588938108626.png

How can i get sin(pi x /2) (without "y(x)=") to put it in array?
Thank you in advance
 

Attachments

  • 1588938041446.png
    1588938041446.png
    1.3 KB · Views: 184
Physics news on Phys.org
  • #3
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
It is not correct to use the output of dsolve to define a function like you did above.
Instead, you can use the assign command, for example like this:
Maple 2018:
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);
 
Last edited:
  • Like
Likes Dwightun

1. Can I simply take the derivative on both sides to remove "y(x)" from the DE solution?

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.

2. Is it possible to substitute a different variable for "y(x)" in the DE solution?

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.

3. Can I use algebraic manipulation to remove "y(x)" from the DE 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.

4. Is there a general method for removing "y(x)" from any DE solution?

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.

5. How can I know if I have successfully removed "y(x)" from the DE 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.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
694
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
7K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
268
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
13
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
575
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
510
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
Back
Top