Hallo,
Löse die DGL via Variation der Konstanten
yh stimmt, yh = C*e^(-cosx)
Setze C=C(x)
yp= C(x) e^(-cos(x))
yp'=C'(x) e^(-cos(x)) +C(x)e^(-cos(x)) sin(x)
Setzte yp und yp' in die DGL ein und vereinfache:
Du bekommst:
C'(x)= sin(2x) e^(cos(x) ->Lösung via partielle Integration
C(x)=
->yp= C(x) e^(-cos(x))
y=yh+yp
Lösung:
y(x)=c1e−cos(x)−2cos(x)+2