Piecewise Linear Rayleigh-Ritz

283 Views Asked by At

I am trying to get this equation $-x^2y'' - 2xy' + 2y = -4x^2$

into Piecewise Linear Rayleigh-Ritz format $-\frac{d}{dx} (p(x) \frac{dy}{dx}) + q(x)y = f(x)$

I pretty much needs to figure out what is $p(x), q(x), f(x)$

Thanks