What is the general solution to the differential equation $xy'-2y =x^2$?

Click For Summary

Discussion Overview

The discussion revolves around finding the general solution to the differential equation \(xy'-2y =x^2\). Participants explore various methods to solve this first-order linear differential equation, including transformations and substitutions.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Exploratory

Main Points Raised

  • One participant proposes multiplying the equation by \(x^{-3}\) to facilitate the solution, leading to the expression \(\frac{d}{dx}\left(x^{-2}y \right)=x^{-1}\).
  • Another participant reformulates the equation into a first-order linear form and identifies the integrating factor as \(x^{-2}\), confirming the equivalence of their approach to the previous method.
  • A different method is suggested, recognizing the equation as a Cauchy-Euler type, which involves substituting \(y=x^{r}\) and solving for \(r\), noting that reduction of order is necessary to obtain the logarithmic term.
  • Additionally, a substitution \(t=\ln(x)\) is mentioned, which transforms the equation into a first-order linear form with constant coefficients, allowing for the application of standard solution methods.

Areas of Agreement / Disagreement

Participants present multiple methods for solving the differential equation, indicating a lack of consensus on a single approach. Each method has its own merits and assumptions, and no definitive agreement on the best method is reached.

Contextual Notes

The discussion includes various assumptions about the methods used, such as the conditions under which the transformations are valid and the implications of using different solution techniques. Some steps in the reasoning may depend on specific interpretations of the differential equation.

Albert1
Messages
1,221
Reaction score
0
Please find the general solution of :

$xy'-2y =x^2$
 
Physics news on Phys.org
Multiplying through by $x^{-3}$ where $x\ne0$, we obtain:

$$x^{-2}y'-2x^{-3}y=x^{-1}$$

Now we may observe that the left have side is the derivative of a product:

$$\frac{d}{dx}\left(x^{-2}y \right)=x^{-1}$$

Integrate with respect to $x$:

$$\int\frac{d}{dx}\left(x^{-2}y \right)\,dx=\int x^{-1}\,dx$$

$$x^{-2}y=\ln|x|+C$$

Thus, we find the general solution is:

$$y(x)=x^2\left(\ln|x|+C \right)$$
 
Just because it might not be obvious why we should multiply by [math]\displaystyle \begin{align*} x^{-3} \end{align*}[/math]...

[math]\displaystyle \begin{align*} x\,\frac{dy}{dx} - 2y &= x^2 \\ \frac{dy}{dx} - \frac{2}{x}\,y &= x \end{align*}[/math]

which is now a first order linear DE. The integrating factor is

[math] \displaystyle \begin{align*} e^{ \int{ -\frac{2}{x} \, dx } } = e^{ -2\ln{(x)} } = e^{ \ln{ \left( x^{-2} \right) } } = x^{-2} \end{align*} [/math]

so multiplying both sides of our linear DE by the integrating factor gives

[math]\displaystyle \begin{align*} x^{-2}\,\frac{dy}{dx} - 2x^{-3}\,y &= \frac{1}{x} \end{align*}[/math]

which is the same as multiplying the original equation by [math]\displaystyle \begin{align*} x^{-3} \end{align*}[/math].
 
Another method is to recognize that the equation is Cauchy-Euler. Hence, you can substitute $y=x^{r}$ and solve for $r$. You will need reduction of order to get the logarithm function. Alternatively, the substitution $t=\ln(x)$ renders the equation first-order linear with constant coefficients, at which point you employ the usual methods.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 52 ·
2
Replies
52
Views
8K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K