> | restart; |
> | eqa1:=diff(y(x),x,x)+9*y(x)=sin(3*x); |
> | so1:=dsolve({eqa1,D(y)(0)=0,y(0)=1},y(x)); |
> | eqa2:=diff(y(x),x,x)+10*y(x)=sin(3*x); |
> | so2:=dsolve({eqa2,D(y)(0)=0,y(0)=1},y(x)); |
> | lso1:=rhs(so1);lso2:=rhs(so2); |
> | with(plots): |
> | plot({lso1,lso2},x=0..50,y=-10..10,color=[blue,red]); |
> |