P-2
P-2
cal-2
Solution:
In[18]:= DSolve [y '' [x] + y[x] ⩵ 0, y[x], x]
Out[18]= {{y[x] → 1 Cos [x] + 2 Sin [x]}}
Solution:
Solution:
Solution:
In[21]:= DSolve [ y '' [x] - 6 y '[x] + 13 y[x] ⩵ 0, y[x], x]
y[x] → ⅇ 2 Cos [2 x] + ⅇ 1 Sin [2 x]
3x 3x
Out[21]=
Solution:
Solution:
In[23]:= Needs ["PlotLegends` "]
Cos [x]
Out[26]= + 5 Sin [x]
2
-20 -10 10 20
Out[28]=
2 sin (x) + cos (x)
-2
cos (x)
5 sin (x) + -4
2
y[x] → ⅇ 1 + ⅇ 2
-3 x 2x
Out[29]=
Out[30]= 2.5 ⅇ 2 x
ⅇ +5ⅇ
-3 x 2x
Out[31]=
1
ⅇ +5ⅇ
-3 x 2x
Out[32]= -
2
200
150
100
50
Out[33]=
2.5 ⅇ
2x
-2 -1 1 2
-50
ⅇ +5ⅇ
-3 x 2x
-100
1
5ⅇ ⅇ
2x -3 x
-
2
Solution:
5
x2 x2
-ⅇ +4ⅇ
-3 -3
Out[35]= x
50
-2 -1 1 2
4ⅇ x-ⅇ
Out[39]= -3 x2 -3
-50
6ⅇ x+3ⅇ
-3 x2
7ⅇ
-3 x2
x - 10
-100
-5 ⅇ
-3 x2
x - 1.5
Solution:
6
3 x4
43 x 3 x4
43 x
Out[40]= y[x] → ⅇ 2 Cos +ⅇ 1 Sin
4 4
43 x 43 x
Out[41]= 4 ⅇ 3 x 4 Cos -ⅇ
3 x4
Sin
4 4
43 x 43 x
Out[42]= 6 ⅇ 3 x 4 Cos +3ⅇ
3 x4
Sin
4 4
43 x 43 x
Out[43]= 7 ⅇ 3 x 4 Cos - 10 ⅇ
3 x4
Sin
4 4
100
-4 -2 2 4
-100
-200
Out[44]=
2 sin (x) + cos (x)
-300
cos (x)
-400
5 sin (x) +
2
-500
Solution:
7
{{y[x] → ⅇ 1 + ⅇ x 2 }}
x x
Out[45]=
Out[46]= 0.5 ⅇ x + 3 ⅇ x x
-3 ⅇ - 2 ⅇ x
x x
Out[47]=
-ⅇ + 7 ⅇ x
x x
Out[48]=
-6 ⅇ + ⅇ x
x x
Out[49]=
ⅇx 2 ⅇx x
Out[50]= +
5 3
100
50
3 ⅇ x + 0.5
x
Out[51]= -4 -2 2 4
-2 ⅇ x - 3 ⅇ
x
-50
7ⅇ x-ⅇ
x x
ⅇ x-6ⅇ
x x
2ⅇ xx
ⅇx
+
3 5
Solution:
8
In[124]:= Sol = DSolve [x ^ 2 y '' [x] - x y '[x] + y[x] ⩵ 2 Log [x], y[x], x]
Sol1 = Evaluate [y[x] / . Sol 〚 1〛 / . {C[1] → 0.5, C[2] → 3}]
Sol2 = y[x] / . Sol 〚 1〛 / . {C[1] → - 3, C[2] → - 2}
Sol3 = y[x] / . Sol 〚 1〛 / . {C[1] → - 1, C[2] → 7}
Sol4 = y[x] / . Sol 〚 1〛 / . {C[1] → - 6, C[2] → 1}
Sol5 = y[x] / . Sol 〚 1〛 / . {C[1] → 1 / 5, C[2] → 2 / 3}
Plot [{Sol1, Sol2, Sol3, Sol4, Sol5 },
{ x, - 15, 15 } , PlotLegends → { Sol1, Sol2, Sol3, Sol4, Sol5 } ]
x 2
Out[129]= + x Log [x] + 2 × (2 + Log [x])
5 3
300
200
0.5 x + 3 x log(x) + 2 (log(x) + 2)
-3 x - 2 x log(x) + 2 (log(x) + 2)
Out[130]=
100 -x + 7 x log(x) + 2 (log(x) + 2)
-6 x + x log(x) + 2 (log(x) + 2)
x 2
-15 -10 -5 5 10 15 + x log(x) + 2 (log(x) + 2)
5 3
-100
250
1 1
3 x sin 3 log(x) + 0.5 x cos
200 2 2
1 1
-2 x sin 3 log(x) - 2 x cos
2 2
150
1 1
Out[151]= 7 x sin 3 log(x) - x cos 3
2 2
100
1 1
4 x sin 3 log(x) - 6 x cos
2 2
50 2 1 1
x sin 3 log(x) + 5 x cos
3 2 2
-15 -10 -5 5 10 15
2
Out[171]= + Cosh [5] × Cosh [x] + Sinh [5] × Sinh [x]
3
600 000
500 000
0.521095 sinh(x) + 1.12763 cosh(x) + 3
400 000 -sinh(2) sinh(x) + cosh(2) cosh(x) - 2
-15 -10 -5 5 10 15
Out[176]= 7 + x Cot [1] + Csc [1]2 Log [- Cos [1] + x Sin [1]]
Out[177]= 4 + x Cot [6] + Csc [6]2 Log [- Cos [6] + x Sin [6]]
2 2
Out[178]= - x Cot [5] + Csc [5] Log [- Cos [5] - x Sin [5]]
3
60
-40