✦ScienexySCIENCE KNOWLEDGE LIBRARY
reference · SCI-MAT-004-010

Linear Equations and Linear Relationships

Linear equations describe relationships among variables in which each variable appears only to the first power and variables are not multiplied together. Linear relationships are fundamental to algebra and linear algebra because they can be represented using equations, graphs, vectors, and matrices and can be combined into systems of linear equations. A detailed introduction to linear equations and relationships, including their algebraic structure, coefficients, variables, geometric interpretations, homogeneous and nonhomogeneous forms, and distinctions from nonlinear equations.

  • a₁x₁ + a₂x₂ + ⋯ + aₙxₙ = b: General linear equation in n variables.

  • ax + by = c: General linear equation in two variables.

  • y = mx + c: Equation of a straight line in slope-intercept form.

  • y = mx: A linear function through the origin.

  • f(u + v) = f(u) + f(v): Additivity condition for a linear function.

  • f(cu) = cf(u): Homogeneity condition for a linear function.

  • Ax = b: Matrix representation of a system of linear equations.

  • Ax = 0: Homogeneous matrix system.

  • Ax = b, b ≠ 0: A nonhomogeneous system when the right-hand side vector is nonzero.

  • m = (y₂ − y₁)/(x₂ − x₁): Slope between two points with distinct x-coordinates.

  • a₁x₁ + a₂x₂ + ... + aₙxₙ = b

  • a₁x₁ + a₂x₂ + ... + aₙxₙ = 0 (homogeneous equation)

  • Ax = b

  • Ax = 0

  • f(x) = mx (linear function of one real variable)

  • f(x) = mx + c (affine function of one real variable)

  • y = mx + c

  • a₁x₁ + a₂x₂ + ... + aₙxₙ − b = 0

Explanation

A linear equation is an equation in which the variables occur only to the first power, are not multiplied by one another, and do not appear inside nonlinear functions such as sine or exponential functions. A general linear equation in n variables has the form a₁x₁ + a₂x₂ + ⋯ + aₙxₙ = b, where the coefficients and constant belong to a specified scalar field. In two variables, an equation such as 2x + 3y = 6 represents a straight line in the Cartesian plane. In three variables, an equation such as x + 2y − z = 4 represents a plane in three-dimensional space. More generally, a single linear equation in n variables describes a hyperplane when its coefficient vector is nonzero. The word linear has a precise mathematical meaning. A function f between vector spaces is linear if it preserves vector addition and scalar multiplication. Such a function satisfies f(u + v) = f(u) + f(v) and f(cu) = cf(u). In elementary algebra, an equation such as y = mx + c is often called a linear equation because its graph is a straight line. However, as a function of x, f(x) = mx + c is strictly linear in the vector-space sense only when c = 0. When c is nonzero, it is an affine function. This distinction is important in advanced linear algebra. A homogeneous linear equation has a zero right-hand side, such as 2x − y = 0. A nonhomogeneous linear equation has a nonzero or arbitrary right-hand side, such as 2x − y = 5. Homogeneous systems always have at least the zero solution, while nonhomogeneous systems may have no solution, one solution, or infinitely many solutions. Linear equations can be represented using coefficient matrices. A system of equations can be written as Ax = b, where A is the coefficient matrix, x is the vector of unknowns, and b is the constant vector. This representation makes it possible to solve systems using Gaussian elimination, matrix inverses when available, and other linear algebra methods. Linear relationships appear in many applications, including constant-rate models, force equilibrium, circuit analysis, resource allocation, and statistical regression. In real-world situations, data may not follow a perfectly linear relationship. In such cases, a linear model may serve as an approximation over a limited range.

A linear equation describes a relationship among variables in which each variable appears only to the first power and is not multiplied by another variable. In n variables, a general linear equation has the form a₁x₁ + a₂x₂ + ... + aₙxₙ = b, where the coefficients a₁, a₂, ..., aₙ and constant b belong to the chosen scalar field. A collection of linear equations forms a system of linear equations. Linear equations are central to linear algebra because they can be expressed compactly using matrix notation, Ax = b. Their solution sets have important geometric interpretations. In two variables, a nontrivial linear equation usually represents a straight line in the Cartesian plane. In three variables, it represents a plane in three-dimensional space. In higher dimensions, the corresponding solution set is generally a hyperplane when at least one coefficient is nonzero. A homogeneous linear equation has a zero right-hand side, whereas a nonhomogeneous equation has a nonzero right-hand side. The distinction between linear and affine relationships is also important. A linear function must preserve addition and scalar multiplication and therefore maps zero to zero. An affine function may include a constant translation. Consequently, an equation such as y = 2x + 3 describes an affine relationship rather than a linear function in the strict linear-algebraic sense. Linear equations can have no solutions, exactly one solution, or infinitely many solutions depending on their coefficients and consistency.

Variables

  • x, y: Variables in a two-variable equation.

  • x₁, x₂, …, xₙ: Unknown variables in a general linear equation.

  • a, b: Coefficients of variables in a two-variable equation.

  • a₁, a₂, …, aₙ: Coefficients in a general linear equation.

  • c: Constant term or scalar, depending on context.

  • m: Slope of a line.

  • f: A function or mapping.

  • u, v: Vectors in a vector space.

  • A: Coefficient matrix.

  • x: Unknown column vector in a matrix equation.

  • b: Right-hand-side constant vector.

  • x₂ − x₁: Change in the horizontal coordinate.

  • y₂ − y₁: Change in the vertical coordinate.

  • a₁, a₂, ..., aₙ: coefficients of the variables.

  • x₁, x₂, ..., xₙ: unknown variables.

  • b: constant term or right-hand-side value.

  • n: number of variables.

  • A: coefficient matrix of a linear system.

  • x: column vector of unknown variables.

  • b: right-hand-side column vector in matrix notation.

  • m: slope or coefficient in a one-variable affine relationship.

  • c: constant intercept in an affine equation.

  • f: a function describing a mathematical relationship.

Example or application

Consider the equation 2x + 3y = 12. It is a linear equation because both variables occur only to the first power and are not multiplied together. Solving for y gives y = −(2/3)x + 4. Its graph is a straight line with slope −2/3 and vertical intercept 4. The point (3, 2) satisfies the equation because 2(3) + 3(2) = 12. Therefore, (3, 2) lies on the line. The equation can also be interpreted as one linear constraint on two unknown variables.

Consider the equation 2x + 3y = 12. It is linear because x and y each appear only to the first power and are not multiplied together. Some solutions are (0, 4), (3, 2), and (6, 0). Geometrically, these solutions lie on a straight line. In three variables, the equation x + 2y − z = 5 represents a plane in ℝ³. By contrast, x² + y = 5 is nonlinear because x is squared, and xy = 6 is nonlinear because two variables are multiplied. The equation y = 2x + 3 describes an affine relationship because of its nonzero constant term. The equation y = 2x is a linear function because it preserves addition and scalar multiplication and maps zero to zero.

Definition

A linear equation is an equation in which each variable appears only to the first power and variables are not multiplied by one another. A linear relationship is a relationship described by a linear equation or, in the vector-space setting, by a linear transformation that preserves addition and scalar multiplication.

A linear equation in n variables is an equation of the form a₁x₁ + a₂x₂ + ... + aₙxₙ = b, where the coefficients and constant belong to a specified scalar field and the variables appear only to the first power without products between variables. A linear relationship is a relationship governed by a linear mapping or linear expression; an equation with a nonzero constant term may instead describe an affine relationship.

Purpose

The purpose of studying linear equations and linear relationships is to understand how variables can be connected through first-degree equations and how these relationships can be represented algebraically, geometrically, and in matrix form. This knowledge provides the foundation for solving systems of equations, studying linear transformations, and constructing mathematical models of practical situations.

Linear equations provide a systematic way to represent unknown quantities and relationships among variables. They allow complex practical problems to be converted into algebraic models that can be solved using substitution, elimination, matrix operations, and other linear algebra methods. Their predictable structure makes them especially useful for studying systems with multiple variables and constraints.

Importance

Linear equations are important because they provide a simple but powerful way to model relationships among quantities. They are used to describe constant rates, equilibrium conditions, proportional relationships, and many engineering and scientific systems. In linear algebra, they form the basis of matrix equations, vector-space methods, and computational algorithms. Understanding the distinction between a linear equation, an affine equation, and a linear transformation is particularly important for advanced mathematical reasoning.

Linear equations are among the most important mathematical tools because many scientific and practical problems can be approximated or represented using linear relationships. They form the foundation of systems of equations, matrix algebra, linear transformations, and optimization. Their geometric interpretation connects algebraic expressions with lines, planes, and hyperplanes. Understanding homogeneous and nonhomogeneous equations is also essential for studying null spaces, consistency, and the structure of solution sets. Distinguishing strict linear functions from affine functions prevents conceptual errors in higher mathematics and mathematical modeling.

Learning Objectives

  • Define a linear equation and identify its main characteristics.

  • Recognize linear and nonlinear expressions.

  • Write general linear equations in one or more variables.

  • Interpret linear equations geometrically in two and three dimensions.

  • Distinguish homogeneous and nonhomogeneous linear equations.

  • Explain the difference between a linear function and an affine function.

  • Understand the two defining properties of a linear transformation.

  • Represent linear equations using matrix notation.

  • Explain how linear equations form the basis of systems of equations.

  • Recognize real-world situations that can be modeled using linear relationships.

  • Define a linear equation and identify its general algebraic form.

  • Identify variables, coefficients, and constant terms.

  • Recognize valid and invalid forms of linear equations.

  • Explain the relationship between a linear equation and a system of equations.

  • Express linear equations using matrix notation.

  • Distinguish homogeneous and nonhomogeneous equations.

  • Explain the difference between linear and affine functions.

  • Recognize nonlinear expressions involving powers, products, and nonlinear functions.

  • Understand why a linear system can have no solution, one solution, or infinitely many solutions.

  • Recognize scientific and practical applications of linear relationships.

Key Concepts

  • Linear equation: An equation in which each variable has degree one and variables do not multiply one another.

  • Coefficient: A numerical factor multiplying a variable.

  • Constant term: A fixed value independent of the variables.

  • Linear relationship: A relationship represented by a linear equation or linear mapping.

  • Slope: The rate of change of the vertical coordinate with respect to the horizontal coordinate for a nonvertical line.

  • Intercept: The point where a line crosses a coordinate axis.

  • Homogeneous equation: A linear equation whose constant term is zero.

  • Nonhomogeneous equation: A linear equation with a general right-hand-side constant.

  • Linear function: A function preserving addition and scalar multiplication.

  • Affine function: A function consisting of a linear part plus a constant translation.

  • Linear transformation: A linear mapping between vector spaces.

  • Coefficient matrix: A matrix containing the coefficients of a linear system.

  • Matrix equation: A compact representation of a system of linear equations.

  • Hyperplane: A flat affine subset of dimension one less than the ambient finite-dimensional space, when defined by one nontrivial linear equation.

  • Consistency: The property of a system having at least one solution.

  • Term

    Variable

    Explanation

    A symbol representing an unknown or changing quantity in an equation.

  • Term

    Coefficient

    Explanation

    A numerical or scalar factor multiplying a variable. In 3x + 2y = 7, the coefficients are 3 and 2.

  • Term

    Constant term

    Explanation

    A fixed value that does not depend on the variables. It may appear on either side of an equation.

  • Term

    Linear equation

    Explanation

    An equation in which variables occur only to the first power, without products between variables or nonlinear functions of variables.

  • Term

    Homogeneous equation

    Explanation

    A linear equation or system whose right-hand side is zero. Every homogeneous linear system has at least the zero solution.

  • Term

    Nonhomogeneous equation

    Explanation

    A linear equation or system with a nonzero right-hand-side vector. It may have no solution, one solution, or infinitely many solutions.

  • Term

    Linear system

    Explanation

    A collection of linear equations that must be satisfied simultaneously by the same set of variables.

  • Term

    Matrix form

    Explanation

    A compact representation of a linear system as Ax = b, where A is the coefficient matrix, x is the unknown vector, and b is the right-hand-side vector.

  • Term

    Linear function

    Explanation

    A function T satisfying T(u + v) = T(u) + T(v) and T(cv) = cT(v). In particular, it maps zero to zero.

  • Term

    Affine function

    Explanation

    A function consisting of a linear part plus a constant translation. In one variable, it has the form f(x) = mx + c.

  • Term

    Hyperplane

    Explanation

    A flat geometric set of codimension one in a finite-dimensional coordinate space. A nontrivial linear equation in n variables generally defines an (n − 1)-dimensional hyperplane.

  • Term

    Consistency

    Explanation

    A property of a system of equations indicating whether at least one solution exists.

Working Principle

A linear equation expresses a constraint on variables through a weighted sum of those variables. Each coefficient determines how strongly its variable contributes to the equation. In two variables, a nontrivial linear equation represents a straight line; in three variables, it represents a plane. Multiple equations create a system whose solutions satisfy all constraints simultaneously. Writing the system as Ax = b organizes the coefficients into a matrix and the unknowns into a vector. The structure of the coefficient matrix determines whether the system has no solution, one solution, or infinitely many solutions. A linear transformation follows the additional requirements of preserving vector addition and scalar multiplication.

A linear equation combines variables using scalar coefficients and addition. Because variables appear only to the first power and are not multiplied together, the equation has a predictable algebraic and geometric structure. A system of such equations can be assembled into a coefficient matrix and an unknown vector. Matrix multiplication produces the left-hand sides of the equations, while the right-hand-side vector contains their constants. Solving the system means finding a vector that satisfies all equations simultaneously. In a homogeneous system, the zero vector always satisfies the equations. In a nonhomogeneous system, consistency depends on whether the right-hand-side vector belongs to the column space of the coefficient matrix.

Process

To analyze a linear equation, first identify the variables, coefficients, and constant term. Check that every variable appears only to the first power and that no products of variables or nonlinear functions occur. Rearrange the equation into a standard form if necessary. For a two-variable equation, identify its slope and intercept when possible and interpret its graph. For a system, arrange all equations consistently, construct the coefficient matrix and constant vector, and solve using an appropriate method. Finally, substitute the proposed solution into the original equations to verify that every equation is satisfied.

To analyze a linear equation, first identify every variable, coefficient, and constant. Rewrite the equation in standard form if necessary, placing all variable terms on one side and the constant on the other. Check that each variable has exponent one and that no products of variables or nonlinear functions appear. For a system, organize the coefficients into a matrix and the unknowns into a column vector. Use substitution, elimination, row reduction, or matrix methods to solve the system. Verify any proposed solution by substituting it into every original equation. For geometric interpretation, identify the number of variables and consider the dimension of the solution set. Finally, distinguish a homogeneous equation from a nonhomogeneous one and a strictly linear function from an affine function.

Applications

  • Calculating distance, time, and cost relationships under constant-rate assumptions.

  • Modeling constant-speed motion over a fixed time interval.

  • Analyzing electrical circuits using linear relationships among currents and voltages.

  • Representing force equilibrium in mechanical and structural engineering.

  • Modeling supply, demand, and economic relationships over selected ranges.

  • Solving resource-allocation and production problems.

  • Representing geometric lines, planes, and hyperplanes.

  • Constructing linear regression models for data analysis.

  • Solving chemical and physical balance equations when the relationships are linear.

  • Building mathematical models for control systems and engineering applications.

  • Engineering uses linear equations to model electrical circuits, structural forces, and mechanical constraints.

  • Physics uses linear relationships in models involving proportional quantities, equilibrium, and small perturbations.

  • Economics uses linear equations to represent simplified cost, revenue, supply, and demand relationships.

  • Statistics uses systems of linear equations in regression and parameter estimation.

  • Computer graphics uses linear and affine equations to transform and position objects.

  • Chemistry uses systems of linear equations to balance chemical reaction equations and solve stoichiometric relationships.

  • Data science uses linear systems in regression, dimensionality reduction, and numerical computation.

  • Operations research uses linear equations and constraints in optimization models.

  • Network analysis uses linear systems to study flows, potentials, and conservation relationships.

Worked Example

Problem: A company charges a fixed service fee of 20 units and an additional 5 units for every hour of service. Express the total cost as an equation and calculate the cost for 6 hours. Step 1: Let h represent the number of service hours and C represent the total cost. Step 2: The fixed fee is 20, and the hourly charge is 5h. Therefore, C = 5h + 20. Step 3: Substitute h = 6: C = 5(6) + 20 = 30 + 20 = 50. Step 4: Interpret the equation. The coefficient 5 represents the increase in cost for each additional hour, while 20 is the initial cost when h = 0. Step 5: Note that this is an affine relationship rather than a linear function in the strict vector-space sense because it contains a nonzero constant term. The variable-dependent part, 5h, is linear.

Problem: Solve the system 2x + y = 7 and x − y = 2. Solution: 1. Identify the equations and variables: the unknowns are x and y. 2. Add the two equations: (2x + y) + (x − y) = 7 + 2. 3. Simplify: 3x = 9, so x = 3. 4. Substitute x = 3 into x − y = 2: 3 − y = 2, so y = 1. 5. Verify in the first equation: 2(3) + 1 = 7, which is correct. Therefore, the unique solution is (x, y) = (3, 1). Matrix representation: [[2, 1], [1, −1]][x, y]ᵀ = [7, 2]ᵀ. Geometric interpretation: the two equations represent two distinct nonparallel lines, and their intersection is the point (3, 1).

Common Misconceptions

  • Every equation with an equals sign is linear. Equations such as x² + y = 5 and xy = 4 are nonlinear.

  • A variable may appear squared and the equation still be linear. A variable with exponent 2 makes the equation nonlinear.

  • The product of two variables is allowed in a linear equation. A term such as xy is nonlinear.

  • The graph of every linear equation is a straight line. In two variables, a nontrivial first-degree equation represents a line; in three variables it represents a plane.

  • The function y = mx + c is always linear in the strict vector-space sense. It is affine when c is nonzero and linear when c = 0.

  • A homogeneous system has only the zero solution. It always has the zero solution but may also have infinitely many nonzero solutions.

  • Every linear system has exactly one solution. It may have no solution, one solution, or infinitely many solutions.

  • A line's slope and intercept completely describe every possible linear transformation. They describe a line in a particular coordinate setting, not every linear map between vector spaces.

  • A linear model is always an exact description of real-world data. Real data may contain nonlinear effects, measurement errors, and changing conditions.

  • An equation is not linear merely because it contains variables. Powers, products, and nonlinear functions can make it nonlinear.

  • The expression xy is nonlinear because it multiplies two variables.

  • The expression x² is nonlinear because the exponent of the variable is greater than one.

  • A linear equation and a linear system are not the same. A system contains multiple equations that must hold simultaneously.

  • A homogeneous system always has the zero solution, but it may also have nonzero solutions.

  • A nonhomogeneous system does not necessarily have exactly one solution; it can have no solution or infinitely many solutions.

  • In strict linear algebra, f(x) = mx + c with c ≠ 0 is affine rather than linear because f(0) ≠ 0.

  • A linear equation in two variables generally represents a line, but special equations such as 0x + 0y = 0 do not define a unique line.

  • The geometric solution of a system is the intersection of all the corresponding geometric sets, not simply any point on one of them.

  • A linear equation can have a nonzero constant on either side; what matters is the structure of the variable terms.

Practice Questions

  • Define a linear equation and state its main characteristics.

  • Determine whether 3x − 2y = 7 is linear.

  • Explain why x² + 2y = 5 is nonlinear.

  • Find the slope and vertical intercept of 4x + 2y = 8.

  • Distinguish a homogeneous equation from a nonhomogeneous equation.

  • Explain the difference between a linear function and an affine function.

  • Write the system 2x + y = 5 and x − y = 1 in matrix form.

  • Explain the geometric meaning of one linear equation in two variables.

  • Give three real-world examples of relationships that may be modeled linearly.

  • A taxi charges a fixed fee of 30 units and 8 units per kilometre. Write the cost equation and calculate the cost for 10 kilometres.

  • State the two conditions that a linear transformation must satisfy.

  • Question

    Write the general form of a linear equation in three variables.

    Answer

    a₁x₁ + a₂x₂ + a₃x₃ = b, where the coefficients and constant belong to the chosen scalar field.

  • Question

    Is 3x − 2y = 8 a linear equation? Explain.

    Answer

    Yes. Both variables appear only to the first power and are not multiplied together.

  • Question

    Is x² + 2y = 5 linear?

    Answer

    No. The term x² makes the equation nonlinear.

  • Question

    Is xy + 3 = 0 linear?

    Answer

    No. The product xy makes it nonlinear.

  • Question

    What is a homogeneous linear equation?

    Answer

    It is a linear equation whose right-hand side is zero.

  • Question

    Does every homogeneous linear system have a solution?

    Answer

    Yes. The zero vector is always a solution.

  • Question

    Explain the difference between a linear function and an affine function.

    Answer

    A linear function preserves addition and scalar multiplication and maps zero to zero. An affine function is a linear function plus a constant translation.

  • Question

    What is the geometric interpretation of 2x + 3y = 6 in ℝ²?

    Answer

    It represents a straight line in the Cartesian plane.

  • Question

    Write 2x + y = 5 and x − 3y = 4 in matrix form.

    Answer

    A = [[2, 1], [1, −3]], x = [x, y]ᵀ, and b = [5, 4]ᵀ, so Ax = b.

  • Question

    Solve x + y = 5 and x − y = 1.

    Answer

    Adding the equations gives 2x = 6, so x = 3. Substituting gives y = 2. The solution is (3, 2).

Key Takeaway

Linear equations describe first-degree relationships among variables, while linear transformations preserve vector addition and scalar multiplication. Their algebraic, geometric, and matrix representations form the foundation of many problems in linear algebra and applied mathematics.

Linear equations express relationships in which variables appear only to the first power and are combined using scalar multiplication and addition. Systems of linear equations can be represented by Ax = b and studied through algebraic, matrix, and geometric methods. Understanding homogeneous and nonhomogeneous systems, as well as the distinction between linear and affine relationships, is essential for advanced linear algebra and scientific modeling.

Prerequisites

  • Basic algebraic expressions and equations.

  • Understanding of variables, coefficients, and constants.

  • Basic coordinate geometry and graphing.

  • Introduction to vectors and scalars.

  • Familiarity with matrix notation is helpful.

  • Knowledge of real and complex scalars.

  • Basic coordinate geometry.

  • Familiarity with matrices and vectors.

Reference

  • David C. Lay, Steven R. Lay, and Judi J. McDonald, Linear Algebra and Its Applications, Pearson.

  • Gilbert Strang, Introduction to Linear Algebra, Wellesley-Cambridge Press.

  • Howard Anton and Chris Rorres, Elementary Linear Algebra: Applications Version, Wiley.

  • OpenStax, College Algebra, sections on linear equations and functions.

  • Strang, Gilbert. Introduction to Linear Algebra. Wellesley-Cambridge Press.

  • Lay, David C., Steven R. Lay, and Judi J. McDonald. Linear Algebra and Its Applications. Pearson.

  • Axler, Sheldon. Linear Algebra Done Right. Springer.

  • OpenStax. College Algebra, sections on linear equations and systems.

Related Topics

  • Introduction to Linear Algebra

  • Scalars, Vectors and Matrices

  • Coordinate Systems and Vector Representation

  • Systems of Linear Equations

  • Linear Combinations

  • Algebraic and Geometric Approaches to Linear Problems

  • Linear Independence and Dependence

  • Geometric Interpretation of Linear Algebra

Sources and verification

Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.

  • Source verification pending; check an authoritative textbook, university, standards body, or peer-reviewed source.

Suggest a correction or source · More in Linear Algebra