- #1
Davidian
- 4
- 2
TL;DR Summary: Variation of parameter VS Undetermined Coefficients
Hi all,
Suppose we want to solve the following ODE
2y''+y'-y=x+7
with two different methods: undetermined coefficients and variation of parameters.
The solutions to the homogeneous problem are given by y_1(x)=exp(-x) and y_2(x)=exp(x/2) and their Wronskian is (3/2)exp(-x/2).
Undetermined coefficients: by assuming the particular solution to be of the form Ax+B, we find y_p(x)=-x-8 so that the solution is given by
y(x)=c1exp(-x)+c2exp(x/2)-x-8
Variation of parameters: by applying the formula we have u1(x)=-(2/3)(x+6)exp(x) and u2(x)=-(2/3)(2x+18)exp(-x/2) so that if we write
y(x)=u1(x)y1(x)+u2(x)y2(x)=c1exp(-x) +c2exp(x/2) -2x-16
so there is a mismatch of a factor 2 in the particular solution.
Am I doing something silly?
Thanks,
Davide
Hi all,
Suppose we want to solve the following ODE
2y''+y'-y=x+7
with two different methods: undetermined coefficients and variation of parameters.
The solutions to the homogeneous problem are given by y_1(x)=exp(-x) and y_2(x)=exp(x/2) and their Wronskian is (3/2)exp(-x/2).
Undetermined coefficients: by assuming the particular solution to be of the form Ax+B, we find y_p(x)=-x-8 so that the solution is given by
y(x)=c1exp(-x)+c2exp(x/2)-x-8
Variation of parameters: by applying the formula we have u1(x)=-(2/3)(x+6)exp(x) and u2(x)=-(2/3)(2x+18)exp(-x/2) so that if we write
y(x)=u1(x)y1(x)+u2(x)y2(x)=c1exp(-x) +c2exp(x/2) -2x-16
so there is a mismatch of a factor 2 in the particular solution.
Am I doing something silly?
Thanks,
Davide