Ejercicios sobre el método de Gauss en la resolución de sistemas de ecuaciones

Retomo parte de un artículo anterior en el que se mostraba como resolver un sistema por el método de Gauss para proponer ahora un fichero que permite generar cualquier número de ejercicios de este tipo. Los datos para resolver los problemas se obtienen de forma aleatoria y tenemos varios ejemplos en el código de fichero que nos pueden servir de ayuda para tener ideas de qué relación de ejercicios deseamos generar.

Casi todo el código esté en formato python/LaTeX y el uso de LyX es mínimo. Pero por mantener el mismo formato de los ficheros de las entradas anteriores lo subo en formato LyX.

Lo único que tendremos que adecuar en el fichero es:

  • Valores mínimo y máximo entre los que obtener los valores de los coeficientes

    # Los coeficientes de los ejercicios se obtienen de forma aleatoria
    # valores entre los que obtenerlos
    minimo = -5
    maximo = 5
    
  • Tipos de sistemas que podemos obtener y número de ejercicios:

    # OPCIONES PERMITIDAS EN EL PROGRAMA
    # dim -> orden de la matriz
    
    # tipo -> cadena con los tipos permitidos siguientes
    # scd1 -> sistema compatible y determinado con soluciones enteras (el determinante se obliga a que sea +-1)
    # scd2 -> sistema compatible y determinado con soluciones de cualquier tipo
    # sci -> sistema compatible e indeterminado
    # si -> sistema incompatible
    tipos = ['scd1', 'scd2', 'sci', 'si']
    
    # Forma de definir los ejercicios que queremos obtener
    # listaejercicios=[(dim1,tipo1), (dim2,tipo2), ... ]
    
    # Por ejemplo, con la lista siguiente se obtienen 8 ejercicios de órdenes y tipos especificados
    listaejercicios = [(2, "scd1"), (3, "scd1"), (3, "scd1"),
                       (3, "si"), (3, "scd2"), (3, "sci"), (3, "sci"), (4, "scd1")]
    
    # Si queremos una lista de ejercicios de cada tipo entre 2 y 4 variables
    # (12 ejercicios) podemos optar por
    # listaejercicios = [(i, j) for i in range(2, 5) for j in tipos]
    
    # Si lo que queremos es 10 ejercicios aleatorios de orden 3 y un tipo
    # aleatorio
    # listaejercicios = [(3, j) for j in random.choices(tipos, k=10)]
    
    # O si lo que queremos es 10 ejercicios aleatorios de orden 3, un tipo
    # aleatorio pero más del tipo SCD
    # Estos pesos suponen que la probabilidad de seleccionar el valor "scd1" es el triple
    # a la probabilidad de seleccionar cualquier otro
    # pesos = [3, 1, 1, 1]
    # listaejercicios = [(3, j) for j in random.choices(tipos, pesos, k=10)]
    

    tal cuál está por defecto, obtenemos 8 ejercicios del tipo especificado en la variable listaejercicios

Con esos valores, un posible resultado de la compilación es:

Ejercicios sobre el método de Gauss en la resolución de sistemas de ecuaciones

  1. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {x1=33x1+x2=2\left\{ \begin{aligned}x_{1} & = & -3\\ -3x_{1}+x_{2} & = & 2 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (103312){F1F1F23F1+F2}(103017)\left(\begin{matrix}1 & 0 & -3\\ -3 & 1 & 2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & 3F_{1}+F_{2} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & 0 & -3\\ 0 & 1 & -7 \end{matrix}\right)
    Resolviendo el sistema escalonado {x1=3x2=7\left\{ \begin{aligned}x_{1} & = & -3\\ x_{2} & = & -7 \end{aligned} \right. se obtienen de soluciones:

    x1:3,x2:7{x_{1}:-3,x_{2}:-7}

    Tipo de sistema:

    Sistema compatible y determinado

  2. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {4x1+3x23x3=2x1+3x2+x3=2x12x23x3=4\left\{ \begin{aligned}-4x_{1}+3x_{2}-3x_{3} & = & 2\\ -x_{1}+3x_{2}+x_{3} & = & 2\\ -x_{1}-2x_{2}-3x_{3} & = & 4 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (433213121234){F1F2F2F1F3F3}(131243321234){F1F1F2F2F3F3}(131243321234){F1F1F24F1+F2F3F1+F3}(131209760542){F1F1F2F3F3F2}(131205420976){F1F1F22F2F3F3F3}(1312011100976){F1F1F2F2F39F2+F3}(13120111000296){F1F1F2F2F3F32}(13120111000148)\left(\begin{matrix}-4 & 3 & -3 & 2\\ -1 & 3 & 1 & 2\\ -1 & -2 & -3 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{2}\\ F_{2} & \leftrightarrows & F_{1}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & 3 & 1 & 2\\ -4 & 3 & -3 & 2\\ -1 & -2 & -3 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & -F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -3 & -1 & -2\\ -4 & 3 & -3 & 2\\ -1 & -2 & -3 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & 4F_{1}+F_{2}\\ F_{3} & \leftrightarrows & F_{1}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -3 & -1 & -2\\ 0 & -9 & -7 & -6\\ 0 & -5 & -4 & 2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{3}\\ F_{3} & \leftrightarrows & F_{2} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -3 & -1 & -2\\ 0 & -5 & -4 & 2\\ 0 & -9 & -7 & -6 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & 2F_{2}-F_{3}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -3 & -1 & -2\\ 0 & -1 & -1 & 10\\ 0 & -9 & -7 & -6 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & -9F_{2}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -3 & -1 & -2\\ 0 & -1 & -1 & 10\\ 0 & 0 & 2 & -96 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & \frac{F_{3}}{2} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -3 & -1 & -2\\ 0 & -1 & -1 & 10\\ 0 & 0 & 1 & -48 \end{matrix}\right)
    Resolviendo el sistema escalonado {x13x2x3=2x2x3=10x3=48\left\{ \begin{aligned}x_{1}-3x_{2}-x_{3} & = & -2\\ -x_{2}-x_{3} & = & 10\\ x_{3} & = & -48 \end{aligned} \right. se obtienen de soluciones:

    x1:64,x2:38,x3:48{x_{1}:64,x_{2}:38,x_{3}:-48}

    Tipo de sistema:

    Sistema compatible y determinado

  3. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {4x14x2+3x3=22x1+3x2x3=2x12x2=5\left\{ \begin{aligned}-4x_{1}-4x_{2}+3x_{3} & = & -2\\ 2x_{1}+3x_{2}-x_{3} & = & -2\\ -x_{1}-2x_{2} & = & 5 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (443223121205){F1F3F2F2F3F1}(120523124432){F1F1F2F2F3F3}(120523124432){F1F1F22F1+F2F34F1+F3}(1205011804322){F1F1F2F2F3F3}(1205011804322){F1F1F2F2F34F2+F3}(1205011800110)\left(\begin{matrix}-4 & -4 & 3 & -2\\ 2 & 3 & -1 & -2\\ -1 & -2 & 0 & 5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{3}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{1} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & -2 & 0 & 5\\ 2 & 3 & -1 & -2\\ -4 & -4 & 3 & -2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & -F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & 2 & 0 & -5\\ 2 & 3 & -1 & -2\\ -4 & -4 & 3 & -2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & -2F_{1}+F_{2}\\ F_{3} & \leftrightarrows & 4F_{1}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & 2 & 0 & -5\\ 0 & -1 & -1 & 8\\ 0 & 4 & 3 & -22 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & -F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & 2 & 0 & -5\\ 0 & 1 & 1 & -8\\ 0 & 4 & 3 & -22 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & -4F_{2}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & 2 & 0 & -5\\ 0 & 1 & 1 & -8\\ 0 & 0 & -1 & 10 \end{matrix}\right)
    Resolviendo el sistema escalonado {x1+2x2=5x2+x3=8x3=10\left\{ \begin{aligned}x_{1}+2x_{2} & = & -5\\ x_{2}+x_{3} & = & -8\\ -x_{3} & = & 10 \end{aligned} \right. se obtienen de soluciones:

    x1:9,x2:2,x3:10{x_{1}:-9,x_{2}:2,x_{3}:-10}

    Tipo de sistema:

    Sistema compatible y determinado

  4. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {3x13x2+3x3=23x1+3x23x3=32x1+3x3=5\left\{ \begin{aligned}3x_{1}-3x_{2}+3x_{3} & = & -2\\ -3x_{1}+3x_{2}-3x_{3} & = & -3\\ 2x_{1}+3x_{3} & = & -5 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (333233332035){F1F1F2F23F3F3}(333211112035){F1F2F2F1F3F3}(111133322035){F1F1F2F2F3F3}(111133322035){F1F1F23F1+F2F32F1+F3}(111100050217){F1F1F2F25F3F3}(111100010217){F1F1F2F3F3F2}(111102170001){F1F1F2F2F3F3}(111102170001)\left(\begin{matrix}3 & -3 & 3 & -2\\ -3 & 3 & -3 & -3\\ 2 & 0 & 3 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & \frac{F_{2}}{3}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}3 & -3 & 3 & -2\\ -1 & 1 & -1 & -1\\ 2 & 0 & 3 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{2}\\ F_{2} & \leftrightarrows & F_{1}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & 1 & -1 & -1\\ 3 & -3 & 3 & -2\\ 2 & 0 & 3 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & -F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -1 & 1 & 1\\ 3 & -3 & 3 & -2\\ 2 & 0 & 3 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & -3F_{1}+F_{2}\\ F_{3} & \leftrightarrows & -2F_{1}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -1 & 1 & 1\\ 0 & 0 & 0 & -5\\ 0 & 2 & 1 & -7 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & \frac{F_{2}}{5}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -1 & 1 & 1\\ 0 & 0 & 0 & -1\\ 0 & 2 & 1 & -7 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{3}\\ F_{3} & \leftrightarrows & F_{2} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -1 & 1 & 1\\ 0 & 2 & 1 & -7\\ 0 & 0 & 0 & -1 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -1 & 1 & 1\\ 0 & 2 & 1 & -7\\ 0 & 0 & 0 & -1 \end{matrix}\right)
    Resolviendo el sistema escalonado {x1x2+x3=12x2+x3=70=1\left\{ \begin{aligned}x_{1}-x_{2}+x_{3} & = & 1\\ 2x_{2}+x_{3} & = & -7\\ 0 & = & -1 \end{aligned} \right. se obtienen de soluciones:

    No tieneNo\ tiene

    Tipo de sistema:

    Sistema incompatible, no tiene solución

  5. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {2x12x2x3=04x1x3=43x1+2x2+5x3=2\left\{ \begin{aligned}2x_{1}-2x_{2}-x_{3} & = & 0\\ 4x_{1}-x_{3} & = & 4\\ -3x_{1}+2x_{2}+5x_{3} & = & -2 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (221040143252){F1F1F22F1+F2F3F3}(221004143252){F1F1+F3F2F2F3F3}(104204143252){F1F1F2F2F33F1+F3}(104204140274){F1F1F2F3F3F2}(104202740414){F1F1F2F2F32F2+F3}(1042027400154)\left(\begin{matrix}2 & -2 & -1 & 0\\ 4 & 0 & -1 & 4\\ -3 & 2 & 5 & -2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & -2F_{1}+F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}2 & -2 & -1 & 0\\ 0 & 4 & 1 & 4\\ -3 & 2 & 5 & -2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}+F_{3}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & 0 & 4 & -2\\ 0 & 4 & 1 & 4\\ -3 & 2 & 5 & -2 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & -3F_{1}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & 0 & 4 & -2\\ 0 & 4 & 1 & 4\\ 0 & 2 & -7 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{3}\\ F_{3} & \leftrightarrows & F_{2} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & 0 & 4 & -2\\ 0 & 2 & -7 & 4\\ 0 & 4 & 1 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & -2F_{2}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}-1 & 0 & 4 & -2\\ 0 & 2 & -7 & 4\\ 0 & 0 & 15 & -4 \end{matrix}\right)
    Resolviendo el sistema escalonado {x1+4x3=22x27x3=415x3=4\left\{ \begin{aligned}-x_{1}+4x_{3} & = & -2\\ 2x_{2}-7x_{3} & = & 4\\ 15x_{3} & = & -4 \end{aligned} \right. se obtienen de soluciones:

    x1:14/15,x2:16/15,x3:4/15{x_{1}:14/15,x_{2}:16/15,x_{3}:-4/15}

    Tipo de sistema:

    Sistema compatible y determinado

  6. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {5x1+5x2+5x3=45x15x25x3=45x13x22x3=1\left\{ \begin{aligned}5x_{1}+5x_{2}+5x_{3} & = & -4\\ -5x_{1}-5x_{2}-5x_{3} & = & 4\\ -5x_{1}-3x_{2}-2x_{3} & = & -1 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (555455545321){F1F1F2F1+F2F3F1+F3}(555400000235){F1F1F2F3F3F2}(555402350000){F1F1F2F2F3F3}(555402350000)\left(\begin{matrix}5 & 5 & 5 & -4\\ -5 & -5 & -5 & 4\\ -5 & -3 & -2 & -1 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{1}+F_{2}\\ F_{3} & \leftrightarrows & F_{1}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}5 & 5 & 5 & -4\\ 0 & 0 & 0 & 0\\ 0 & 2 & 3 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{3}\\ F_{3} & \leftrightarrows & F_{2} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}5 & 5 & 5 & -4\\ 0 & 2 & 3 & -5\\ 0 & 0 & 0 & 0 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}5 & 5 & 5 & -4\\ 0 & 2 & 3 & -5\\ 0 & 0 & 0 & 0 \end{matrix}\right)
    Resolviendo el sistema escalonado {5x1+5x2+5x3=42x2+3x3=50=0\left\{ \begin{aligned}5x_{1}+5x_{2}+5x_{3} & = & -4\\ 2x_{2}+3x_{3} & = & -5\\ 0 & = & 0 \end{aligned} \right. se obtienen de soluciones:

    (x1x2x3)=(τ0/2+17/103τ0/25/2τ0)\left(\begin{matrix}x_{1}\\ x_{2}\\ x_{3} \end{matrix}\right)=\left(\begin{matrix}\tau_{0}/2+17/10\\ -3\tau_{0}/2-5/2\\ \tau_{0} \end{matrix}\right)

    Tipo de sistema:

    Sistema compatible indeterminado

  7. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {5x1+5x3=15x1+x2=15x1x2=1\left\{ \begin{aligned}5x_{1}+5x_{3} & = & 1\\ 5x_{1}+x_{2} & = & 1\\ -5x_{1}-x_{2} & = & -1 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (505151015101){F1F1F2F1+F2F3F1+F3}(505101500150){F1F1F2F2F3F2+F3}(505101500000)\left(\begin{matrix}5 & 0 & 5 & 1\\ 5 & 1 & 0 & 1\\ -5 & -1 & 0 & -1 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & -F_{1}+F_{2}\\ F_{3} & \leftrightarrows & F_{1}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}5 & 0 & 5 & 1\\ 0 & 1 & -5 & 0\\ 0 & -1 & 5 & 0 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{2}+F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}5 & 0 & 5 & 1\\ 0 & 1 & -5 & 0\\ 0 & 0 & 0 & 0 \end{matrix}\right)
    Resolviendo el sistema escalonado {5x1+5x3=1x25x3=00=0\left\{ \begin{aligned}5x_{1}+5x_{3} & = & 1\\ x_{2}-5x_{3} & = & 0\\ 0 & = & 0 \end{aligned} \right. se obtienen de soluciones:

    (x1x2x3)=(1/5τ05τ0τ0)\left(\begin{matrix}x_{1}\\ x_{2}\\ x_{3} \end{matrix}\right)=\left(\begin{matrix}1/5-\tau_{0}\\ 5\tau_{0}\\ \tau_{0} \end{matrix}\right)

    Tipo de sistema:

    Sistema compatible indeterminado

  8. Resuelve y clasifica el sistema de ecuaciones por el método de Gauss:

    {3x15x2x3x4=53x1+x2+3x3+4x4=0x12x22x34x4=33x1+4x2+3x3+5x4=4\left\{ \begin{aligned}3x_{1}-5x_{2}-x_{3}-x_{4} & = & -5\\ -3x_{1}+x_{2}+3x_{3}+4x_{4} & = & 0\\ x_{1}-2x_{2}-2x_{3}-4x_{4} & = & -3\\ -3x_{1}+4x_{2}+3x_{3}+5x_{4} & = & 4 \end{aligned} \right.

    Solución:

    Escribamos la matriz ampliada, si podemos la simplificamos:
    (35115313401224334354){F1F3F2F2F3F1F4F4}(12243313403511534354){F1F1F23F1+F2F33F1+F3F43F1+F4}(122430538901511402375){F1F1F2F3F3F2F4F4}(122430151140538902375){F1F1F2F2F35F2+F3F42F2+F4}(1224301511400224711007153){F1F1F2F2F3F4F4F3}(1224301511400715300224711){F1F1F2F2F33F3+F4F4F4}(122430151140012200224711){F1F1F2F2F3F3F422F3+F4}(1224301511400122000333){F1F1F2F2F3F3F4F43}(1224301511400122000111)\left(\begin{matrix}3 & -5 & -1 & -1 & -5\\ -3 & 1 & 3 & 4 & 0\\ 1 & -2 & -2 & -4 & -3\\ -3 & 4 & 3 & 5 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{3}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{1}\\ F_{4} & \leftrightarrows & F_{4} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ -3 & 1 & 3 & 4 & 0\\ 3 & -5 & -1 & -1 & -5\\ -3 & 4 & 3 & 5 & 4 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & 3F_{1}+F_{2}\\ F_{3} & \leftrightarrows & -3F_{1}+F_{3}\\ F_{4} & \leftrightarrows & 3F_{1}+F_{4} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & -5 & -3 & -8 & -9\\ 0 & 1 & 5 & 11 & 4\\ 0 & -2 & -3 & -7 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{3}\\ F_{3} & \leftrightarrows & F_{2}\\ F_{4} & \leftrightarrows & F_{4} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & 1 & 5 & 11 & 4\\ 0 & -5 & -3 & -8 & -9\\ 0 & -2 & -3 & -7 & -5 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & 5F_{2}+F_{3}\\ F_{4} & \leftrightarrows & 2F_{2}+F_{4} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & 1 & 5 & 11 & 4\\ 0 & 0 & 22 & 47 & 11\\ 0 & 0 & 7 & 15 & 3 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{4}\\ F_{4} & \leftrightarrows & F_{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & 1 & 5 & 11 & 4\\ 0 & 0 & 7 & 15 & 3\\ 0 & 0 & 22 & 47 & 11 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & -3F_{3}+F_{4}\\ F_{4} & \leftrightarrows & F_{4} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & 1 & 5 & 11 & 4\\ 0 & 0 & 1 & 2 & 2\\ 0 & 0 & 22 & 47 & 11 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3}\\ F_{4} & \leftrightarrows & -22F_{3}+F_{4} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & 1 & 5 & 11 & 4\\ 0 & 0 & 1 & 2 & 2\\ 0 & 0 & 0 & 3 & -33 \end{matrix}\right)\begin{Bmatrix}F_{1} & \leftrightarrows & F_{1}\\ F_{2} & \leftrightarrows & F_{2}\\ F_{3} & \leftrightarrows & F_{3}\\ F_{4} & \leftrightarrows & \frac{F_{4}}{3} \end{Bmatrix}\longmapsto \\\left(\begin{matrix}1 & -2 & -2 & -4 & -3\\ 0 & 1 & 5 & 11 & 4\\ 0 & 0 & 1 & 2 & 2\\ 0 & 0 & 0 & 1 & -11 \end{matrix}\right)
    Resolviendo el sistema escalonado {x12x22x34x4=3x2+5x3+11x4=4x3+2x4=2x4=11\left\{ \begin{aligned}x_{1}-2x_{2}-2x_{3}-4x_{4} & = & -3\\ x_{2}+5x_{3}+11x_{4} & = & 4\\ x_{3}+2x_{4} & = & 2\\ x_{4} & = & -11 \end{aligned} \right. se obtienen de soluciones:

    x1:11,x2:5,x3:24,x4:11{x_{1}:11,x_{2}:5,x_{3}:24,x_{4}:-11}

    Tipo de sistema:

    Sistema compatible y determinado

Enlaces al fichero fuente y al pdf final de una posible compilación.