- #1
gmmstr827
- 86
- 1
I'm working on a lab for my Differential Equations class where we have to use a computer graphing program to do the work for us. I have chosen to use Maple 14. So far what I have to do is graph a differential equation and find the solution to it. However, it says that I should substitute y=ax+b in the D.E. to determine what the coefficients a and b must be in order to get a solution.
The D.E. is dy/dx=sin(x-y)
The syntax to graph the equation is as follows:
> with(DEtools);
> DEplot(diff(y(x), x) = sin(x-y(x)), y(x), x = -10 .. 10, y = -10 .. 10);
To solve the equation, I use this syntax:
> ode := diff(y(x), x) = sin(x-y(x));
> dsolve(ode);
Which gives me a solution of y(x) = x-2*arctan((-x+2+_C1)/(-x+_C1)).
How do I use Maple 14 to substitute y=ax+b to find what the coefficients a and b must be in order to get a solution?
I tried adding initial conditions after the previous calculations as follows:
>ics := y(x) = a*x+b
>dsolve({ics, ode})
When I hit "Enter" for the last part, it does not give any output.
The D.E. is dy/dx=sin(x-y)
The syntax to graph the equation is as follows:
> with(DEtools);
> DEplot(diff(y(x), x) = sin(x-y(x)), y(x), x = -10 .. 10, y = -10 .. 10);
To solve the equation, I use this syntax:
> ode := diff(y(x), x) = sin(x-y(x));
> dsolve(ode);
Which gives me a solution of y(x) = x-2*arctan((-x+2+_C1)/(-x+_C1)).
How do I use Maple 14 to substitute y=ax+b to find what the coefficients a and b must be in order to get a solution?
I tried adding initial conditions after the previous calculations as follows:
>ics := y(x) = a*x+b
>dsolve({ics, ode})
When I hit "Enter" for the last part, it does not give any output.