Od WM 2em14

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

In[ ]:= DSolve[{x ''[t] - x '[t] - 2 x[t] == 4}, x[t], t]

resolvedor diferencial

In[ ]:= x[t] → - 2 + ⅇ-t C[1] + ⅇ2 t C[2]


constante constante
DSolve[{x ''[t] - x '[t] - 2 x[t] == 4, x[0] ⩵ 0, x[1] ⩵ 2}, x[t], t]
resolvedor diferencial

Out[ ]= x[t] → - 2 + ⅇ-t C[1] + ⅇ2 t C[2]

2 ⅇ-t - 2 ⅇ + ⅇ3 + ⅇt - ⅇ3 t - ⅇ3+t + 2 ⅇ1+3 t 


Out[ ]= x[t] → 
- 1 + ⅇ3

In[ ]:= N[%]


valor numérico

Out[ ]= x[t] → 0.104791 × 2.71828-1. t


14.649 + 2.71828t - 1. × 2.718283. t - 1. × 2.718283.+t + 2. × 2.718281.+3. t 

In[ ]:= Simplify[%]


simplifica

Out[ ]= x[t] → - 2. + 1.53509 ⅇ-1. t + 0.464914 ⅇ2. t 

In[ ]:= Plot0.4649 ⅇ2.` t + 1.53509` ⅇ-1.` t - 2, {t, 0, 4}


representación gráfica
700

600

500

400
Out[ ]=
300

200

100

1 2 3 4
Ejercicio 2
2
V (x) =  7 (x')2  ⅆt S.A
0
x (0) = 9
x (2) = 11

D7 x'[t]2 , x[t]

In[2]:= D7 x '[t]2 , x '[t]


deriva

Out[2]= 14 x′ [t]

In[3]:= D[14 x '[t], t]


deriva

Out[3]= 14 x′′ [t]

In[4]:= DSolve[{14 x ''[t] ⩵ 0}, x[t], t]


resolvedor diferencial

In[5]:= {{x[t] → C[1] + t C[2]}}


constante constante
DSolve[{14 x ''[t] ⩵ 0, x[0] ⩵ 9, x[2] ⩵ 11}, x[t], t]
resolvedor diferencial

Out[5]= {{x[t] → C[1] + t C[2]}}

In[7]:= {{x[t] → 9 + t}}

Plot[9 + t, {t, 0, 2}]


representación gráfica

Out[7]= {{x[t] → 9 + t}}

11.0

10.5

Out[8]= 10.0

9.5

0.5 1.0 1.5 2.0


Ejercicio 3
2
40 - x '
V (x) =  ⅆt
0 2
S.A
x 0 = 20
x 40 = 0

- x '[t]2
In[ ]:= D , x[t]
deriva 2

Out[ ]= 0

- x '[t]2
In[ ]:= D , x '[t]
deriva 2

Out[ ]= - x′ [t]

In[ ]:= D[- x′ [t], t]


deriva

Out[ ]= - x′′ [t]

In[ ]:= DSolve[{- x′′ [t] == 0}, x[t], t]


resolvedor diferencial

Out[ ]= {{x[t] → C[1] + t C[2]}}

In[ ]:= DSolve[{- x′′ [t] == 0, x[0] ⩵ 20, x[40] ⩵ 0}, x[t], t]
resolvedor diferencial
40 - t
Out[ ]= x[t] → 
2

In[ ]:= Simplify[%]


simplifica
t
Out[ ]= x[t] → 20 - 
2
2 P3 (Ejercicio 3) VRJE (06-03-19).nb

t
In[ ]:= Plot20 - , {t, 0, 40}
2 gráfica
representación

20

15

Out[ ]= 10

10 20 30 40
Ejercicio 4
2
J (x) =  x + tx ' - x '2  ⅆ t
1
S.A
x 1 = 3
x 2 = 4

In[9]:=

Dx[t] + t x '[t] - x '[t]2 , x[t]


deriva

Out[9]= 1

In[10]:= Dx[t] + t x '[t] - x '[t]2 , x '[t]


deriva

Out[10]= t - 2 x′ [t]

In[12]:= D[t - 2 x′ [t], t]


deriva

Out[12]= 1 - 2 x′′ [t]

In[13]:= DSolve[{1 - 2 x ''[t] == 1}, x[t], t]


resolvedor diferencial

Out[13]= {{x[t] → C[1] + t C[2]}}

In[14]:= DSolve[{1 - 2 x ''[t] == 1, x[1] ⩵ 3, x[2] ⩵ 4}, x[t], t]


resolvedor diferencial

Out[14]= {{x[t] → 2 + t}}

In[15]:= Plot[2 + t, {t, 1, 2}]


representación gráfica

4.0

3.8

3.6

Out[15]=

3.4

3.2

1.2 1.4 1.6 1.8 2.0


Ejercicio 5
2
V(x)=∫0 (4 (x ')2 + 12 tx' - 5 t) ⅆt
S.A
x(0)=1
x(2)=4
In[1]:=

D4 x '[t]2 + 12 t x '[t] - 5 t, x[t]


deriva

Out[1]= 0

In[2]:= D4 x '[t]2 + 12 t x '[t] - 5 t, x '[t]


deriva

Out[2]= 12 t + 8 x′ [t]

In[3]:= D[12 t + 8 x′ [t], t]


deriva

Out[3]= 12 + 8 x′′ [t]

In[4]:= DSolve[{12 + 8 x′′ [t] == 0}, x[t], t]


resolvedor diferencial

3 t2
Out[4]= x[t] → - + C[1] + t C[2]
4

In[5]:= DSolve[{12 + 8 x′′ [t] == 0, x[0] ⩵ 1, x[2] ⩵ 4}, x[t], t]


resolvedor diferencial
1
Out[5]= x[t] → 4 + 12 t - 3 t2 
4

1
In[6]:= Plot 4 + 12 t - 3 t2 , {t, 0, 2}
4
representación gráfica

4.0

3.5

3.0

Out[6]= 2.5

2.0

1.5

0.5 1.0 1.5 2.0


Ejercicio 6
2
V(x)=∫0 (12 tx + (x ')2 ) ⅆt
S.A
x(0)=2
x(2)=8
In[7]:=

D12 t x[t] + x '[t]2 , x[t]


deriva

Out[7]= 12 t

In[8]:= D12 t x[t] + x '[t]2 , x '[t]


deriva

Out[8]= 2 x′ [t]

In[9]:= D[2 x′ [t], t]


deriva

Out[9]= 2 x′′ [t]

In[10]:= DSolve[{2 x′′ [t] == 12 t}, x[t], t]


resolvedor diferencial

Out[10]= x[t] → t3 + C[1] + t C[2]

In[11]:= DSolve[{2 x′′ [t] == 12 t, x[0] ⩵ 2, x[2] ⩵ 8}, x[t], t]


resolvedor diferencial

Out[11]= x[t] → 2 - t + t3 

In[12]:= Plot2 - t + t3 , {t, 0, 2}


representación gráfica

5
Out[12]=

0.5 1.0 1.5 2.0


Ejercicio 7
2
V(x)=∫0 ((x ')2 + 4 t3 x) ⅆt
S.A
x(0)=1
x(2)=4
In[ ]:=

Dx '[t]2 + 4 t3 x[t], x[t]


deriva

Out[ ]= 4 t3

In[1]:= Dx '[t]2 + 4 t3 x[t], x '[t]


deriva

Out[1]= 2 x′ [t]

In[2]:= D[2 x′ [t], t]


deriva

Out[2]= 2 x′′ [t]

In[3]:= DSolve2 x′′ [t] == 4 t3 , x[t], t


resolvedor diferencial

t5
Out[3]= x[t] → + C[1] + t C[2]
10

In[4]:= DSolve2 x′′ [t] == 4 t3 , x[0] ⩵ 1, x[2] ⩵ 4, x[t], t


resolvedor diferencial

1
Out[4]= x[t] → 10 - t + t5 
10

1
In[5]:= Plot 10 - t + t5 , {t, 0, 2}
10
representación gráfica

4.0

3.5

3.0

Out[5]= 2.5

2.0

1.5

0.5 1.0 1.5 2.0

You might also like