Function Spaces Made Concrete: Derivatives, Complete Solutions, and Dimension Zero

A beginner-friendly bridge from basic derivatives to Strang's function spaces: why y''=2 has solution x²+cx+d, how this matches particular-plus-nullspace solutions, and why the zero space has dimension zero.

Function Spaces Made Concrete

Strang's discussion of function spaces becomes much easier once the calculus notation is unpacked first.

The main linear-algebra lesson is not differential equations themselves. It is that the ideas of nullspace, basis, dimension, and complete solution also work when the objects in the vector space are functions instead of column vectors.

1. What a derivative means

Suppose

\[ y=x^2. \]

The derivative asks:

How fast is \(y\) changing as \(x\) changes?

The first derivative is written

\[ y'. \]

For

\[ y=x^2, \]

the derivative is

\[ y'=2x. \]

This means the rate of change of \(x^2\) depends on the current value of \(x\).

For example, near \(x=1\), the rate is approximately 2, while near \(x=2\), the rate is approximately 4.

A useful differentiation rule is

\[ x^n \longrightarrow nx^{n-1}. \]

Therefore

\[ x^2\longrightarrow2x. \]

A linear term such as

\[ 3x \]

has derivative

\[ 3, \]

because its rate of change is always 3.

A constant such as

\[ 5 \]

has derivative

\[ 0, \]

because it does not change.

Therefore

\[ y=x^2+3x+5 \]

has first derivative

\[ y'=2x+3. \]

2. What the second derivative means

The second derivative is written

\[ y''. \]

It asks:

How fast is the first derivative itself changing?

Starting with

\[ y=x^2, \]

we get

\[ x^2\longrightarrow2x\longrightarrow2. \]

Therefore

\[ y''=2. \]

For

\[ y=x^2+3x+5, \]

the calculation is

\[ x^2+3x+5 \longrightarrow 2x+3 \longrightarrow 2. \]

So this function also satisfies

\[ y''=2. \]

3. Why many different functions have the same second derivative

Consider

\[ y=x^2+cx+d. \]

Differentiate once:

\[ y'=2x+c. \]

Differentiate again:

\[ y''=2. \]

The \(cx+d\) part disappears after two differentiations:

\[ cx+d \longrightarrow c \longrightarrow 0. \]

Therefore every function of the form

\[ \boxed{y=x^2+cx+d} \]

satisfies

\[ y''=2. \]

4. Particular solution plus nullspace

This is the function-space version of a result already learned for matrix equations.

For

\[ Ax=b, \]

the complete solution is

\[ \boxed{x=x_p+x_n}, \]

where \(x_p\) is one particular solution and \(x_n\) is any vector in the nullspace.

Now consider

\[ y''=2. \]

One particular solution is

\[ y_p=x^2 \]

because

\[ x^2\longrightarrow2x\longrightarrow2. \]

Now consider

\[ y_n=cx+d. \]

Its second derivative is zero:

\[ cx+d\longrightarrow c\longrightarrow0. \]

So \(y_n\) belongs to the nullspace of the second-derivative operator.

Therefore

\[ \boxed{y=y_p+y_n} \]

becomes

\[ \boxed{y=x^2+cx+d}. \]

The structure is therefore exactly parallel:

\[ \boxed{x=x_p+x_n} \]

for matrices, and

\[ \boxed{y=y_p+y_n} \]

for this differential equation.

5. Why y'' = 2 does not form a subspace

A subspace must contain the zero object.

But the zero function satisfies

\[ 0''=0, \]

not

\[ 0''=2. \]

Therefore the solutions of

\[ y''=2 \]

do not form a subspace.

This is analogous to the matrix equation

\[ Ax=b \]

with \(b\neq0\): its solution set generally does not form a subspace.

By contrast,

\[ y''=0 \]

does define a nullspace and therefore a subspace.

6. The nullspace of the second derivative

The functions satisfying

\[ y''=0 \]

are

\[ y=cx+d. \]

Rewrite this as

\[ y=c\,x+d\,1. \]

So every function in the nullspace is a combination of

\[ x \]

and

\[ 1. \]

Therefore

\[ \boxed{\{x,1\}} \]

is a basis for the nullspace of the second derivative.

Since this basis contains two functions,

\[ \boxed{\dim N(D^2)=2}. \]

7. Why Strang also uses sin x and cos x

Strang gives another function space defined by

\[ y''=-y. \]

Two solutions are

\[ \sin x \]

and

\[ \cos x. \]

Their second derivatives are

\[ (\sin x)''=-\sin x \]

and

\[ (\cos x)''=-\cos x. \]

Every solution can be written as

\[ y=c\sin x+d\cos x. \]

So

\[ \boxed{\{\sin x,\cos x\}} \]

is a basis for that solution space, and its dimension is also 2.

The important lesson is not the calculus itself. It is that two completely different spaces can both have dimension 2 because each requires two independent building blocks.

8. Functions can be vectors in the linear-algebra sense

At this stage, the word 'vector' should be understood more broadly.

A vector space can contain ordinary column vectors, matrices, or functions.

The objects may look different, but the same questions remain:

  • Can we add them?
  • Can we multiply them by scalars?
  • Are they independent?
  • What do they span?
  • What is a basis?
  • What is the dimension?

So in a function space, the basis vectors may actually be basis functions.

For example,

\[ \{x,1\} \]

is a basis of one function space, while

\[ \{\sin x,\cos x\} \]

is a basis of another.

9. The zero vector space

Strang closes the section with the smallest possible vector space:

\[ Z=\{0\}. \]

It contains only the zero vector.

It might seem that its basis should be

\[ \{0\}, \]

but that cannot be a basis because a basis must be linearly independent.

The zero vector is automatically dependent because, for example,

\[ 5(0)=0 \]

uses a nonzero coefficient and still produces zero.

Therefore the zero vector cannot appear in a basis.

The basis of the zero space is instead the empty set:

\[ \boxed{\varnothing}. \]

It contains zero basis vectors.

Therefore

\[ \boxed{\dim(Z)=0}. \]

This matches the practical interpretation of dimension:

\[ \boxed{\text{dimension}=\text{number of independent choices needed to specify an object in the space}.} \]

For the zero space there are no choices to make. The only possible vector is already fixed as zero.

Core mental model

For derivatives:

\[ \boxed{y'=\text{rate of change of }y} \]

\[ \boxed{y''=\text{rate of change of that rate}} \]

For the equation

\[ y''=2, \]

one particular solution is

\[ x^2, \]

while every function

\[ cx+d \]

is invisible to the second derivative because it is sent to zero.

Therefore

\[ \boxed{y=x^2+cx+d} \]

is the function-space version of

\[ \boxed{x=x_p+x_n}. \]

And finally:

\[ \boxed{\dim\{0\}=0}. \]


Note metadata

  • Note type: learning-note
  • Subject: learning-notes
  • Source: Introduction to Linear Algebra, 5th Edition — Section 3.4: Independence, Basis and Dimension

Related notes