hello

September 16, 2008

untitled

I am working on differential equation \frac{dy}{dx}=\frac{x-y}{x+y} .

The solution with no initial conditions is

dsolve(‘Dy = (x-y)/(x+y)’, ‘x’)

ans =

(-x*C1+(2*x^2*C1^2+1)^(1/2))/C1
(-x*C1-(2*x^2*C1^2+1)^(1/2))/C1

Given the initial condition ‘y(0) = 3′, and setting my solution equal to “sol”,

sol = dsolve(‘Dy = (x-y)/(x+y)’, ‘y(0) = 3′, ‘x’)

sol =

-x+3*(2/9*x^2+1)^(1/2)

Using ezplot i can show the graph with the initial condition.

ezplot(sol, [0 2])

Hello world!

September 2, 2008

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!


Follow

Get every new post delivered to your Inbox.