Can this differential equation be solved analytically or numerically?

JulieK
Messages
50
Reaction score
0
I have the following differential equation

\begin{equation}
\frac{\partial b}{\partial x}=\frac{b-c}{c^{2}}\end{equation}


where b and c are both functions of x. However, although
I have a closed form relation between c and x, I do not have
such a closed form relation between b and x. Is there any analytic
or numeric way to solve this problem. I want a solution linking b,
c and x
 
Physics news on Phys.org
Well, when c(x) is a known (and integrable) function, then the ode for b(x) is a linear first order ODE and you can solve it by finding the integrating factor.
 
JulieK said:
I have the following differential equation

\begin{equation}
\frac{\partial b}{\partial x}=\frac{b-c}{c^{2}}\end{equation}


where b and c are both functions of x. However, although
I have a closed form relation between c and x, I do not have
such a closed form relation between b and x. Is there any analytic
or numeric way to solve this problem. I want a solution linking b,
c and x

Hi JulieK! :smile:

Wolfram|Alpha gives this analytic solution.
To get a nicer formula, you need a specific c(x).

To solve numerically, the simplest method you can use is Euler's method.
Euler's method uses that:
$$db=\frac{b-c}{c^{2}}dx$$
From a given ##x_0## and ##b_0##, and with a stepsize ##h##, the algorithm is:
$$\left[ \begin{align}x_{n+1} &= x_n + h \\
b_{n+1} &= b_n + h \frac{b_n-c(x_n)}{c(x_n)^{2}} \end{align} \right.$$

A more advanced and accurate method is Runge-Kutta, which is described here.
 
The formal solution is in attachment :
 

Attachments

  • EDOlin.JPG
    EDOlin.JPG
    8.5 KB · Views: 448
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...

Similar threads

Back
Top