Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
partial differential equations

Subject: partial differential equations

From: mona

Date: 6 Mar, 2012 12:36:13

Message: 1 of 2

Hi every body
I'd like to solve the following partial differential equations using matlab

(dx/dt)-(t/2)(dz/dt)=0
[x(dy/dt)-(t/2)z(dy/dt)-(1/2)yz]=(-1/2)y+(d^2(y)/dt^2)
[x(dz/dt)-(t/2)z(dz/dt)]=(d^2(z)/dt^2)
 
Does anyone has an idea ?

Thank you in advance for all answer.

muna

Subject: partial differential equations

From: Nasser M. Abbasi

Date: 6 Mar, 2012 12:51:46

Message: 2 of 2

On 3/6/2012 6:36 AM, mona wrote:
> Hi every body
> I'd like to solve the following partial differential equations using matlab
>
> (dx/dt)-(t/2)(dz/dt)=0
> [x(dy/dt)-(t/2)z(dy/dt)-(1/2)yz]=(-1/2)y+(d^2(y)/dt^2)
> [x(dz/dt)-(t/2)z(dz/dt)]=(d^2(z)/dt^2)
>
> Does anyone has an idea ?
>
> Thank you in advance for all answer.
>
> muna

muna (or is that mona?), are you sure there are partial
differential equations?

They seems to me to be 3 coupled differential equations. Each
dependent variable (x,y,z) is being differentiated to the same
independent variable t.

Have you tried to set up the state equations for them
so as to use ode45?

You start by letting x=x1, y=x2, z=x3, then take derivatives
and try to get it to the form [x1 x2 x3]' = A [x1 x2 x3], i,e,

   x' = A x

then you can use ode45. (you need the initial conditions
vector ofcourse).

--Nasser

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us