This is a Cauchy-Euler equation: \( x^2 y'' - 2xy' + 2y = 4 \)
First, find the complementary function (\(y_c\)) by solving the homogeneous equation: \( x^2 y'' - 2xy' + 2y = 0 \)
Assume a solution \(y = x^m\)
Then \(y' = mx^{m-1}\) and \(y'' = m(m-1)x^{m-2}\)
Substitute into the homogeneous equation:
$$ x^2 [m(m-1)x^{m-2}] - 2x [mx^{m-1}] + 2[x^m] = 0 $$
$$ m(m-1)x^m - 2mx^m + 2x^m = 0 $$
$$ [m^2 - m - 2m + 2] x^m = 0 $$
$$ [m^2 - 3m + 2] = 0 $$
This is the auxiliary equation
Factorize it:
$$ (m-1)(m-2) = 0 $$
The roots are \(m_1 = 1\) and \(m_2 = 2\)
Since the roots are real and distinct, the complementary function is:
$$ y_c = c_1 x^{m_1} + c_2 x^{m_2} = c_1 x + c_2 x^2 $$
Next, find a particular integral (\(y_p\)) for the non-homogeneous equation \( x^2 y'' - 2xy' + 2y = 4 \)
Since the right-hand side is a constant (4), let's try a constant particular solution \(y_p = A\)
Then \(y_p' = 0\) and \(y_p'' = 0\)
Substitute into the full equation:
$$ x^2(0) - 2x(0) + 2(A) = 4 $$
$$ 2A = 4 \implies A = 2 $$
So, the particular integral is \(y_p = 2\)
The general solution is \(y = y_c + y_p\):
$$ y = c_1 x + c_2 x^2 + 2 $$
This matches the form of option (1)