How do I enter a differential equation in maple?

Click For Summary
SUMMARY

The discussion focuses on entering a differential equation into Maple, specifically the equation dydx + 2x = 2y. The user initially attempted to define the equation using de1:=diff(y(x), x) + 2x = 2y, which resulted in an error due to the incorrect representation of the terms. The correct formulation is de: diff(y(x), x) + 2*x = 2*y(x). Additionally, users are advised to consult introductory tutorials, such as those available on the Math Department's website and the Maplesoft website, to build foundational knowledge in using Maple effectively.

PREREQUISITES
  • Basic understanding of ordinary differential equations (ODEs)
  • Familiarity with Maple software, specifically version compatibility
  • Knowledge of syntax for mathematical expressions in programming
  • Access to online tutorials for Maple
NEXT STEPS
  • Review Maple syntax for defining variables and equations
  • Explore the Maple documentation for differential equation solving
  • Learn about the Maple dsolve function and its usage
  • Investigate additional Maple tutorials on the Maplesoft website
USEFUL FOR

Students taking courses in ordinary differential equations, educators teaching ODEs, and anyone looking to enhance their skills in using Maple for mathematical computations.

mmont012
Messages
39
Reaction score
0
Hello,
I am currently taking ODE's and the class has an optional lab to accompany it. So far in the lab we've been doing some pretty basic stuff. But we've finally moved on to entering in differential equations, and I'm confused. 1. Homework Statement

dydx+2x=2y

How do I enter this equation into maple?

Homework Equations

The Attempt at a Solution


I've tried
de1:=diff(y(x), x) +2x=2y;
Which gives me d/dx*y(x) +2x=2y

This isn't correct because it's not like the original problem.

Then I tried to solve it
dsolve(de1) ;

And it gave me an error message saying that I can't have y(x) in the same equation as y.

Any guidance will be extremely helpful. This is my first go at a programming language, so I'm not very familiar with a lot of things.
 
Physics news on Phys.org
mmont012 said:
Hello,
I am currently taking ODE's and the class has an optional lab to accompany it. So far in the lab we've been doing some pretty basic stuff. But we've finally moved on to entering in differential equations, and I'm confused.


1. Homework Statement


dydx+2x=2y

How do I enter this equation into maple?

Homework Equations

The Attempt at a Solution


I've tried
de1:=diff(y(x), x) +2x=2y;
Which gives me d/dx*y(x) +2x=2y

This isn't correct because it's not like the original problem.

Then I tried to solve it
dsolve(de1) ;

And it gave me an error message saying that I can't have y(x) in the same equation as y.

Any guidance will be extremely helpful. This is my first go at a programming language, so I'm not very familiar with a lot of things.

You need to write ##y(x)## everywhere, not just in the derivative. Also, 2x is un-interpretable; you need 2*x, etc. (Maple just thinks 2x is some object with a weird name '2x'; it does not know you mean 2 times x.) So, you need
de: diff(y(x),x) + 2*x =2*y(x);

You should not just sit down and try to use any sophisticated computer package with 0 background. At least look at some of the introductory tutorials on-line, such as http://www.math.tamu.edu/~dallen/Maple_Tutorial/ .
 
Thank you for your reply. Once I get to school tomorrow I will try it out.
As for not having experience before this class, no prior knowledge in programming was necessary to take it. The reason that I decided to enroll in it, is because I thought that it would help me have a better understanding of the material from the lecture and with visualizing what is happening in the homework problems.
Thank you for the link to the tutorials.
 
mmont012 said:
Thank you for your reply. Once I get to school tomorrow I will try it out.
As for not having experience before this class, no prior knowledge in programming was necessary to take it. The reason that I decided to enroll in it, is because I thought that it would help me have a better understanding of the material from the lecture and with visualizing what is happening in the homework problems.
Thank you for the link to the tutorials.

You should also go to the Maplesoft website and look at (or download) the many, many free tutorials available there.

There are some more-or-less minor differences between some of the commands/methods between different releases of Maple, but the underlying basics have remained almost the same from Maple V onward. I think that most of the time if you are using an instruction that has become obsolete, Maple will give you a message to that effect.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 3 ·
Replies
3
Views
923
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K