Solving An Initial Value DE Using Variation of Parameters

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
Lancelot59
Messages
640
Reaction score
1
I need to find a solution to the following problem:

[tex](x^{2}-1)\frac{dy}{dx}+2y=(x+1)^{2}[/tex]
[tex]y(0)=0[/tex]

I decided to try using variation of parameters. My teacher was unable to show any examples, and I'm having issues understanding the textbook.

From what I see I need to get it onto this form:
[tex]y'=f(x)y+g(x)[/tex]

I think this is correct
[tex]\frac{dy}{dx}=\frac{(x+1)^{2}-2y}{x^{2}-1}=\frac{-2}{x^{2}-1}y+\frac{(x+1)^{2}}{x^{2}-1}[/tex]

Now what do I need to do? I'm having trouble understanding the textbook.
 
Physics news on Phys.org
Ah shoot I don't know if I helped, but

(1) SHouldn't you solve the homogenous solution first?

(2) After you did (1), there should be two constraints
 
flyingpig said:
Ah shoot I don't know if I helped, but

(1) SHouldn't you solve the homogenous solution first?

(2) After you did (1), there should be two constraints

What is the homogenous solution? What constraints?
 
Oh, dear. Flying Pig was assuming you were actually taking a course in differential equations. After all, if you mention "variation of parameters", people are going to assume that you know what "variation of parameters" means and that therefore you know what the "associated homogeous equation" is since you must use the solutions to the associated homogenous equation in the variation of parameters method.

The associated homogenous equation for your equation is what you get when you drop all terms that are not multiples of y or its derivative:
[tex](x^2- 1)\frac{dy}{dx}+ 2y= 0[/tex]
Can you solve that?

Once you have a solution, [itex]y_0(x)[/itex], to that, "variation of parameters" requires that you seek a function u(x) such that [itex]y(x)= u(x)y_1(x)[/itex].
 
Well I got:

[tex]y=e^{2arctanh(x)}c_{1}[/tex]
[tex]c_1=e^{c}[/tex]

But with the initial condition y(0)=0 this doesn't work. C1 would need to be 0 and that can't happen.