# ED Lab 8

Nov 19th, 2019
541
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. https://rextester.com/l/octave_online_compiler
2.
3. a)
4. y'' - 6 * y' + 9 * y = e ^ (3 * x)
5. b)
6. y'' - 2 * y' + 2 * y = 5 * e ^ (2 * x) * cos(x)
7. c)
8. {   y'' - 2 * y' + y = 0
9. {   y(1) = 1
10. {   y'(1) = 2
11.
12. Rezolvare:
14. syms y(x)
15. %   a)
16. dsolve(diff(diff(y(x), x), x) - 6 * diff(y(x), x) + 9 * y - exp(3 * x))
17. %   inca o metoda pt y''
18. dsolve(diff(y(x), x, x) - 6 * diff(y(x), x) + 9 * y - exp(3 * x))
19. %   inca o metoda pt y''
20. dsolve(diff(y(x), 2) - 6 * diff(y(x), x) + 9 * y - exp(3 * x))
21.
22. %   b)
23. dsolve(diff(diff(y(x), x), x) - 2 * diff(y(x), x) + 2 * y - 5 * exp(2 * x) * cos(x))
24. %   c)
25. dsolve(diff(y(x), 2) - 2 * diff(y(x), x) + y == 0, y(1) == 1, diff(y(x), x)(1) == 2)
26. %0  dunno ce e sau ce treb sa ii fac sa mearga
27. syms y1(x)
28. y1(x) = x*x*A*exp(3*x)
29. diff(y1(x),x)
30. diff(y1(x),2)
31.
32. solve(diff(y1(x), 2) - 6*diff(y1(x),x) + 9*y1(x) == exp(3*x),A)
33. %0
RAW Paste Data