I would like to find the exact solution of the following nonlinear ODE.
$$ A_1\frac{d^2 \rho}{dx^2}+(1-2 \rho + A_2)\frac{d \rho}{dx}-A_3\rho+A4=0, \hspace{10mm} (eq.1)$$
with
$$\rho(0)=b_1 , \hspace{10mm} \rho(1)=b_2.$$
Here $\rho$ is a differentiable function and $A_1, A_2, A_3, A_4, b_1$ and $b_2$ are real constants.
My attempt: I tried to convert this equation into first-order equation by substituting
$$w(\rho)=\frac{d\rho}{dx}$$ which leads to $$A_1 w \frac{dw}{dp}=(2\rho-A2-1)w+A3\rho-A4.$$
Letting $2\rho+c=z$ where $c=-A_2-1$ gives
$$2A_1w\frac{dw}{dz}=z(w+\frac{A3}{2})-\frac{A3}{2}c-A4.$$
which can be written as
$$c_1ww^{'}=z(w+c_2)+c_3 \hspace{10mm} (eq.2)$$
where
$c_1=2A_1$, $c_2=\frac{A_3}{2}$, $c_3=-\frac{A_3}{2}-A_4$.
I don't know how to proceed further and solve (eq.2).
Remark: I have solved this equation numerically. So I want an analytical solution for this equation.
Could anyone among you help me in solving eq.(1) or eq.(2) analytically? Any help is appreciated.
Thank you.
Hint:
your last equation in the homogeneous case has the form $$yy'=a(y+b) \Rightarrow \frac{yy'}{y+b}=a \Rightarrow y'(\frac{y+b}{y+b}-\frac{b}{y+b})=a \Rightarrow y'-\frac{by'}{y+b}=a $$ $$ \Rightarrow \int y'-\int \frac{by'}{y+b}= \int a $$