# Condition so that $y''+p(x)y'+q(x)y=0$ can be converted in a ODE with constant coefficients

I have to find a necessary and a sufficient condition for the functions $p$ and $q$ so that the linear differential equation : $y''+p(x)y'+q(x)y=0$ can be converted in a linear differential equation with constant coefficients by changing the independent variable of the equation.

Can someone help with this or point me in the right direction? Thanks in advance!

[EDIT:] First of all, I'm not sure if I should post this as an answer to my own question or as an edit. My apologies.

With the tip of Antonio I've did the following, but I'm still not sure if it's completely correct. $\Phi(t)=y(x(t))$

$\Phi^{'}(t)=y^{'}(x(t)).x^{'}(t)$

$\Phi^{''}(t)=y^{''}(x(t)).(x^{'}(t))^{2}+y^{'}(x(t)).x^{''}(t)$

$y^{''}(t)+p(x)y^{'}(t)+q(x)y(t)=0$

$\frac{1}{q(x)}y^{''}(t)+\frac{p(x)}{q(x)}y^{'}(t)+y(t)=0$

$\frac{1}{q(x)}=(x^{'}(t))^{2}\Longrightarrow x^{'}(t)=\frac{1}{\sqrt{q(x)}}$

Condition 1: $\forall x:q(x)>0$

$x^{''}(t)=\frac{x^{'}(t).q^{'}(x)}{2\sqrt{q(x)}}$

$x^{''}(t)=\frac{q^{'}(x)}{2.q(x)}$

Condition 2: $p(x)=\frac{1}{2}q^{'}(x)$

-

What have you tried?  I would suggest letting $x=f(z)$ then writing all of the derivatives with respect to $x$ in terms of derivatives with respect to $z$. – Antonio Vargas Jan 25 at 21:09
@AntonioVargas I've tried something (see edit), but I'm still not sure if I'm following the correct path. – tim_a Jan 26 at 9:08
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 17, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9528762102127075, "perplexity_flag": "head"}