$f(x)$ such that $f(x)+f'(x)=\frac{1+3x+x^2}{\sqrt{1+x^2}}$

60 Views Asked by At

I started with $\displaystyle f(x)=(A+Bx)\sqrt{1+x^2}$.

So, $f(x)+f'(x)=\dfrac{(A+B)+(A+B)x+(2B+A)x^2+Bx^3}{\sqrt{1+x^2}}=\dfrac{1+3x+x^2}{\sqrt{1+x^2}}$.

Equating the coefficients of like powers of $x$, $B=0$. But then there are two different values of $A$, which is impossible. Does it mean there exists no such $f(x)$? Or am I doing something wrong?

2

There are 2 best solutions below

2
On

The given ODE is linear and after multiplying by $e^x$ we find that $$D(e^xf(x))=e^x(f(x)+f'(x))=\frac{(1+3x+x^2)e^x}{\sqrt{1+x^2}}$$ which implies that $$f(x)=f(0)+e^{-x}\int_0^x\frac{(1+3t+t^2)e^t}{\sqrt{1+t^2}}\,dt.$$ I think that the integral has no closed form. Where does this ODE come from?

1
On

What you have here is a first-order differential equation. Letting $y=f(x)$, your equation is $$y'+y=\frac{1+3x+x^2}{\sqrt{1+x^2}}=:g(x)$$ There is quite a complete theory to deal with such differential equations. Try multiplying both sides by $e^x$ to find that $$e^x y'+e^xy=e^xg(x)$$ How can you simplify the left-hand side (think of the product rule)?