You are on page 1of 8

UNIVERSIDAD NACIONAL AUTONOMA

DE HONDURAS
EN EL VALLE DE SULA

Asignatura:Física 321

catedrático:Lic MICHAEL JOEL SPILSBURY FUENTES

Sección:18:00

Informe del laboratorio:1

Instructor: Gessiel Orlando Rojas Avelar

Sección: 19:00 Viernes

Alumno: Cesar Adonis Vindel Guzman

Cuenta: 20122002312
2 Cesar_01_20122002312_1900vi.nb

Fecha : 22/02/ 2023

Introducción
En el siguiente informe realizaremos ejercicios de derivadas,
integrales, soluciones de ecuaciones y comparaciones con gráfi-
cas con el programa de Wolfram Mathematica, esto para intro-
ducirnos al aprendizaje de software para la realización de prob-
lemas con mayor complejidad como serán en el resto del curso
y de los laboratorios.

Problemas
Integrales y derivadas
De acuerdo a los últimos 4 números de su numero de cuenta realice las integrales que correspon-
dan a los dígitos. Si algún dígito se repite realice la siguiente integral (Todos deberán presentar 4
integrales)
◼ 1.

0 1-x2 2
In[1]:=   ⅆy ⅆx
-1 - 1-x2 1 + x2 + y2 2
π
Out[1]=
2

◼ 2.

Log[2] (Log[2])2 -y2


x2 +y2
In[2]:=   ⅇ ⅆx ⅆy
0 0

Log[2] -y2 +Log[2]2


x2 +y2
Out[2]=   ⅇ ⅆx ⅆy
0 0

◼ 3.

2 2 x-x2 1
In[3]:=   ⅆ y ⅆ x,
0 0 x2 + y 2 2

◼ 4.
Cesar_01_20122002312_1900vi.nb 3

2 y
In[3]:=   1 ⅆx ⅆy
2 4-y2
π
Out[3]= 2-
2

Se tienen las siguientes funciones

In[4]:= p[x_, y_, z_] = x2 + 3 y - z-1


1
Out[4]= x2 + 3 y -
z

In[5]:= q[x_, y_, z_] = 3 x - y 5 + z2

Out[5]= 3x- y 5 + z2

r[x_, y_, z_] = Cos[x] + Tan[y] - Sin[z]


coseno tangente seno

Out[6]= Cos[x] - Sin[z] + Tan[y]

p[x, y, z] - q[x, y, z]
In[7]:= u[x_, y_, z_] =
q[x, y, z] - r[x, y, z]
1
- 3 x + x2 + 3 y + y5 - - z2
z
Out[7]=

3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y]

In[8]:= f = D[u[x, y, z], x]


deriva

1
- 3 x + x2 + 3 y + y5 - - z2 3 + Sin[x]
z -3 + 2 x
Out[8]= - +
2
3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y] 3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y]

In[9]:= f /. x → 3 , y → 3, z → 1

10 + 6 3  3 + Sin 3  -3 + 2 3
Out[9]= - +
2
1 - 6 3 - Cos 3  + Sin[1] - Tan[3] 1-6 3 - Cos 3  + Sin[1] - Tan[3]

In[10]:= Nf /. x → 3 , y → 3, z → 1


valor numérico

Out[10]= - 1.25149

In[11]:= g = D[u[x, y, z], y]


deriva

1 5 y4
Out[11]= - - 3 x + x2 + 3 y + y5 - - z2 - - Sec[y]2 
z
2 y5
5 y4
3+
2 2 y5
3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y] +
3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y]
4 Cesar_01_20122002312_1900vi.nb

In[12]:= g /. x → 3 , y → 3, z → 1

10 + 6 3  - 15 3
- Sec[3]2  3+ 15 3
2 2
Out[12]= - +
2
1 - 6 3 - Cos 3  + Sin[1] - Tan[3] 1-6 3 - Cos 3  + Sin[1] - Tan[3]

In[15]:= Ng /. x → 3 , y → 3, z → 1


valor numérico

Out[15]= 2.26132

In[16]:= h = D[u[x, y, z], z]


deriva

1
- 3 x + x2 + 3 y + y5 - - z2 2 z + Cos[z] 1
-2z
z z2
Out[16]= - +
2
3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y] 3x- y5 + z2 - Cos[x] + Sin[z] - Tan[y]

In[17]:= h /. x → 3 , y → 3, z → 1

10 + 6 3  2 + Cos[1] 1
Out[17]= - -
2
1 - 6 3 - Cos 3  + Sin[1] - Tan[3] 1-6 3 - Cos 3  + Sin[1] - Tan[3]

In[18]:= Nh /. x → 3 , y → 3, z → 1


valor numérico

Out[18]= - 0.640277

Desarrollar las siguientes Integrales colocando las condiciones respectivas:


In[19]:= Integratexn , x, {x, 0, 1} n ≻ - 1
integra
nx
Out[19]= ≻ -1
1+n

In[20]:= Integrate[Abs[2 - x], {x, 2, ∞}]


integra valor absoluto

Integrate: Integral of -2 + x does not converge on {2, ∞}.



Out[20]=  Abs[2 - x] ⅆ x
2

Calcule el área sombreada entre las dós curvas


In[21]:= NSolve285 - 110 x - 154 x2 + 53 x3 ⩵ 53 x3 + 5 x2 - 95 x
⋯ resuelve

Out[21]= {{x → - 1.38683}, {x → 1.29249}}


Cesar_01_20122002312_1900vi.nb 5

In[22]:= ShowPlot285 - 110 x - 154 x2 + 53 x3 , {x, - 2, 2}, PlotStyle → Red, AxesLabel → {"x", "y"},
mue⋯ representación gráfica estilo de repr⋯ rojo etiqueta de ejes
3 2
Plot53 x + 5 x - 95 x, {x, - 2, 2}
representación gráfica
y

200

x
-2 -1 1 2
Out[22]=

-200

-400

1.2924 1.2924
In[23]:=  285 - 110 x - 154 x2 + 53 x3  ⅆ x -  53 x3 + 5 x2 - 95 x ⅆ x
-1.3868 -1.3868

Out[23]= 509.701

Gráficas
In[24]:= SeedRandom[20 122 002 312]
semilla aleatoria
RandomInteger[{1, 10}, 3]
entero aleatorio

Out[25]= {10, 3, 10}

1 3
In[26]:= F3 = x3 + 3 2 ;
13
1
In[27]:= F10 = 0.6 x2 - 1.8 x3 - 1.2 x2 + 2.7 x + 1;
7
-x
In[28]:= F4 = 1.5 ⅇ 3 Sin[20 x];
seno
6 Cesar_01_20122002312_1900vi.nb

In[29]:= Plot[{F10, F3, F4}, {x, - 2, 1.5},


representación gráfica
PlotLegends → {"Primera Funcion", "Segunda Funcion", "Tercera Funcion"},
leyendas de representación
PlotStyle → {{Thick, Yellow}, {Dotted, Green}, {Thickness[0.002], Pink}},
estilo de represe⋯ grueso amarillo punteado verde grosor rosa
AxesLabel → {"x", "y"}, PlotLabel → "Graficas"]
etiqueta de ejes etiqueta de representación

Graficas
y

Primera Funcion
1
Out[29]= Segunda Funcion
Tercera Funcion
x
-2.0 -1.5 -1.0 -0.5 0.5 1.0 1.5

-1

2. Graficar los siguientes puntos utilizando ListPlot


Use los datos de la Tabla 1 si su numero de cuenta termina en un número par.
In[30]:= Datos = {{1, 5.31}, {2, 21.42}, {3, 48.50}, {4, 88.41}, {5, 146.57},
{6, 201.30}, {7, 281.52}, {8, 359.73}, {9, 464.11}, {10, 556.60}}
Out[30]= {{1, 5.31}, {2, 21.42}, {3, 48.5}, {4, 88.41}, {5, 146.57},
{6, 201.3}, {7, 281.52}, {8, 359.73}, {9, 464.11}, {10, 556.6}}

In[31]:= ϵ0 = 8.85 * 10-12 ;

ρ0 r 2
In[32]:= E1[r_] = ;
4 ϵ0 R

In[33]:= Ajuste1 = FindFit[Datos, E1[r], {ρ0 , R}, r]


ajusta una función parametrizada

FindFit: The step size in the search has become less than the tolerance prescribed by the PrecisionGoal option, but the
gradient is larger than the tolerance specified by the AccuracyGoal option. There is a possibility that the method has
stalled at a point that is not a local minimum.

Out[33]= ρ0 → 1.42625 × 10-7 , R → 714.129

In[34]:= Ajuste2 = NonlinearModelFit[Datos, E1[r], {ρ0 , R}, r]


ajusta a modelo no lineal

NonlinearModelFit : The step size in the search has become less than the tolerance prescribed by the PrecisionGoal
option, but the gradient is larger than the tolerance specified by the AccuracyGoal option. There is a possibility that
the method has stalled at a point that is not a local minimum.

Out[34]= FittedModel 5.64178 r2 


Cesar_01_20122002312_1900vi.nb 7

In[35]:= FittedModel 5.641779891754383` r2 


modelo ajustado

Out[35]= FittedModel 5.64178 r2 

In[36]:= Show[ListPlot[Datos, PlotStyle → Red], Plot[E1[r] /. Ajuste1, {r, 0, 10}],


mue⋯ representación de li⋯ estilo de repr⋯ rojo representación gráfica
AxesLabel → {"r(m)", "E(V/m)"}, PlotLabel → "Graficas"]
etiqueta de ejes número e etiqueta de representación

Graficas
E(V/m)

500

400

Out[36]=
300

200

100

r(m)
2 4 6 8 10

In[37]:= Show[ListPlot[Datos, PlotStyle → Red], Plot[Ajuste2[r], {r, 0, 10}, PlotStyle → Gray],


mue⋯ representación de li⋯ estilo de repr⋯ rojo representación gráfica estilo de repr⋯ gris
AxesLabel → {"r(m)", "E(V/m)"}, PlotLabel → "Graficas"]
etiqueta de ejes número e etiqueta de representación

Graficas
E(V/m)

500

400

Out[37]=
300

200

100

r(m)
2 4 6 8 10
8 Cesar_01_20122002312_1900vi.nb

In[38]:= Show[ListPlot[Datos, PlotStyle → Red], Plot[E1[r] /. Ajuste1, {r, 0, 10}],


mue⋯ representación de li⋯ estilo de repr⋯ rojo representación gráfica
Plot[Ajuste2[r], {r, 0, 10}, PlotStyle → Gray],
representación gráfica estilo de repr⋯ gris
AxesLabel → {"r(m)", "E(V/m)"}, PlotLabel → "Graficas"]
etiqueta de ejes número e etiqueta de representación

Graficas
E(V/m)

500

400

Out[38]=
300

200

100

r(m)
2 4 6 8 10

Miselaneos
In[39]:= Solve3744 - 80 x + 218 x2 - 5 x3 - 3745 x4 + 80 x5 - 218 x6 + 5 x7 + x8 ⩵ 0
resuelve

Out[39]= {{x → - 18}, {x → - 1}, {x → - ⅈ}, {x → ⅈ}, {x → - 4 ⅈ}, {x → 4 ⅈ}, {x → 1}, {x → 13}}

In[41]:= Solve[
resuelve
{2 a + 4 b - 1 c + 2 d - 9 e ⩵ - 23, 4 a + 5 b + 3 c + 9 d + 4 e ⩵ 20, 1 a + 9 b + 11 c + 3 d + 3 e ⩵ - 7,
5 a + 5 b + 5 c - 3 d - 1 e ⩵ 10, 5 a + 6 b + 4 c + 9 d - 2 c ⩵ - 65}, {a, b, c, d, e}] // N
valor numérico

Out[41]= {{a → - 315.279, b → 1041.47, c → - 844.609, d → - 338.687, e → 413.949}}

You might also like