Documentos de Académico
Documentos de Profesional
Documentos de Cultura
µ ¶ xx+1
2 −1
x2 − x + 1
lı́m √ (1)
x→∞ x2 − 1 − 4
SOLUCIÓN: limit(((x**2-x+1)/(x**2-1)-4))**((x**2-1)/(x**2+1)),x=infinity)
2. (1 PUNTO) Calcula a seguinte derivada:
µ ¶
∂2 e−xy sin(3x + 4y)
√ (2)
∂x∂y lnx x + y
SOLUCIÓN: diff((exp(-x*y)*sin(3*x + 4*y))/(log(x)*sqrt(x + y)), y, x)
3. (1 PUNTO) Calcula a seguinte integral:
Z ∞
4e−x
dx (3)
0 x2 − 3x + 1
n
X
(a + id)ri−1 (4)
i=0
SOLUCIÓN: taylor(log(x)/x, x = 5, 7)
6. (1 PUNTO) Representa gráficamente x = ucosv, y = usenv, z = ucosu con 5000 puntos e u ∈ [0, 10], v ∈
[0, 2π]
SOLUCIÓN: with(plots): plot3d([u*cos(v), u*sin(v), u*cos(u)], u = 0..0, v = 0..2*Pi, numpoints
= 5000)
7. (1 PUNTO) Representa gráficamente x = cost + 1, y = sent + 2, z = 3cost
SOLUCIÓN: with(plots): spacecurve([cos(t) + 1, sin(t) + 2, 3*cos(t)], t = 0..100)
√
8. (1 PUNTO) Resolve simbólicamente o sistema de ecuacións x2 + y 2 = 1, x + y = x − y
SOLUCIÓN: solve(x**2 + y**2 = 1, sqrt(x + y) = x - y, [x, y])
9. (1 PUNTO) Ordea por orde ascendente o polinomio 6xy 5 + 12y 4 + 14x3 y 3 − 15x2 y 3 + 9x3 y 2 − 30xy 2 −
35x4 y + 18x2 y + 21x5
SOLUCIÓN: sort(6*x*y**5 + 12*y**4 + 14*x**3*y**3 - 15*x**2*y**3 + 9*x**3*y**2 - 30*x*y**2
- 35*x**4*y + 18*x**2*y + 21*x**5, [x, y], ’ascending’)
10. (1 PUNTO) Descompón en fraccións parciais a expresión:
x3 + 3x2 − 2x − 2
(5)
x3 + 2x2 + x
µ ¶ xx+1
2 −1
x2 − x + 1
lı́m √ (1)
x→∞ x2 − 1 − 4
SOLUCIÓN: limit(((x**2-x+1)/(x**2-1)-4))**((x**2-1)/(x**2+1)),x=infinity)
2. (1 PUNTO) Calcula a seguinte derivada:
µ ¶
∂2 e−xy sin(3x + 4y)
√ (2)
∂x∂y lnx x + y
SOLUCIÓN: diff((exp(-x*y)*sin(3*x + 4*y))/(log(x)*sqrt(x + y)), y, x)
3. (1 PUNTO) Calcula a seguinte integral:
Z ∞
4e−x
dx (3)
0 x2 − 3x + 1
n
X
(a + id)ri−1 (4)
i=0
SOLUCIÓN: taylor(log(x)/x, x = 5, 7)
6. (1 PUNTO) Representa gráficamente x = ucosv, y = usenv, z = ucosu con 5000 puntos e u ∈ [0, 10], v ∈
[0, 2π]
SOLUCIÓN: with(plots): plot3d([u*cos(v), u*sin(v), u*cos(u)], u = 0..0, v = 0..2*Pi, numpoints
= 5000)
7. (1 PUNTO) Representa gráficamente x = cost + 1, y = sent + 2, z = 3cost
SOLUCIÓN: with(plots): spacecurve([cos(t) + 1, sin(t) + 2, 3*cos(t)], t = 0..100)
√
8. (1 PUNTO) Resolve simbólicamente o sistema de ecuacións x2 + y 2 = 1, x + y = x − y
SOLUCIÓN: solve(x**2 + y**2 = 1, sqrt(x + y) = x - y, [x, y])
9. (1 PUNTO) Ordea por orde ascendente o polinomio 6xy 5 + 12y 4 + 14x3 y 3 − 15x2 y 3 + 9x3 y 2 − 30xy 2 −
35x4 y + 18x2 y + 21x5
SOLUCIÓN: sort(6*x*y**5 + 12*y**4 + 14*x**3*y**3 - 15*x**2*y**3 + 9*x**3*y**2 - 30*x*y**2
- 35*x**4*y + 18*x**2*y + 21*x**5, [x, y], ’ascending’)
10. (1 PUNTO) Descompón en fraccións parciais a expresión:
x3 + 3x2 − 2x − 2
(5)
x3 + 2x2 + x
∞
X n−1
(2)
i=1
n2 en
6. (1 PUNTO) Representa gráficamente a curva dada por x(t) = 1 + t2 , y(t) = 2cos(2t), z(t) = ln(1 + t), t =
0, . . . , 100
SOLUCIÓN: with(plots): spacecurve([1+t**2, 2*cos(2*t), ln(1+t), t = 0 .. 100], axes =
normal)
7. (1 PUNTO) Calcula numéricamente dúas solucións reais da ecuación x2 + log(1 + x2 ) = 2 (debes usar
un comando dúas veces).
SOLUCIÓN: fsolve(x**2+log(1+x**2) = 2, x = -1); fsolve(x**2+log(1+x**2) = 2, x = 1)
8. (1 PUNTO) Calcula as 7 raı́ces do polinomio x7 − x6 + x5 − x4 + x3 − x2 + x − 1.
SOLUCIÓN: roots(x**7 - x**6 + x**5 - x**4 + x**3 - x**2 + x - 1, {I, sqrt(2)})
R1 p
9. (1 PUNTO) Calcula a lonxitude da curva y = f (x) = x2 , x ∈ [−1, 1], dada por L = −1 1 + f 0 (x)2 dx
SOLUCIÓN: int(sqrt(1 + (diff(x**2, x))**2), x = -1 .. 1)
x2 +x−2
10. (1 PUNTO) Dada a función racional x2 −x−2 : a) factoriza o seu numerador e denominador; b) descompona
en fraccións parciais
SOLUCIÓN: f := (x**2 + x - 2)/(x**2 - x - 2); convert(f, parfrac, x); factor(f)
Control Maple
r
x6 y 53
1. (1 PUNTO) Simplifica a expresión .
1000x3
SOLUCIÓN: simplify((x**6*y**5/(1000*x**3))**(1/3))
2. (1 PUNTO) Define o vector fila v = (x2 , π, −1, a + b) e calcula vvT .
SOLUCIÓN: v := Vector[row](4, [x**2, Pi, -1, a+b]); with(LinearAlgebra); evalm(v &* Transpose(v)))
3. (1 PUNTO) Resolve o sistema de ecuacións lineais x + y − z = 2, x − y + z = 0, −x + y − 2z = 1.
SOLUCIÓN: with(LinearAlgebra): LinearSolve(Matrix(3, 4, [1, 1, -1, 2, 1, -1, 1, 0, -1,
1, -2, 1]))
p ∂2f
4. (1 PUNTO) Define a función de Maple f (x, y) = x2 y + xy 2 , calcula e o seu valor no punto
∂x∂y
x = 1, y = 1.
SOLUCIÓN: f := (x, y) ->sqrt(x**2*y+x*y**2); D[1, 2](f); D[1, 2](f)(1, 1)
x + ty − aln(1 + b)
5. (1 PUNTO) Convirte a expresión nunha función de Maple f de variábeis a, b.
y 2 + at − b3
SOLUCIÓN: f := unapply((x+t*y-a*ln(1 + b))/(y**2+a*t-b**3), a, b)
Z ∞ Z x
t+1 t+1
6. (1 PUNTO) Calcula a integral 3
dt e o lı́mite lı́m 3
dt (deben coincidir).
1 t +1 x→∞ 1 t +1
X∞ Xk
n+1 n+1
7. (1 PUNTO) Calcula a suma 3
e o lı́mite lı́m (deben coincidir).
n=1
n +1 k→∞
n=1
n3 + 1
8. (1 PUNTO) Representa o lugar xeométrico dado pola ecuación ρ = sin2 (θ)sin2 (φ), ρ ∈ [0, 1], θ ∈
[0, 2π], φ ∈ [0, π].
SOLUCIÓN: with(plots); implicitplot3d(rho = sin(phi)**2*sin(theta)**2, rho = 0 .. 1, theta
= 0 .. 2*Pi, phi = 0 .. Pi, coords = spherical, axes = normal)
9. (1 PUNTO) Atopa as solucións enteiras do sistema de ecuacións x − y + z = 0, x + y − z = 0.
SOLUCIÓN: isolve({x-y+z = 0, x+y-z = 0}, k)
10. (1 PUNTO) Manipula a expresión x2 (x + x(x − 5)x3 + x2 ) convertı́ndoa nun polinomio ordeado por
graos crecentes.
SOLUCIÓN: p := x**2*(x+x*(x-5)*(x**3)+x**2); sort(expand(p), x, ’ascending’)
Control Maple
2
1. (1 PUNTO) Dada a ecuación ea x
= b + x, calcula x en función de a e b. Calcula o valor real en punto
flotante de x para a = 1, b = 2.
SOLUCIÓN: solve(exp(a**2 *x) = x+b, x); evalf(subs(a = 1, b = 2, %))
2. (1 PUNTO) Representa gráficamente a curva dada por ρ(θ) = θ(4 + sin(3θ)), θ ∈ [0, 2π]
SOLUCIÓN: with(plots): polarplot(t*(4 + sin(t)), t = 0..2*Pi)
Xk
n2 − 1
3. (1 PUNTO) Calcula a seguinte serie numérica:
n=1
n2 + 1
9. (1 PUNTO)
SOLUCIÓN:
10. (1 PUNTO)
SOLUCIÓN:
Control Maple
1. (1 PUNTO) Calcula o ángulo e o complexo conxugado do número complexo z = 3 + 4i.
SOLUCIÓN: z:=4 + 3*I; argument(z); conjugate(z);
2. (1 PUNTO) Define unha matriz A de 3 × 3 inicializada co vector v = (1, 2, 3, 4, 5, 6, 7, 8, 9), é calcula o
produto da matriz A pola súa transposta.
SOLUCIÓN: A:=Matrix(3,3, [1,2,3,4,5,6,7,8,9]); with(LinearAlgebra): B:=Transpose(A); evalm(A
& * B);
cos(x)
3. (1 PUNTO)Calcula o valor da función f (x) = no punto x = π/2 como un número real en
1 + sin(x)
punto flotante.
SOLUCIÓN: f:=cos(x)/(1+sin(x)); evalf(subs(x=Pi/2, f)); ou f:=x->cos(x)/(1+sin(x)); f(Pi/2);
Z π
4. (1 PUNTO) Calcula a integral definida cos xesin x dx.
0
SOLUCIÓN: f:=x->piecewise( x<-1, x, -1<= x and x>=0, x**2, 0<x and x <=1, -x**2, 1<x,
-x); f(x);
Control Maple 1
1. (1 PUNTO) Calcula o mı́nimo común múltiplo dos polinomios p(x) = x2 − 2x + 1 e q(x) = x5 − 1
SOLUCIÓN: lcm(x^2 + 2*x + 1, x^5 - 1)
8. (1 PUNTO) Calcula o polinomio de Taylor de orde 7 da función f (x) = x2 e−x en torno a x = −1.
SOLUCIÓN: taylor(x^2*exp(-x), x = -1, 8)
9. (1 PUNTO) Calcula as raı́ces reais do polinomio p(x) = x4 + 2x3 − 13x2 − 14x + 24 distintas de x = −2
e x = 3.
SOLUCIÓN: fsolve(x^4 + 2*x^3 - 13*x^2 - 14x + 24, avoid = x = -2, x = 3)
10. (1 PUNTO) Calcula o polinomio con raices x = −1, 1/2, 1, 5 e ordeao por graos crecentes.
SOLUCIÓN: sort(expand((1+x)*(x-1/2)*(x-1)*(x-5)), x, ascending)
Control Maple 2
x2 + 2x
1. (1 PUNTO) Descompón a función racional en fraccións parciais.
x4 + 6x3 − 22x + 15
SOLUCIÓN: convert((x^2+2*x)/(x^4+6*x^3-22*x+15), parfrac, x)
6. (1 PUNTO) Ordea o polinomio p(x, y) = 2x2 y 3 −3xy 4 +5xy 2 por monomios de grao crecente e potencias
crecentes de y.
SOLUCIÓN: sort(-3*y^4*x+2*y^3*x^2+5*y^2*x, [y, x], ascending)
7. (1 PUNTO) Representa o lugar xeométrico dos puntos que verifican o sistema x > −1/2, y ≤ 1 − x, y <
x + 1.
SOLUCIÓN: with(plots); inequal({x >-1/2, y <= 1-x, y <x+1}, x = -1 .. 1, y = -1 .. 1)
8. (1 PUNTO) Representa gráficamente o conxunto {(−1, 2), (0, 0), (1, 3), (2, 2), (3, 3)}
SOLUCIÓN: plot(Vector([-1, 0, 1, 2, 3]), Vector([2, 0, 3, 2, 3]), style = point)
2
9. (1 PUNTO) Calcula o polinomio de Taylor de orde 5 da función f (x, y) = e−x sen(x + y) en torno ao
punto (0, 0).
SOLUCIÓN: mtaylor(exp(-x^2)*sin(x+y), [x = 0, y = 0], 6)
1 f (x)
10. (1 PUNTO) Dadas f (x) = x + 1 e g(x) = , calcula h(x) = e h(2)
1 + x2 g[f (x)]
SOLUCIÓN: f:=x->1+x: g:=x->1/(x^2+1); h:=f/(g@f); h(x); h(2)
Control de Maple
ix
2. (1 PUNTO) Define unha matriz A cadrada de orde 3 cos seus elementos dados por aij = .
jy
SOLUCIÓN:
f :=( i , j )−> i ∗x / ( j ∗y ) ; Matrix ( 3 , 3 , f )
x + ex
3. (1 PUNTO) Calcula a posición x0 do mı́nimo da función f (x) = (pista: f ′ (x0 ) = 0).
x − ex
SOLUCIÓN:
s o l v e ( d i f f ( ( x+exp ( x ) ) / ( x−exp ( x ) ) , x ) , x )
4. (1 PUNTO) Define unha matriz con tódolos elementos nulos e o vector (1, 2, 3, 4, 5) na diagonal.
SOLUCIÓN:
Matrix ( 5 , 5 , Vector ( [ 1 , 2 , 3 , 4 , 5 ] ) , shape=d i a g o n a l )
x+y
∂2 t2
Z
5. (1 PUNTO) Calcula dt.
∂x∂y x−y t2 + 1
SOLUCIÓN:
d i f f ( d i f f ( i n t ( t ˆ 2 / ( t ˆ2+1) , t=x−y . . x+y ) , x ) , y )
∞
n2 + 1
Y
6. (1 PUNTO) Calcula o valor de 1+ como real en punto flotante.
n=0
(n + 1)4
SOLUCIÓN:
e v a l f ( p r o d u c t (1+(n ˆ2+1)/( n +1)ˆ4 , n = 0 . . i n f i n i t y ) )
sen 20θ
7. (1 PUNTO) Representa gráficamente o lugar xeométrico dado por ρ = e−θ/10 + con θ = 0, . . . , 2π.
10
SOLUCIÓN:
with ( p l o t s ) : p o l a r p l o t ( exp(− t h e t a /10)+0.1∗ s i n ( 2 0 ∗ t h e t a ) , t h e t a = 0 . . 2 ∗ Pi ) ;
1. (1 PUNTO) Calcula o mı́nimo común múltiplo de 22,49,32 e 25. Descompón en factores primos o 431200.
SOLUCIÓN:
lcm ( 2 2 , 4 9 , 3 2 , 2 5 ) ; i f a c t o r ( 1 2 3 4 )
1
3. (1 PUNTO) Dadas f (x) = x2 e g(x) = , define a función de Maple h(x, y) = (g(xy), g(f (y))) e calcula
x
h(1, 2).
SOLUCIÓN:
f :=x−>x ˆ 2 ; g:=x−>1/x ; h :=( x , y)−>( f ( x∗y ) , ( g@f ) ( x ) ) ; h ( 1 , 2 )
4ax − x3
4. (1 PUNTO) Escribe como función racional a derivada segunda da función f (x) = lı́m .
a→1 a2 x + x2
SOLUCIÓN:
normal ( d i f f ( l i m i t ( f , a =1) , x$2 ) )
5. (1 PUNTO) Calcula o polinomio de Taylor de orde 6 da función f (x, y) = sin x sin y en torno ao punto
π
( , π)
2
SOLUCIÓN:
mtaylor ( s i n ( x ) ∗ s i n ( y ) , [ x=Pi / 2 , y=Pi ] , 6 )
6. (1 PUNTO) Representa gráficamente o lugar xeométrico dado por x = e−t/10 sen 2t, y = t2 , z = sen 3t
con t = 1, . . . , 10.
SOLUCIÓN:
with ( p l o t s ) ; s p a c e c u r v e ( [ exp (−( t / 1 0 ) ∗ s i n ( 2 ∗ t ) , t ˆ 2 , s i n ( 3 ∗ t ) ] , t = 0 . . 1 0 )
p
7. (1 PUNTO) Representa gráficamente z = − t2 − x2 − y 2 con x, y ∈ [−1, 1] e t=0.1,. . . , 1.
SOLUCIÓN:
with ( p l o t s ) ; animate3d(− s q r t ( t ˆ2−xˆ2−y ˆ 2 ) , x = −1..1 , y = −1..1 , t = 0 . 1 . . 1 )
1 x
8. (1 PUNTO) Resolve simbólicamente o sistema de ecuacións x2 y + = 1, =2 .
x y+1
SOLUCIÓN:
s o l v e ( { x / ( y+1)−2, x ˆ2∗ y+1/x −1} ,{x , y } )
5x4 + x3 − 3x2 − 2x + 5
9. (1 PUNTO) Calcula cun so comando o cociente e resto da división
3x3 − 2x2 + x − 7
SOLUCIÓN:
c := quo ( 5 ∗ xˆ4+xˆ3−3∗xˆ2−2∗x+5, 3∗ xˆ3−2∗xˆ2+x−7,x , ’ r ’ )
x2 − 2x + 1 (x − 1)2
10. (1 PUNTO) Convirte a expresión 2
en
x −x−2 (x − 2)(x + 1)
SOLUCIÓN:
f a c t o r ( ( xˆ2−2∗x +1)/( xˆ2−x −2))
Control de Maple
z − 2z̄
1. (1 PUNTO) Dado z = 2 + 3i calcula o argumento de , sendo z̄ o conxugado de z.
z 2 + 2z̄
SOLUCIÓN:
z :=2+3∗ I ; argument ( ( z −2∗ c o n j u g a t e ( z ) ) / ( z ˆ2+2∗ c o n j u g a t e ( z ) ) )
2. (1 PUNTO) Calcula a matriz e polinomio caracterı́stico, autovalores e autovectores (en punto flotante)
da seguinte matriz:
1 −5 2
0 3 −1
4 2 5
SOLUCIÓN:
a:= Matrix ( 3 , 3 , [ 1 , − 5 , 2 , 0 , 3 , − 1 , 4 , 2 , 5 ] ) ; with ( L i n e a r A l g e b r a ) :
CharacteristicMatrix (a , x ) ; CharacteristicPolynomial (a , x ) ; evalf ( Eigenvectors (a ))
3. (1 PUNTO) Define a función de Maple f (x, y) = x2 y + y 2 x e calcula a súa derivada segunda con respecto
a x e a y no punto x = −1, y = 2.
SOLUCIÓN:
f :=( x , y ) −> x ˆ2∗ y+y ˆ2∗ x : D[ 1 , 1 ] ( f )( −1 ,2)
1 − cos ax
4. (1 PUNTO) Calcula lı́m para a = 1, b = 2.
x→0 x (2 − x) tan bx
SOLUCIÓN:
s u b s ( a=1,b=2, l i m i t ((1 − c o s ( a∗x ) ) / ( x∗(2−x ) ∗ tan ( b∗x ) ) , x =0))
Z 1 Z ex
5. (1 PUNTO) Calcula x2 y 2 dxdy
−1 e−x
SOLUCIÓN:
i n t ( x ˆ2∗ y ˆ 2 , [ y=exp(−x ) . . exp ( x ) , x = − 1 . . 1 ] )
∞
X a+1
6. (1 PUNTO) Calcula a suma da serie para a = 2 en punto flotante.
n=1
n3
SOLUCIÓN:
e v a l f ( s u b s ( a=2,sum ( ( a+1)/n ˆ 3 , n = 1 . . i n f i n i t y ) ) )
7. (1 PUNTO) Representa gráficamente o lugar xeométrico dos puntos dados por x > −3, 2y ≥ −1, −x +
2y < 4, 2x + 3y ≤ 5, con x ∈ [−5, 5] e y ∈ [−1, 2].
SOLUCIÓN:
with ( p l o t s ) ; i n e q u a l ( { x>−3, 2∗y>−1, −x+2∗y<4, 2∗ x+3∗y <5} ,x = −5..5 , y = −1..2)
φ sen 3θ
8. (1 PUNTO) Representa gráficamente o lugar xeométrico dado por ρ = 1 + , con 0 ≤ ρ ≤ 1, 0 ≤
2
θ ≤ π2 , 0 ≤ φ ≤ 2π.
SOLUCIÓN:
with ( p l o t s ) : i m p l i c i t p l o t 3 d ( rho =1+0.5∗ p h i ∗ s i n ( 3 ∗ t h e t a ) , rho = 0 . . 1 , t h e t a = 0 . . Pi ,
p h i = 0 . . 2 ∗ Pi , c o o r d s=s p h e r i c a l )
9. (1 PUNTO) Atopa as solucións enteiras da ecuación x2 + y − 3z + 2 = 0 en función de dous parámetros
k, l. Particulariza para k = l = 1.
SOLUCIÓN:
i s o l v e ( xˆ2+y−3∗z +2, {k , l } ) ; s u b s ( k=1, l =1, %)
10. (1 PUNTO) Ordea o polinomio −4x3 y 2 + x2 y 3 − 2xy 2 + y 3 − 5xy + y 2 − 3x por graos totais e potencias
de y crecentes.
SOLUCIÓN:
p:=−4∗x ˆ3∗ yˆ2+x ˆ2∗ yˆ3−2∗x∗yˆ2+yˆ3−5∗x∗y+yˆ2−3∗x ; s o r t ( p , [ y , x ] , tdeg , a s c e n d i n g )
Control de Maple
1. (1 PUNTO) Calcula o cociente e o resto da división enteira entre 120 e 65, e descompón en factores
primos o primeiro deles.
SOLUCIÓN:
i q u o ( 1 2 0 , 6 5 ) ; irem ( 1 2 0 , 6 5 ) ; i f a c t o r ( 1 2 0 )
2. (1 PUNTO) Define unha matriz con tódolos elementos nulos e o vector (v1 , v2 , v3 , v4 , v5 ) na diagonal.
SOLUCIÓN:
Matrix ( 5 , 5 , Vector ( 5 , symbol=v ) , shape=d i a g o n a l )
√ √
x + 3 − 3 3x + 5
3. (1 PUNTO) Calcula lı́m πx con 5 decimais.
x→0
1 − tan
4
SOLUCIÓN:
e v a l f ( l i m i t ( ( s q r t ( x+3)−(3∗x +5)ˆ(1/3))/(1 − tan ( Pi ∗x / 4 ) ) , x =0) ,5)
∂ 2 f (1, 5)
r
x
4. (1 PUNTO) Define a función de Maple f (x, y) = xy + e calcula .
y ∂x∂y
SOLUCIÓN:
f :=( x , y)−> s q r t ( x∗y+x/y ) ;D[ 1 , 2 ] ( f ) ( 1 , 5 )
6. (1 PUNTO) Representa gráficamente o lugar xeométrico dos puntos definidos por x = t sen 10t, y = t2 e−t ,
con t = 2, . . . , 7.
SOLUCIÓN:
p l o t ( [ t ∗ s i n ( 1 0 ∗ t ) , t ˆ2∗ exp(− t ) , t = 2 . . 7 ] )
9. (1 PUNTO) Calcula o producto dos polinomios x4 − 2x3 − 36x2 + 2x + 35 e x3 − 6x2 + 11x − 6 e factoriza
o primeiro deles.
SOLUCIÓN:
p:=xˆ4−2∗xˆ3−36∗xˆ2+2∗x +35; q:=xˆ3−6∗xˆ2+11∗x −6; expand ( p∗q ) ; f a c t o r ( p )
(x − 1)(x + 2) x
−
x2 + 1 (x − 5)(x − 3) p(x)
10. (1 PUNTO) Convirte o castelo á forma normal , sen factores.
x+2 q(x)
1− 2
x (x − 1)(x2 + 1)
SOLUCIÓN:
expand ( f , expanded )
Control de Maple
2. (1 PUNTO) Transforma a expresión ax2 + y 3 − zt nunha función de Maple de a e t e calcula o seu valor
para a = 1, t = −1
e x p r e s i o n :=a∗xˆ2+yˆ3−z ∗ t ; f u n c=unapply ( e x p r e s i o n , a , t ) ; f u n c (1 , −1)
3. (1 PUNTO) Define a función de Maple f (x, y) = cos tan(x + y) e calcula como real en punto flotante
∂2f
para x = −1, y = 2.
∂x∂y
f :=( x , y)−>c o s ( tan ( x+y ) ) ; e v a l f (D[ 1 , 2 ] ( f ) ( − 1 , 2 ) )
Z 2 Z x2
xy
4. (1 PUNTO) Calcula dxdy
1 x x2 + y2
i n t ( x∗y / ( xˆ2+y ˆ 2 ) , [ y=x . . x ˆ 2 , x = 1 . . 2 )
t2
6. (1 PUNTO) Representa gráficamente o lugar xeométrico dado polas ecuacións x = ,y =
1 + sen2 t
cos t
con 1 ≤ t ≤ 10.
t2 + t + 1
with ( p l o t s ) : p l o t ( [ t ˆ2/(1+ s i n ( t ) ˆ 2 ) , c o s ( t ) / ( t ˆ2+ t +1) , t = 1 . . 1 0 ] )
10. (1 PUNTO) Convirte a expresión ex ey (sen x cos y + cos x sen y) en ex ey sen(x + y).
combine ( exp ( x ) ∗ exp ( y ) ∗ ( s i n ( x ) ∗ c o s ( y)+ c o s ( x ) ∗ s i n ( y ) ) , t r i g )
Control de Maple
X∞
ane−n
4. (1 PUNTO) Calcula para a = b = 1.
n=1
bn2 + 1
SOLUCIÓN:
s u b s ( a=1,b=1,sum ( a∗n∗ exp(−n ) / ( b∗n ˆ2+1) , n = 1 . . i n f i n i t y ) )
2
/10
5. (1 PUNTO) Representa gráficamente o lugar definido por x sen 10y + x3 e−xy = x2 .
SOLUCIÓN:
with ( p l o t s ) : i m p l i c i t p l o t ( x∗ s i n ( 1 0 ∗ y)+x ˆ3∗ exp(−x∗yˆ2/10) −x ˆ 2 , x = −10..10 , y = −10..10)
2
6. (1 PUNTO) Representa gráficamente o lugar dado pola ecuación y = e−x cos 5xt con −2 ≤ x ≤ 2 e
t = 1, . . . , 10 s.
SOLUCIÓN:
with ( p l o t s ) : animate ( c o s ( 5 ∗ x∗ t ) ∗ exp(−x ˆ 2 ) , x = −2..2 , t = 1 . . 1 0 )
7. (1 PUNTO) Representa gráficamente o lugar dado por x2 sen x2 + y 2 sen y 2 + z 2 sen z 2 = 1 con −π ≤
x, y, z ≤ π.
SOLUCIÓN:
with ( p l o t s ) :
i m p l i c i t p l o t 3 d ( x ˆ2∗ s i n ( xˆ2)+y ˆ2∗ s i n ( yˆ2)+ z ˆ2∗ s i n ( z ˆ 2 ) = 1 ,
x=−Pi . . Pi , y=−Pi . . Pi , z=−Pi . . Pi )
1
8. (1 PUNTO) Calcula z en función de x e y no sistema xy + = 1, y ln x + sen z + 1 = 0.
z
SOLUCIÓN:
s o l v e ( { y∗ l n ( x)+ s i n ( z )+1 , x∗y+1/z =1} ,{x , y } )
xn−1
9. (1 PUNTO) Calcula xn en función de n sabendo que xn = , con x1 = 1, x2 = 2.
xn−2
SOLUCIÓN:
r s o l v e ( { x ( n ) = x ( n−1)/x ( n −2) , x (1)=1 , x (2)=2} , x ( n ) )
10. (1 PUNTO) Atopa as raices e ordea por orde crecente o polinomio x5 + 2x4 − x3 − 4x2 − 2x + 4
SOLUCIÓN:
r o o t s ( xˆ5+2∗xˆ4−xˆ3−4∗xˆ2−2∗x+4, I )
s o r t (4−2∗x−4∗xˆ2−xˆ3+2∗xˆ4+x ˆ 5 , a s c e n d i n g )
Control de Maple
1. (1 PUNTO) Define unha variábel x con valor 32/5 , mostra o seu tipo, visualiza as variábeis que hai
definidas e calcula o seu valor con 20 cifras.
SOLUCIÓN:
x : = 3 ˆ 2 / 5 ; whattype ( x ) ; anames ( u s e r ) ; e v a l f ( x , 2 0 )
3. (1 PUNTO) Define unha expresión de Maple que vale x2 − 5 para x < −1, x5 − 2x + 1 para −1 ≤ x ≤ 1
e x2 − 1 para x > 1 e represéntaa con −2 ≤ x ≤ 2.
SOLUCIÓN:
f := p i e c e w i s e ( x<−1,xˆ2 −5 ,x>−1 and x<1,xˆ5−2∗x+1,xˆ2−1)
p l o t ( f , x = −2..2)
∂3f
4. (1 PUNTO) Calcula con f (x, y, z) = x2 y 2 z 2
∂x2 ∂z
SOLUCIÓN:
f :=x ˆ2∗ y ˆ2∗ z ˆ 2 ; d i f f ( f , x$2 , z )
5. (1 PUNTO) Calcula a diferencia no punto (x, y)=(0.3,-0.4) entre a función x sen(x + y) + y cos(x + y) e
o seu desenvolvemento de Taylor de orde 10 en torno á orixe (0, 0).
SOLUCIÓN:
f :=x∗ s i n ( x+y)+y∗ c o s ( x+y )
p:= mtaylor ( f , [ x=0,y = 0 ] , 1 0 )
s u b s ( x =0.3 , y= −0.4 , f )− s u b s ( x =0.3 , y= −0.4 ,p )
1 3
6. (1 PUNTO) Representa gráficamente o lugar xeométrico dado por 2x + 3y > 1, x > − , y < , x − y ≤ 0
2 4
con −1 ≤ x, y ≤ 1.
SOLUCIÓN:
with ( p l o t s ) ; i n e q u a l ( { 2 ∗ x+3∗y>1,x>−1/2,y <3/4 ,x−y<=0},x = −1..1 , y = − 1 . . 1 ) ;
8. (1 PUNTO) Representa gráficamente o lugar dado por x = tan(sen t), y = tan(cos t), z = cos(sen t), con
−π ≤ x, y, z ≤ π.
SOLUCIÓN:
with ( p l o t s ) : s p a c e c u r v e ( [ tan ( s i n ( t ) ) , tan ( c o s ( t ) ) , c o s ( s i n ( t ) ) ] , t = 0 . . Pi , a x e s=NORMAL)
1. (1 PUNTO) Define un número complexo z = 3 + 2i, mostra o seu módulo con 9 decimais e a súa parte
z−5
real, e calcula 2 .
z +z−i
SOLUCIÓN:
z :=3+2∗ I ; e v a l f ( | z | ) ; Re ( z ) ; ( z −5)/( zˆ2+z−I )
2. (1 PUNTO) Define a matriz A=[1 2 3; 4 -1 6; 7 8 9] (os ; separan as filas), calcula A5 e bórralle a fila 1.
SOLUCIÓN:
A := Matrix ( 3 , 3 , [ 1 , 2 , 3 , 4 , −1, 6 , 7 , 8 , 9 ] ) ; evalm (Aˆ 5 ) ;
with ( L i n e a r A l g e b r a ) ; DeleteRow (A, 2 )
3. (1 PUNTO) Define a función de Maple f (x, y, z) = (xe−y , sen(y + z), ln(x − y)) e calcula f (1, 2, −1).
SOLUCIÓN:
f :=( x , y , z)−>(x∗ exp(−y ) , s i n ( y+z ) , l n ( x−y ) )
f (1 ,2 , − 1)
Z ∞
2
4. (1 PUNTO) Calcula xn e−x dx e o seu valor real para n = 5.
0
SOLUCIÓN:
i n t ( xˆm∗ exp(−x ˆ 2 ) , x = 0 . . i n f i n i t y )
e v a l f ( s u b s (m = 7 , %))
8. (1 PUNTO) Calcula numéricamente unha única solución da ecuación x5 −3x4 −14x3 +15x2 +19x+30 = 0
comezando por x = −1 e evitando a solución x = −3.
SOLUCIÓN:
p:=xˆ5−3xˆ4−14xˆ3+15xˆ2+19x+30
f s o l v e ( p , x = −1, maxsols = 1 , a v o i d = {x = −3})
9. (1 PUNTO) Dada a reacción quı́mica pCaCl2 + qAgN O3 → rAgCl + sCa(N O3 )2 , calcula os menores
valores de p, q, r e s que a axustan.
SOLUCIÓN:
i s o l v e ( { p=s , 2 ∗ p=r , q=r , q=2∗s , 3 ∗ q=6∗ s } , k )
s u b s ( k=1, %)
10. (1 PUNTO) Escribe un comando que retorne certo se o polinomio x4 − x3 − 39x2 + 109x − 70 é divisı́bel
por x2 − 6x + 5 e falso en caso contrario.
SOLUCIÓN:
d i v i d e ( xˆ4−xˆ3−39∗xˆ2+109∗x −70 ,xˆ2−6∗x+5)
Control de Maple
2. (1.5 PUNTOS) Define unha matriz de orde 5 co elemento i-ésimo da diagonal igual a 2−i e os restantes
elementos nulos.
SOLUCIÓN:
f := i −>2ˆ(− i ) : Matrix ( 5 , f , shape=d i a g o n a l )
3. (1.5 PUNTOS) Define a función de Maple f : IR2 → IR4 dada por f (x, y) = (x2 , y sen x, xey , xy 2 ) e
calcula f (1, −2)
SOLUCIÓN:
f :=( x , y)−>(x ˆ 2 , y∗ s i n ( x ) , exp ( y ) , x∗y ˆ 2 ) ; f (1 , −2)
exy
4. (1.5 PUNTOS) Aproxima f (x, y) = mediante cun polinomio de grao 3 en torno a (0, 0).
x2 y 2 + 1
SOLUCIÓN:
mtaylor ( exp ( x∗y ) / ( x ˆ2∗ y ˆ 2 + 1 ) , [ x=0,y = 0 ] , 7 )
6. (1.5 PUNTOS) Atopa a expresión xeral das solucións enteiras á ecuación 3y + 2x = 5 e calcula as
solucións para k = 1.
SOLUCIÓN:
s u b s ( k=1, i s o l v e ( 3 ∗ y+2∗x−5,k ) )
7. (1.5 PUNTOS) Expresa o polinomio (x − y)6 na forma x6 − 6yx5 + 15y 2 x4 − 20y 3 x3 + 15y 4 x2 − 6y 5 x + y 6 .
SOLUCIÓN:
s o r t ( expand ( ( x−y ) ˆ 6 ) , [ y , x ] , plex , a s c e n d i n g )
Control de Maple
1. (1 PUNTO) Crea un vector v de lonxitude 10 definindo só os elementos v2 = 5 e v8 = −1, cos restantes
elementos nulos.
SOLUCIÓN:
v:= Vector [ row ](10 ,{2=5 ,8= −1})
X
n
2. (1.5 PUNTOS) Calcula lı́m (n + k)−2
n→∞
k=0
SOLUCIÓN:
l i m i t ( sum ( 1 / ( n+k ) ˆ 2 , k = 0 . . n ) , n=i n f i n i t y )
X
∞
a
3. (1 PUNTOS) Calcula 2+b
para a = 1, b = 2.
n=1
n
SOLUCIÓN:
s u b s ( a=1,b=2,sum ( a / ( nˆ2+b ) , n = 1 . . i n f i n i t y ) )
5. (1.5 PUNTOS) Atopa unha solución, a máis cercana a 0.8, da ecuación x2 (sen x + 1) = 1.
SOLUCIÓN:
f s o l v e ( x ˆ2∗ s i n ( x)+xˆ2 −1 ,x =0.8)
6. (1.5 PUNTOS) Define un polinomio con raı́ces 0, -1 (dobre) e 3, ordénao por graos decrecentes e logo
convı́rteo en producto de factores.
SOLUCIÓN:
p:= expand ( x ∗ ( x +1)ˆ2∗( x +3)))
s o r t (p , x , ’ descending ’ )
factor (p)
7. (1.5 PUNTOS) Transforma a expresión 2ex sen x cos x + ex sen 2x na expresión 2ex sen 2x.
SOLUCIÓN:
combine ( 2 ∗ exp ( x ) ∗ s i n ( x ) ∗ c o s ( x)+exp ( x ) ∗ s i n ( 2 ∗ x ) )
Control de Maple
1. (1.5 PUNTOS) Define unha matriz A antisimétrica de orde 5 con a12 = −9 e a43 = 5; cópiaa a B e
calcula os autovalores de BA.
SOLUCIÓN:
a:= Matrix ( 5 , { ( 1 , 2 ) = − 9 , ( 4 , 3 ) = 5 } , shape=a n t i s y m m e t r i c )
b:= copy ( a ) : with ( L i n e a r A l g e b r a ) : E i g e n v a l u e s ( evalm ( b&∗a ) )
∂ 3 f (1, −1)
2. (1.5 PUNTOS) Calcula con f (x, y) = (xy + x + y)2 .
∂x∂y 2
SOLUCIÓN:
f :=( x , y)−>(x∗y+x+y ) ˆ 3 :D[ 1 , 2 , 2 ] ( f )(1 , −1)
ln(t2 + 1)
4. (1.5 PUNTOS) Representa gráficamente x = ecos t , y = t2 sen t, z =
t2 + 1
SOLUCIÓN:
with ( p l o t s ) : s p a c e c u r v e ( [ exp ( c o s ( t ) ) , t ˆ2∗ s i n ( t ) , l n ( t ˆ2+1)/( t ˆ 2 + 1 ) ] , t = 1 . . 1 0 )
7. (1.5 PUNTOS) Transforma o polinomio 16x4 − 32x3 y + 24x2 y 2 − 8xy 2 + y 4 no polinomio y 4 + 24y 2 x2 −
8y 2 x − 32yx3 + 16x4 .
SOLUCIÓN:
s o r t ( yˆ4+24∗y ˆ2∗ xˆ2−8∗y ˆ2∗x−32∗y∗xˆ3+16∗x ˆ 4 , [ y , x ] , plex , d e s c e n d i n g )
Control de Maple
Y∞
n2 + 1
4. (1.5 PUNTOS) Calcula
n=2
n2 − 1
SOLUCIÓN:
p r o d u c t ( ( n ˆ2+1)/( nˆ2 −1) ,n = 2 . . i n f i n i t y )
7. (1.5 PUNTOS) Dado o polinomio p = x5 − x4 − 3x3 + 5x2 − 2x, factorı́zao, atopa as súas raı́ces, calcula
o cociente e o resto de dividilo entre q = x2 + x − 2, e transforma p/q en x(x2 − 2x + 1).
SOLUCIÓN:
p:=xˆ5−xˆ4−3∗xˆ3+5∗xˆ2−2∗x
q:=xˆ3−2∗xˆ2+x
f a c t o r ( p ) ; r o o t s ( p ) ; quo ( p , q , x ) ; rem ( p , q , x )
normal ( p/q )
Control de Maple
1. (1.5 PUNTOS) Define o vector fila v de 5 elementos dados por vi = xi , con i = 1 . . . 5, e calcula vvT .
SOLUCIÓN:
f := i −>xˆ i : v:= Vector [ row ] ( 5 , f )
with ( L i n e a r A l g e b r a ) : evalm ( v&∗Transpose ( v ) )
2. (1.5 PUNTOS) Calcula a derivada segunda da función f (x) = x2 se x < −5, f (x) = sen(x2 + x + 1)
para |x| ≤ 5 e f (x) = ex/(x+1) para x > 5.
SOLUCIÓN:
d i f f ( p i e c e w i s e ( x<−5,x ˆ 2 , x>=−5 and x<=5, s i n ( xˆ2+x +1) , exp ( x / ( x + 1 ) ) ) , x$2 )
Z
1 + cos2 x
3. (1.5 PUNTOS) Calcula lı́m dx.
x→0 (1 + sen2 x) cos x
SOLUCIÓN:
l i m i t ( i n t ((1+ c o s ( x ) ˆ 2 ) / ( c o s ( x )∗(1+ s i n ( x ) ˆ 2 ) ) , x ) , x=0)
x sen x
4. (1 PUNTO) Aproxima a función f (x) = cun polinomio de grao 10 en torno a x = ∞.
1 + x2
SOLUCIÓN:
t a y l o r ( x∗ s i n ( x ) / ( x ˆ2+1) , x=i n f i n i t y , 1 0 )
7. (1.5 PUNTOS) Expresa o polinomio de raı́ces 0,-1 (dobre), +1 na forma (x + 1)2 x2 − x(x + 1)2
SOLUCIÓN:
expand ( x ∗ ( x −1)∗( x +1)ˆ2 , x+1)
Control de Maple, curso 2017-18
√
1. Dado o número complezo z = 3 − 2i, calcula z en forma cartesiana con valores exactos e con
valores reais en punto flotante de 8 cifras.
SOLUCIÓN:
z:=3−2*I
v:=evalc(sqrt(z))
evalf(v,8)
2. Define unha matriz A=[1 8; 2 6] (filas separadas por ;) e calcula a súa inversa e autovectores (como
reais en punto flotante).
SOLUCIÓN:
A:=Matrix(2,2,[1,8,2,6])
Aˆ(−1)
with(LinearAlgebra): evalf(Eigenvectors(A))
3. Define
a expresión
de Maple g = sen xyz, transfórmaa en función de Maple f (x, y) e calcula
∂3f −π π
, .
∂x2 ∂y 2 2
SOLUCIÓN:
g:=sin(x*y*z)
f:=unapply(f,x,y)
D[1,1,2](f)(−Pi/2,Pi/2)
4. Determina o polinomio de Taylor de f (x, y) = arctan xy de orde 3 en torno ao punto (−1, 2). Calcula
o valor deste polinomio no punto x = −2, y = 3 como número real en punto flotante.
SOLUCIÓN:
p:=mtaylor(arctan(x*y),[x=−1,y=2],2)
evalf(subs(x=−2,y=3,p))
with(plots): implicitplot3d(rˆ2−sin(t)+z−2,r=0..2,t=0..2*Pi,z=−2..3,coords=cylindrical)
p
6. Representa gráficamente ρ = sen2 (θ cos θ).
SOLUCIÓN:
with(plots):polarplot(sqrt(sin(t*cos(t))ˆ2),t=0..2*Pi)
rsolve({x(n)=x(n−1)+2*x(n−2),x(1)=2,x(2)=3},x(n))
Control de Maple, curso 2017-18, grupo CLI4
1. Dada a matriz [1 2 3; 4 5 6; 7 8 9], coas filas separadas por punto e coma, calcula os seus
autovalores e autovectores, polinomio caracterı́stico e convı́rtea a un vector fila.
SOLUCIÓN:
a:=Matrix(2,3,[1,2,3,4,5,6,7,8,9])
Eigenvectors(a)
CharacteristicPolynomial(a,lambda)
convert(a, Vector[row])
f:=3*xˆ2*y−2*x*yˆ3+xˆ2*yˆ3+3*x−5*yˆ2
sort(collect(f,y),[y,x],tdeg,ascending)
3. Representa o lugar xeométrico dos puntos dados por x = sen t2 , y = 2t3 − t + 1, z = esen t , con
0 ≤ t ≤ 3.
SOLUCIÓN:
with(plots): spacecurve([sin(tˆ2),2*tˆ3−t+1,exp(sin(t))],t=0..3)
Yk
1
5. Calcula 3
. Obtén o seu valor en punto flotante para k = 4.
n=1
n
SOLUCIÓN:
p:=product(1/nˆ3,n=1..k)
evalf(subs(k=4,p))
1 + sen x − ex
6. Calcula lı́m
x→0 arctan2 x
SOLUCIÓN:
limit((1+sin(x)−exp(x))/arctan(x)ˆ2,x = 0)
7. Define a variábel x = 127, calcula o seu número de cifras, mostra de que tipo é, mostra se x ten un
valor asignado, mostra se x é primo e finalmente borra x.
SOLUCIÓN:
x:=127;length(x);whattype(x);assigned(x);primes(x);unassign('x')
Control de Maple, curso 2017-18
√
2. Define as funcións de Maple f (x) = −1 para x < 2, f (x) = x para −1 ≤ x ≤ 1, f (x) = x para
Z 2
df (x − y)
x > 1 e g(x, y) = f (x + y), , e calcula f (x)dx como número real con 8 dı́xitos.
dx −2
SOLUCIÓN:
∞
Y 2
3. Calcula o producto e1/n
n=1
SOLUCIÓN:
product(exp(1/nˆ2),n=1..infinity)
with(plots): inequal({x−y+4>0,x+y+2>0,3*x−2*y<=5,2*x+4*y<2},x=−5..5,y=−5..5)
with(plots); implicitplot3d(r*(1−sin(t)ˆ2)*cos(f)−1,r=0..5,t=0..2*Pi,f=−Pi..Pi,coords=spherical)
6. Como podemos saber se o polinomio 5x7 + 7x6 + 4x5 + 5x4 − 2x2 + x ten algunha raı́z non exacta?
SOLUCIÓN:
7. Calcula o polinomio con raı́ces 0,-1,-3,+i,+i,-i,-i, ordénao por monomios de graos crecentes e fac-
torı́zao cun factor por cada raı́z.
SOLUCIÓN:
p := expand(x*(x−1)*(x+3)*(xˆ2+1)ˆ2)
sort(p,x,ascending)
factor(p,I)
Control Maple 1
xi − 1
1. (1 PUNTO) Define un vector fila v de 10 compoñentes con vi = , i = 1, . . . , 10.
xi + 1
SOLUCIÓN: f := (i) ->(x^i-1)/(x^i+1); Vector[row](10, f)
(1 + I)(2 − 3I)
2. (1 PUNTO) Calcula como reais en punto flotante o módulo e argumento do número
4 + 5I
sendo I a unidade imaxinaria.
SOLUCIÓN: z := (1+I)*(2-3*I)/(5+5*I); |z|; argument(z)
Z x
sin t
3. (1 PUNTO) Calcula lı́m dt como real en punto flotante.
x→∞ 0 1 + t2
6. (1 PUNTO) Representa gráficamente a función f (x, y, t) = sin t sin(x2 + y 2 ) con x, y ∈ [−π, π].
SOLUCIÓN: with(plots); animate3d(sin(t)*sin(x^2+y^2), x = -Pi .. Pi, y = -Pi .. Pi, t
= 1 .. 10)
7. (1 PUNTO) Resolve numéricamente a ecuación x4 − 10x3 + 35x2 − 50x + 24 = 0 atopando unha única
solución distinta de x = 1.
SOLUCIÓN: fsolve(x^4 - 10*x^3 + 35*x^2 - 50*x + 24, x, avoid = {x = 1}, maxsols = 1);
8. (1 PUNTO) Calcula o polinomio con raı́ces 0,-1,2 e 4 ordeado por potencias crecentes.
SOLUCIÓN: sort(expand(x*(x+1)*(x-2)*(x-4)), x, ascending)
9. (1 PUNTO) Factoriza con 5 factores o polinomio 10 − 28x + 13x2 + 10x3 − 9x4 + 2x5 .
SOLUCIÓN: factor(10 - 28*x + 13*x^2 + 10*x^3 - 9*x^4 + 2*x^5,{sqrt(2),I})
x+1
10. (1 PUNTO) Descompón a función racional en suma de fraccións parciais.
x4 + 2x3 + x2 + 2x
SOLUCIÓN: convert((x^2-1)/(x^4+2*x^3+x^2+2*x), parfrac, x)
Control Maple 2
1. (1 PUNTO) Define a matriz cadrada A de orde 5 con elementos aii = xi e aij = 0 para j 6= i.
SOLUCIÓN: f := i ->x^i; A := Matrix(5, f, shape = diagonal)
a arcsin x − b2 cos y
2. (1 PUNTO) Dada a expresión de Maple , convı́rtea nunha función de Maple f (a, z)
x2 + e−z
e calcula f (1, π).
SOLUCIÓN: g := (a*arcsin(x)-b^2*cos(y))/(x^2- exp(-z)); f := unapply(g, a, z); f(1,Pi)
x
x · arctan
3. (1 PUNTO) Calcula lı́m 2
x→0 cos x(sin 2x)2
SOLUCIÓN: limit(x*arctan(x/2)/(cos(x)*sin(2*x)^2), x = 0)
Z ∞
2
4. (1 PUNTO) Calcula e−x dx como número real en punto flotante con 3 cifras decimais.
−∞
9. (1 PUNTO) Atopa o mı́nimo común múltiplo dos polinomios x2 − x + 1 e x3 + 2, ordeado por potencias
crecentes.
SOLUCIÓN: sort(expand(lcm(x^2-x+1, x^3+2)), x, ascending)
7. (1 PUNTO) Representa gráficamente o conxunto de puntos dado pola ecuación x2 sin 2x+y 2 cos 2y = z 2 ,
con x, y, z ∈ [−3, 3].
SOLUCIÓN: with(plots):implicitplot3d(x^2*sin(2*x)+y^2*cos(2*y) = z^2,x=-3..3,y=-3..3,z=-3..3)
8. (1 PUNTO) Representa na mesma gráfica as curvas x = t2 , y = log t e x = t2 , y = t−2 et para t = 1, . . . , 5.
SOLUCIÓN: plot([[t^2, log(t), t = 1 .. 5], [t^2, t^(-2)*exp(t), t = 1 .. 5]]);
2. (1 PUNTO) Define a función de Maple f (x) con valores f (x) = −1/x para x ≤ −1, f (x) = x2 − 2 para
−1 < x ≤ 1 e f (x) = −1/x para x > 1.
SOLUCIÓN: f:=(x)->piecewise(x <= -1,1/x,-1 <x and x <1,x^2-2,-1/x)
√
3. (1 PUNTO) Calcula a derivada de ex 2x2 − 4x.
SOLUCIÓN: diff(exp(x)*sqrt(2*x^2 - 4*x),x)
Z
√
4. (1 PUNTO) Calcula x cos xdx
SOLUCIÓN: int(x*cos(sqrt(x)), x)
5. (1 PUNTO) Representa gráficamente no intervalo [−1, 3] o polinomio de Taylor de orde 7 da función
2
f (x) = (x2 + 1)e−x en torno ao punto x0 = 1
SOLUCIÓN: plot(convert(taylor((x^3+1)*exp(-x^2), x = 1, 8), polynom), x = -1 .. 3)
7. (1 PUNTO) Resolve simbólicamente a ecuación x2 e−x + x sin x = 1 e mostra a solución en punto flotante
con 4 decimais.
SOLUCIÓN: solve(x^2*exp(-x) + x*sin(x) - 1, x); evalf( %,5)
Dada unha función f (x), a súa serie de Fourier F (x) está dada por:
X
∞ Z Z
1 π
1 π
F (x) = a0 + (an cos nx + bn sen nx), an = f (x) cos nxdx, bn = f (x) sen nxdx (1)
n=1
π −π π −π
Escribe un programa en Matlab chamado exame3.m que lea por teclado a expresión analı́tica dunha
función (usa x3 ) e a convirta nunha función en liña f(x). Logo, debes chamar á función funcion3(...),
pasándolle os argumentos axeitados, que para un valor de n retorne os dous coeficientes an e bn definidos
arriba (podes usar calcular as integrais definidas programando ou usando comandos de cálculo numérico
ou simbólico). No cálculo das integrais definidas, usa h = 2π/100. Entón, o programa exame3.m debe
calcular o valor da función de f (x) e máis da súa serie de Fourier F (x) para 100 valores de x no intervalo
[−π, π]. No canto da suma dende n = 1 ata ∞, usa somentes 10 sumandos. O programa debe almacenar
no arquivo resultados exame3.dat os coeficientes an e bn en dúas liñas distintas, e logo os valores de
f (x) e F (x) para x ∈ [−π, π], un par de valores en cada liña separados por un tabulador, con ancho 10 e
5 decimais.
SOLUCIÓN:
clear all
f=inline(input('f(x)? ','s'));
m=10;a=zeros(1,m);b=zeros(1,m);
[a0,˜]=funcion3(f,0);
for n=1:m
[a(n) b(n)]=funcion3(f,n);
end
n=100;x=linspace(−pi,pi,n);
y1=zeros(1,n);y2=zeros(1,n);
for i=1:n
tx=x(i);y1(i)=f(tx);ty=a0;
for j=1:m
ty=ty+a(j)*cos(j*tx)+b(j)*sin(j*tx);
end
y2(i)=ty;
end
f=fopen('resultados exame3.dat','w');
if −1==f
error('fopen resultados exame3.dat')
end
fprintf(f,' %g ',a);fprintf(f,'\n');
fprintf(f,' %g ',b);fprintf(f,'\n');
for i=1:n
fprintf(f,' %10.5\t %10.5f\n',y1(i),y2(i));
end
fclose(f);
function [a b]=funcion3(f,n)
a=0;b=0;h=2*pi/100;
for x=−pi:h:pi
fx=f(x);a=a+fx*cos(n*x);b=b+fx*sin(n*x);
end
a=h*a/pi;b=h*b/pi;
end