Skip to main content

Variable coefficient

A variable coefficient is a coefficient that depends on the independent variable instead of staying constant. In Linear Algebra and Differential Equations, that usually means terms like p(x) and q(x) in a differential equation.

Last updated July 2026•Fiveable Content Team

What is variable coefficient?

A variable coefficient is a number in an equation that is not actually constant, because it changes with the variable. In Linear Algebra and Differential Equations, you usually see this in differential equations, where the coefficient is a function like p(x), q(x), or a power of x rather than a fixed number.

A standard example is y'' + p(x)y' + q(x)y = 0. Here, the coefficients in front of y' and y depend on x, so the equation behaves differently at different x-values. That is very different from a constant coefficient equation like y'' + 3y' + 2y = 0, where the same numbers apply everywhere.

Why does that matter? Because constant coefficient equations often have a standard routine, usually based on the characteristic equation. Once the coefficients vary with x, that routine may no longer work. The equation can still be linear, but the changing coefficients can block the simple exponential-form guesses that work so nicely in the constant case.

A classic family with variable coefficients is the Cauchy-Euler equation, where the powers of x line up with the derivative order, such as x^2y'' + axy' + by = 0. The coefficients are variable, but the equation has a pattern that makes substitution possible. That is why this topic shows up right around methods like change of variables and substitution method.

One common mistake is to think “variable coefficient” means the equation is nonlinear. It does not. The equation can still be linear as long as y and its derivatives appear only to the first power and are not multiplied together. The coefficients are what vary, not the structure of linearity. Another easy slip is missing the independent variable: a coefficient like p(x) is variable because it changes with x, not because y itself is changing.

Why variable coefficient matters in Linear Algebra and Differential Equations

Variable coefficients show up whenever the model changes across the input, which is a big reason differential equations feel more realistic than algebraic formulas. If the coefficient depends on x, the equation can represent a process where the system behaves one way near one value of x and another way elsewhere.

In this course, that changes how you choose a solving method. With constant coefficients, you may go straight to the characteristic equation. With variable coefficients, you often need a special pattern, a substitution, or a series approach. So spotting the coefficient type is one of the first moves in solving the problem correctly.

This term also connects directly to Cauchy-Euler equations, one of the main special cases in the differential equations unit. Those equations look messy at first because the coefficients change with x, but their structure is regular enough that you can transform them into a constant coefficient equation. If you miss that structure, you can waste time trying the wrong technique.

Variable coefficients also show up in interpretation questions. You may be asked to identify whether an equation is linear, whether it has constant or variable coefficients, or which method fits best. That means the term is not just vocabulary, it is a setup signal for the solution strategy you use next.

Keep studying Linear Algebra and Differential Equations Unit 9

Official unit cheatsheet

open one-pager

How variable coefficient connects across the course

Linear Differential Equation

A linear differential equation can still have variable coefficients. The linear part tells you that y and its derivatives appear only to the first power and are not multiplied together, while the coefficients tell you whether the equation is constant or changing with x. That distinction matters because linearity and coefficient type affect different parts of the solution process.

Characteristic Equation

The characteristic equation is the fast method for many constant coefficient differential equations. Variable coefficients usually break that shortcut, so seeing a changing coefficient is a clue that the characteristic equation may not apply directly. In some special forms, like after a substitution, you may recover a constant coefficient equation and use the characteristic equation then.

Change of Variables

Change of variables is a common way to handle variable coefficients, especially in Cauchy-Euler equations. The idea is to rewrite the equation in a new variable so the changing coefficient pattern becomes simpler. This is one of the main reasons variable coefficient equations are studied with transformation techniques instead of only direct guessing.

Power Series Solution

Power series solutions become useful when variable coefficients make an equation hard to solve with elementary methods. Instead of trying to force a closed-form answer, you build the solution as a series and match coefficients term by term. This is a standard fallback when the coefficient pattern is too complicated for the usual methods.

Is variable coefficient on the Linear Algebra and Differential Equations exam?

A problem set or quiz question will usually ask you to identify whether a differential equation has variable coefficients, then choose the right method. You might be given something like x^2y'' + 3xy' - 4y = 0 and need to recognize that the coefficients depend on x, which points toward the Cauchy-Euler setup.

You may also need to explain why the characteristic equation method does not work right away, or show how a substitution changes the equation into one with constant coefficients. If the class includes written explanations, be ready to name the coefficients and say exactly which terms vary with the independent variable. That kind of identification is often the first step before solving.

Variable coefficient vs constant coefficient

Variable coefficient means the coefficient changes with the independent variable, like p(x) or x^2. Constant coefficient means the coefficient is a fixed number, like 3 or -7. Students mix these up because both can appear in linear differential equations, but they usually lead to different solution methods.

Key things to remember about variable coefficient

  • A variable coefficient depends on the independent variable, usually x, instead of staying fixed.

  • In differential equations, variable coefficients often change the solving method you use.

  • A differential equation can still be linear even when its coefficients vary with x.

  • Cauchy-Euler equations are a major example of variable coefficient equations in this course.

  • Spotting variable coefficients early helps you choose between characteristic equations, substitutions, and series methods.

Frequently asked questions about variable coefficient

What is variable coefficient in Linear Algebra and Differential Equations?

It is a coefficient that changes with the variable, usually x, instead of being a fixed number. In differential equations, you often see this as p(x), q(x), or x^n in front of derivatives. That change matters because it affects which solution methods work.

Is a variable coefficient differential equation still linear?

Yes, it can be linear. Linear means the unknown function and its derivatives appear only to the first power and are not multiplied together. The coefficient type is separate from linearity, so a differential equation can be linear even when its coefficients depend on x.

What is a common example of variable coefficients?

The Cauchy-Euler form is the classic example, such as x^2y'' + axy' + by = 0. The coefficients in front of y'' and y' change with x, but the equation has a pattern that lets you solve it with a substitution. That makes it one of the first special cases students learn.

How do you know if a problem has variable coefficients?

Look at the terms multiplying y, y', y'', and higher derivatives. If any of those coefficients include x or another independent variable, the coefficients are variable. If they are just numbers, the equation has constant coefficients instead.