Finding $f$ from $f$'s derivative

57 Views Asked by At

I have a function $f:\mathbb{R}\rightarrow\mathbb{R}$ which can derives with $f(0)=0$ and: $$2xf(x)=(x^2+1)f(x)-(x^2+1)f'(x)+1$$ I want to find the $f$, so I am thinking of using the theorem that: $$F'(x)=G'(x)\iff F(x)=G(x)+c$$ But I don't know to apply this exactly in my case. Any ideas?

2

There are 2 best solutions below

1
On BEST ANSWER

\begin{align} 2xf(x)&=(x^2+1)f(x)-(x^2+1)f'(x)+1 \\ 2xf(x)+(x^2+1)f'(x)&=(x^2+1)f(x)+1 \\ \end{align} Note that \begin{align} \int 2xf(x)+(x^2+1)f'(x)dx=(x^2+1)f(x) \end{align} by product rule.

0
On

On rearrangement, you will get a linear differential equation. Writing $f(x)$ as $y$.

$$(x^2+1)y'-(x-1)^2y=1$$

Using integration factor $\exp\left(\int \tfrac{-(x-1)^2}{x^2+1}dx\right) = e^{-x}(x^2+1)$, the solution is given as:

$$y(e^{-x})(x^2+1)=\int e^{-x} dx=-e^{-x}+c$$