Jump to content

Recommended Posts

Posted (edited)

If you're solving a system of equations then they should be written as an array in the first parameter, the second parameter should be the function you're trying to solve for. (same as using the solve command for non-differential equations).

 

e.g.

ec1 := Diff(f(t),t)^2 - 4*f(t)  = 0;
ec2 := Diff(f(t),t,t) - 2  = 0;
dsolve([ec1,ec2],f(t));

Edited by the tree
Posted
If you're solving a system of equations then they should be written as an array in the first parameter, the second parameter should be the function you're trying to solve for. (same as using the solve command for non-differential equations).

 

e.g.

ec1 := Diff(f(t),t)^2 - 4*f(t)  = 0;
ec2 := Diff(f(t),t,t) - 2  = 0;
dsolve([ec1,ec2],f(t));

 

i dont understand

where I place a(t) ?

Posted

If you're trying to solve for a(t) then you just need dsolve([ec1,ec2],a(t));.


Merged post follows:

Consecutive posts merged

Alternatively, if you're trying to solve for all three functions at once (not that I'm sure you'd get a solution at all) then you use the PDEtools package to help with that. The relevant help file for doing so is called dsolve,system.

 

PDEtools[declare]((A,a,f)(t), prime = t);
ec1 :=  #whatever
ec2 :=  #whatever
dsolve([ec1,ec2]);

Note that'll have to use diff when defining the equations this way, rather than the inert Diff.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.