MA 135 Applied Discrete Math Study Notes

MA 135 Applied Discrete Math Study Notes

1.1 Vectors

  • Definition of a Vector: A vector is a mathematical object that has both a magnitude and a direction.

    • Example: v=(1,3)v = (1, 3)

  • Vector Notation:

    • In vector notation, W=(−3,4)∗4W=(-3,4) * 4 represents a scaled vector.

    • The formula in the context of vectors is referred to as Formula on 19.2.

  • Notation:

    • Initial point of a vector a=(−3,1)a=(-3,1)

    • Terminal point of a vector a=(−1,4)a=(-1,4)

    • Standard position vector v=(b<em>1−a</em>1,b<em>2−a</em>2)v = (b<em>1-a</em>1, b<em>2-a</em>2)

    • A standard position vector has its origin as the initial point.

  • n-tuple: An ordered list of n numbers represented as (a<em>1,a</em>2,…,an)(a<em>1, a</em>2,…, a_n).

    • Example in real numbers: v=(1,3,−2)v = (1, 3, -2) is a vector in $ ext{IR}^3$

  • Zero Vector: A vector where all components are zero, e.g., (0,0,0,…,0)(0,0,0,…,0)

  • Applications of Vectors:

    • Vectors are utilized to store data.

    • Vectors are also used to create geometric shapes.

1.2 Finding Standard Position Vector

  • Finding the Standard Position Vector:

    • Given an initial point (a<em>1,a</em>2)(a<em>1, a</em>2) and a terminal point (b<em>1,b</em>2)(b<em>1, b</em>2), the standard position vector is:
      V=(b<em>1−a</em>1,b<em>2−a</em>2)V = (b<em>1-a</em>1, b<em>2-a</em>2)

    • This formula can be extended to any dimension where
      V=(b<em>1−a</em>1,b<em>2−a</em>2,…,b<em>n−a</em>n)V = (b<em>1-a</em>1, b<em>2-a</em>2, …, b<em>n-a</em>n)

  • Magnitude of a Vector: The length of vector vv, denoted by $ ext{||v||}$, is defined as:
    ∣∣v∣∣=extsqrt(a<em>12+a</em>22+…+an2)||v|| = ext{sqrt}(a<em>1^2 + a</em>2^2 + … + a_n^2)

    • Example: Finding the magnitude of vector with initial point (1,5)(1,5) and terminal point (2,−4)(2,-4).

    • Standard position vector: V=(2−1,−4−5)=(1,−9)V = (2-1, -4-5) = (1, -9)

    • Magnitude:
      ∣∣V∣∣=extsqrt(12+(−9)2)=extsqrt(1+81)=extsqrt(82)||V|| = ext{sqrt}(1^2 + (-9)^2) = ext{sqrt}(1 + 81) = ext{sqrt}(82)

  • Direction of a Vector: Described by the angle from the positive x-axis to the vector, measured in a counterclockwise direction.

    • Example: For the vector V=(2,2)V = (2,2), the angle is 45exto45^ ext{o}.

1.3 Working with Directions

  • Finding Direction:

    • Example: To find the direction of the vector from (6,1)(6, 1) to (−2,−5)(-2, -5), standard position is:
      V=(−2−6,−5−1)=(−8,−6)V = (-2-6, -5-1) = (-8, -6)

    • The angle calculated as:
      heta=360exto−45exto=315extoheta = 360^ ext{o} - 45^ ext{o} = 315^ ext{o}

  • Specific Vector Calculations:

    • Example: Find the direction and magnitude of a vector starting from (−2,5)(-2,5) and ending at (−3,−1)(-3,-1):

    • Standard position vector V=(−3−(−2),−1−5)=(−1,−6)V = (-3 - (-2), -1 - 5) = (-1, -6)

    • Magnitude:
      ∣∣V∣∣=extsqrt((−1)2+(−6)2)=extsqrt(1+36)=extsqrt(37)||V|| = ext{sqrt}((-1)^2 + (-6)^2) = ext{sqrt}(1 + 36) = ext{sqrt}(37)

    • Direction $ heta$:
      heta=exttan−1rac−6−1=80.5exto,extthenheta=180+80.5=260.5extoheta = ext{tan}^{-1} rac{-6}{-1} = 80.5^ ext{o}, ext{ then } heta = 180 + 80.5 = 260.5^ ext{o}

  • Examples of Other Vectors:

    • Example with vector V=(−3,−5)V = (-3,-5) results in:
      heta=180+59.03=239.03extoheta = 180 + 59.03 = 239.03^ ext{o}

    • For vector w=(−4,5)w = (-4,5),
      heta=180−51.3=128.7extoheta = 180 - 51.3 = 128.7^ ext{o}

1.4 Vector Review

  • Vector Representation: In vector notation, v=[7]v = [7] signifies a vertical vector with length $ ext{||v||} = ext{sqrt}(a1^2 + a2^2 + … + a_n^2)$

  • Direction: The direction of vector vv is determined as the angle from the positive x-axis measured counterclockwise.

    • Example: w=(−3,5)w=(-3,5) which needs to be analyzed for direction.

1.5 Vector Operations

  • Scalar Multiplication:

    • If kk is a constant and vv is a vector in $ ext{IR}$, then:
      kimesv=k(a<em>1,a</em>2,a<em>3)=(ka</em>1,ka<em>2,ka</em>3,ext…,kan)k imes v = k (a<em>1, a</em>2, a<em>3) = (k a</em>1, k a<em>2, k a</em>3, ext{…, } k a_n)

    • If k>0k > 0, then the result is a stretch of vv, if 0<k<10<k<1, it's a shrink, and if k<0k < 0, the resultant vector is scaled in the opposite direction of vv.

  • Adding and Subtracting Vectors: For vectors in the same dimension, use:
    V+W=(a<em>1+b</em>1,a<em>2+b</em>2,…,a<em>n+b</em>n)V + W = (a<em>1 + b</em>1, a<em>2 + b</em>2, …, a<em>n + b</em>n)
    V−W=(a<em>1−b</em>1,a<em>2−b</em>2,…,a<em>n−b</em>n)V - W = (a<em>1 - b</em>1, a<em>2 - b</em>2, …, a<em>n - b</em>n)

  • Geometrical Representation:

    • Refer to graphical illustrations for visualization.

1.6 Unit Vector (Normalizing)

  • Definition: A unit vector has a length equal to 1.

    • Given vector vv, to find its unit vector:
      u=racv∣∣v∣∣u = rac{v}{||v||}

    • Example for v=(8,−2)v = (8, -2):

      • Length calculation leads to unit vector uu.

1.7 Dot Product of Vectors

  • Definition: For vectors vv and ww, the dot product is defined as:
    v∙w=extsum(a<em>ib</em>i)=(a<em>1b</em>1+a<em>2b</em>2+…+a<em>nb</em>n)v \bullet w = ext{sum}(a<em>i b</em>i) = (a<em>1 b</em>1 + a<em>2 b</em>2 + … + a<em>n b</em>n)

    • Example computation.

  • Properties of Dot Products:

    1. Commutative: u∙v=v∙uu \bullet v = v \bullet u

    2. Distributive: u∙(v+w)=u∙v+u∙wu \bullet (v + w) = u \bullet v + u \bullet w

    3. Associative: (cu)v=c(u∙v)(cu)v = c(u \bullet v)

  • Geometric Interpretation:
    u∙v=∣∣u∣∣imes∣∣v∣∣imesextcos(heta)u \bullet v = ||u|| imes ||v|| imes ext{cos}( heta) where $ heta$ is the angle between vectors.

  • Example Calculations: Using specific numbers for vectors to show detailed numerical operations.

1.8 Orthogonal Vectors

  • Definition: Two vectors are orthogonal if the angle between them is 90exto90^ ext{o}.

    • Condition: u∙v=0u \bullet v = 0.

  • Scalar Projection: The scalar projection of vector VV onto vector WW, denoted as:
    extCompWV=racV∙W∣∣W∣∣ext{Comp}_W V = rac{V \bullet W}{||W||}

  • Further Explanation: Deriving the projection formula based on vector relations.

1.9 Vector Projection

  • Definition: The vector projection of uu onto vv is achieved:
    extProjvu=racu∙v∣∣v∣∣2vext{Proj}_{v} u = rac{u \bullet v}{||v||^2} v

  • Examples: Working through numeric samples.

2. Matrices

  • Definition of a Matrix: A matrix is an array of numbers represented as:
    A = egin{bmatrix} a{11} & a{12} & … & a{1n} \ a{21} & a{22} & … & a{2n} \ … & … & … & … \ a{m1} & a{m2} & … & a_{mn} \ ext{where } m ext{ is the number of rows and } n ext{ is the number of columns} \ ext{Example: } A = egin{bmatrix} -3 & 5 \ 3 & 2 \ ext{This indicates a } 2 imes 2 ext{ matrix.}

  • Matrix Types:

    • Zero Matrix: All elements are zero.

    • Identity Matrix: Forms diagonal of ones.

  • Operations on Matrices:

    • Scalar Multiplication:
      k imes A = k egin{bmatrix} a{11} & a{12} \ a{21} & a{22} \ ext{will lead to each element being scaled by } k. </p></li><li><p><strong>Addition</strong>:Matricescanbeaddediftheyhavethesamedimensions.</p></li></ul></li><li><p><strong>PropertiesofMatrixAdditionandMultiplication</strong>:</p><ol><li><p>CommutativeProperty</p></li><li><p>AssociativeProperty</p></li></ol></li></ul><h4id="a705b996−3bcf−48a1−b32c−96df986a359b"data−toc−id="a705b996−3bcf−48a1−b32c−96df986a359b"collapsed="false"seolevelmigrated="true">3.SystemsofLinearEquations</h4><ul><li><p><strong>Definition</strong>:Alinearequationtakestheform:<br></p></li><li><p><strong>Addition</strong>: Matrices can be added if they have the same dimensions.</p></li></ul></li><li><p><strong>Properties of Matrix Addition and Multiplication</strong>:</p><ol><li><p>Commutative Property</p></li><li><p>Associative Property</p></li></ol></li></ul><h4 id="a705b996-3bcf-48a1-b32c-96df986a359b" data-toc-id="a705b996-3bcf-48a1-b32c-96df986a359b" collapsed="false" seolevelmigrated="true">3. Systems of Linear Equations</h4><ul><li><p><strong>Definition</strong>: A linear equation takes the form:<br> a1x1 + a2x2 + … + anxn = b </p><ul><li><p>Example:</p><ul><li><p>Example:x + y = 1isalinearequation.</p></li></ul></li><li><p><strong>MatrixRepresentation</strong>:Asystemcanberepresentedas:<br>is a linear equation.</p></li></ul></li><li><p><strong>Matrix Representation</strong>: A system can be represented as:<br> AX = B wherewhereAisthecoefficientmatrixandis the coefficient matrix andBistheconstantmatrix.</p></li><li><p><strong>SolvingSystems</strong>:UsetechniquessuchasEROS(ElementaryRowOperations)totransformmatrices.</p></li><li><p><strong>ExampleProblem</strong>:Showstepstakentosolveasystemofequations.</p></li></ul><h4id="bdb53bc6−a8c5−4301−a8c9−a257f7eb85f3"data−toc−id="bdb53bc6−a8c5−4301−a8c9−a257f7eb85f3"collapsed="false"seolevelmigrated="true">4.IntegerProperties</h4><ul><li><p><strong>TypesofNumbers</strong>:</p><ul><li><p>NaturalNumbers:positivewholeintegers.</p></li><li><p>Integers:positive,negativewholenumbers,andzero.</p></li><li><p>RationalNumbers:canbeexpressedasthequotientoftwointegers.</p></li><li><p>RealNumbers:includesbothrationalandirrationalnumbers.</p></li></ul></li><li><p><strong>Divisibility</strong>:Anintegeris the constant matrix.</p></li><li><p><strong>Solving Systems</strong>: Use techniques such as EROS (Elementary Row Operations) to transform matrices.</p></li><li><p><strong>Example Problem</strong>: Show steps taken to solve a system of equations.</p></li></ul><h4 id="bdb53bc6-a8c5-4301-a8c9-a257f7eb85f3" data-toc-id="bdb53bc6-a8c5-4301-a8c9-a257f7eb85f3" collapsed="false" seolevelmigrated="true">4. Integer Properties</h4><ul><li><p><strong>Types of Numbers</strong>:</p><ul><li><p>Natural Numbers: positive whole integers.</p></li><li><p>Integers: positive, negative whole numbers, and zero.</p></li><li><p>Rational Numbers: can be expressed as the quotient of two integers.</p></li><li><p>Real Numbers: includes both rational and irrational numbers.</p></li></ul></li><li><p><strong>Divisibility</strong>: An integerkdividesintegerdivides integermif:<br>if:<br> m = nk ext{ for some integer } n. </p><ul><li><p>Example:</p><ul><li><p>Example:2dividesdivides6.</p></li></ul></li><li><p><strong>DivisibilityDefinitionsandNotations</strong>.</p><ul><li><p>Linearcombinations,divisionalgorithms,andexistenceofuniqueintegerspertainingtomodulararithmetic.</p></li></ul></li></ul><h4id="e370cd75−4b9a−4cb1−adf7−f0555934abb2"data−toc−id="e370cd75−4b9a−4cb1−adf7−f0555934abb2"collapsed="false"seolevelmigrated="true">5.ModularArithmetic</h4><ul><li><p><strong>Definition</strong>:Givenaninteger.</p></li></ul></li><li><p><strong>Divisibility Definitions and Notations</strong>.</p><ul><li><p>Linear combinations, division algorithms, and existence of unique integers pertaining to modular arithmetic.</p></li></ul></li></ul><h4 id="e370cd75-4b9a-4cb1-adf7-f0555934abb2" data-toc-id="e370cd75-4b9a-4cb1-adf7-f0555934abb2" collapsed="false" seolevelmigrated="true">5. Modular Arithmetic</h4><ul><li><p><strong>Definition</strong>: Given an integerm > 1,,x ext{ mod } mrepresentstheremainderwhenrepresents the remainder whenxisdividedbyis divided bym.</p></li><li><p><strong>Properties</strong>:Differenttheoremsbasedonmodoperations.</p></li><li><p><strong>ExampleofModularOperations</strong>:Showexamplesofadditionandmultiplicationinmodularsystems.</p></li><li><p><strong>TheoremSummary</strong>:Brieflydetailimportanttheoremsregardingmodulararithmetic.</p></li></ul><h4id="717f08c5−33d0−494a−9a2c−88092b9beaf6"data−toc−id="717f08c5−33d0−494a−9a2c−88092b9beaf6"collapsed="false"seolevelmigrated="true">6.PrimeFactorization</h4><ul><li><p><strong>DefinitionofaPrimeNumber</strong>:Anintegergreaterthan1,divisibleonlybyitselfand1.</p></li><li><p><strong>FundamentalTheoremofArithmetic</strong>:Everypositiveintegergreaterthan1canbeexpresseduniquelyasaproductofprimenumbers.</p></li><li><p><strong>CommonApplications</strong>:Findingthegreatestcommondivisor(gcd)andleastcommonmultiple(lcm)throughprimefactorization.</p></li></ul><p></p><ol><li><p><strong>StandardPositionVector</strong>:<br>.</p></li><li><p><strong>Properties</strong>: Different theorems based on mod operations.</p></li><li><p><strong>Example of Modular Operations</strong>: Show examples of addition and multiplication in modular systems.</p></li><li><p><strong>Theorem Summary</strong>: Briefly detail important theorems regarding modular arithmetic.</p></li></ul><h4 id="717f08c5-33d0-494a-9a2c-88092b9beaf6" data-toc-id="717f08c5-33d0-494a-9a2c-88092b9beaf6" collapsed="false" seolevelmigrated="true">6. Prime Factorization</h4><ul><li><p><strong>Definition of a Prime Number</strong>: An integer greater than 1, divisible only by itself and 1.</p></li><li><p><strong>Fundamental Theorem of Arithmetic</strong>: Every positive integer greater than 1 can be expressed uniquely as a product of prime numbers.</p></li><li><p><strong>Common Applications</strong>: Finding the greatest common divisor (gcd) and least common multiple (lcm) through prime factorization.</p></li></ul><p></p><ol><li><p><strong>Standard Position Vector</strong>:<br> V = (b1 - a1, b2 - a2) <br>Foranydimension:<br><br>For any dimension: <br> V = (b1 - a1, b2 - a2, …, bn - an) </p></li><li><p><strong>MagnitudeofaVector</strong>:<br></p></li><li><p><strong>Magnitude of a Vector</strong>: <br> ||v|| = \sqrt{a1^2 + a2^2 + … + a_n^2} </p></li><li><p><strong>VectorDirection</strong>:<br></p></li><li><p><strong>Vector Direction</strong>: <br>theta=\text{angle from the positive x-axis measured counterclockwise}</p></li><li><p><strong>ScalarMultiplication</strong>:<br></p></li><li><p><strong>Scalar Multiplication</strong>: <br> k \times v = k (a1, a2, a3) = (k a1, k a2, k a3, …, k a_n) </p></li><li><p><strong>AddingandSubtractingVectors</strong>:<br></p></li><li><p><strong>Adding and Subtracting Vectors</strong>: <br> V + W = (a1 + b1, a2 + b2, …, an + bn) <br><br> V - W = (a1 - b1, a2 - b2, …, an - bn) </p></li><li><p><strong>UnitVector</strong>:<br></p></li><li><p><strong>Unit Vector</strong>: <br> u = \frac{v}{||v||} </p></li><li><p><strong>DotProduct</strong>:<br></p></li><li><p><strong>Dot Product</strong>: <br> v • w = \text{sum}(ai bi) = (a1 b1 + a2 b2 + … + an bn) </p></li><li><p><strong>GeometricInterpretationofDotProduct</strong>:<br></p></li><li><p><strong>Geometric Interpretation of Dot Product</strong>: <br> u • v = ||u|| \times ||v|| \times \cos(\theta) </p></li><li><p><strong>ScalarProjection</strong>:<br></p></li><li><p><strong>Scalar Projection</strong>: <br> \text{Comp}_W V = \frac{V • W}{||W||} </p></li><li><p><strong>VectorProjection</strong>:<br></p></li><li><p><strong>Vector Projection</strong>: <br> \text{Proj}_{v} u = \frac{u • v}{||v||^2} v </p></li><li><p><strong>LinearEquation</strong>:<br></p></li><li><p><strong>Linear Equation</strong>: <br> a1 x1 + a2 x2 + … + an xn = b </p></li><li><p><strong>MatrixRepresentationofaSystem</strong>:<br></p></li><li><p><strong>Matrix Representation of a System</strong>: <br> AX = B </p></li><li><p><strong>Divisibility</strong>:<br></p></li><li><p><strong>Divisibility</strong>: <br> m = nk \text{ for some integer } n </p></li><li><p><strong>ModularArithmetic</strong>:<br></p></li><li><p><strong>Modular Arithmetic</strong>: <br> x \text{ mod } m = \text{remainder when } x \text{ is divided by } m </p></li></ol><p></p><ul><li><p><strong>OperationsonMatrices</strong>:</p><ul><li><p><strong>ScalarMultiplication</strong>:</p><p></p></li></ol><p></p><ul><li><p><strong>Operations on Matrices</strong>:</p><ul><li><p><strong>Scalar Multiplication</strong>:</p><p> k imes A = k \begin{bmatrix} a{11} & a{12} \ a{21} & a{22} \end{bmatrix} \text{ will lead to each element being scaled by } k.

    • Addition: Matrices can be added if they have the same dimensions.

    • Example of Matrix Addition:

      Given two matrices:
      A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}, \ B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix},
      Then,
      A + B = \begin{bmatrix} 1+5 & 2+6 \ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \ 10 & 12 \end{bmatrix}.

  • Matrix Representation:

    A system can be represented as:

    AX = B wherewhereAisthecoefficientmatrixandis the coefficient matrix andBistheconstantmatrix.</p></li><li><p><strong>ExampleProblem</strong>:Showstepstakentosolveasystemofequations.Thespecificcalculationsforthiswilldependontheprovidedsystemsofequations,butgeneralstepsinclude:</p><ol><li><p>Setuptheaugmentedmatrix</p></li><li><p>UsetechniquessuchasEROS(ElementaryRowOperations)totransformmatrices.</p></li></ol></li><li><p><strong>PropertiesofMatrixAdditionandMultiplication</strong>:</p><ol><li><p>CommutativeProperty</p></li><li><p>AssociativeProperty</p></li><li><p>DistributiveProperty</p></li></ol></li></ul><p></p><h5id="ae91b10a−e658−4ece−a4a6−1ddca2ee889e"data−toc−id="ae91b10a−e658−4ece−a4a6−1ddca2ee889e"collapsed="false"seolevelmigrated="true">MatrixMultiplication</h5><ul><li><p><strong>Definition</strong>:Matrixmultiplicationinvolvesthemultiplicationoftwomatricestoproduceathirdmatrix.Thenumberofcolumnsinthefirstmatrixmustequalthenumberofrowsinthesecondmatrix.</p></li><li><p><strong>MatrixRepresentation</strong>:Ifwehavetwomatrices,AandB,andwewanttomultiplythem:</p><p>is the constant matrix.</p></li><li><p><strong>Example Problem</strong>: Show steps taken to solve a system of equations. The specific calculations for this will depend on the provided systems of equations, but general steps include:</p><ol><li><p>Set up the augmented matrix </p></li><li><p>Use techniques such as EROS (Elementary Row Operations) to transform matrices.</p></li></ol></li><li><p><strong>Properties of Matrix Addition and Multiplication</strong>:</p><ol><li><p>Commutative Property</p></li><li><p>Associative Property</p></li><li><p>Distributive Property </p></li></ol></li></ul><p></p><h5 id="ae91b10a-e658-4ece-a4a6-1ddca2ee889e" data-toc-id="ae91b10a-e658-4ece-a4a6-1ddca2ee889e" collapsed="false" seolevelmigrated="true">Matrix Multiplication</h5><ul><li><p><strong>Definition</strong>: Matrix multiplication involves the multiplication of two matrices to produce a third matrix. The number of columns in the first matrix must equal the number of rows in the second matrix.</p></li><li><p><strong>Matrix Representation</strong>: If we have two matrices, A and B, and we want to multiply them:</p><p> A = \begin{bmatrix} a{11} & a{12} & … & a{1n} \ a{21} & a{22} & … & a{2n} \ … & … & … & … \ a{m1} & a{m2} & … & a_{mn} \end{bmatrix} </p><p></p><p> B = \begin{bmatrix} b{11} & b{12} & … & b{1p} \ b{21} & b{22} & … & b{2p} \ … & … & … & … \ b{n1} & b{n2} & … & b_{np} \end{bmatrix} </p></li><li><p><strong>ResultingMatrix</strong>:TheproductCofmatricesAandBwillbe:</p><p></p></li><li><p><strong>Resulting Matrix</strong>: The product C of matrices A and B will be:</p><p> C = AB = \begin{bmatrix} c{11} & c{12} & … & c{1p} \ c{21} & c{22} & … & c{2p} \ … & … & … & … \ c{m1} & c{m2} & … & c_{mp} \end{bmatrix} </p><p>whereeachelement</p><p>where each elementc_{ij}iscalculatedas:</p><p>is calculated as:</p><p> c{ij} = \sum{k=1}^{n} a{ik} b{kj} </p></li><li><p><strong>ExampleCalculation</strong>:</p><p>Consider:</p><p></p></li><li><p><strong>Example Calculation</strong>:</p><p>Consider:</p><p> A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}, \, B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix} </p></li><li><p>TofindtheproductAB,compute:</p><p></p></li><li><p>To find the product AB, compute:</p><p> C = AB = \begin{bmatrix} (15 + 27) & (16 + 28) \ (35 + 47) & (36 + 48) \end{bmatrix} </p><p>Simplifyingthisgives:</p><p></p><p>Simplifying this gives:</p><p> C = \begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix} </p></li><li><p><strong>PropertiesofMatrixMultiplication</strong>:</p><ol><li><p><strong>NotCommutative</strong>:Generally,</p></li><li><p><strong>Properties of Matrix Multiplication</strong>:</p><ol><li><p><strong>Not Commutative</strong>: Generally,AB \neq BA.</p></li><li><p><strong>Associative</strong>:.</p></li><li><p><strong>Associative</strong>:(AB)C = A(BC).</p></li><li><p><strong>Distributive</strong>:.</p></li><li><p><strong>Distributive</strong>:A(B + C) = AB + AC$$.

Summary
  • Ensure the dimensions are suitable before multiplication and follow the specific rule for calculating the resulting matrix based on summing products of corresponding elements.