← All 70 questions
Question 9·Trinity College·2025·Standard first-round question - reachable by every candidate, discriminating in whether the filter after differentiating is ever run, and in how far the dimension count and the regularity question are pushed
A first-order equation whose variables cannot be separated: the mirror f'(x) = f(-x) broken open by differentiating once more into a second-order equation with constant coefficients, then filtered back down to a one-dimensional solution space
8-12 minutes at interview pace, longer if the delay-equation generalisation is pursued
Live video, shared whiteboard. Everything under BOARD is written with the pen; everything under SAY is spoken over it, at the same time. Never write a line in silence, and never say a line you have not put on the board.
Find all real-valued functions f(x) that satisfy the equation: f'(x) = f(-x) for all real x.
Answer: f(x)=a(cos⁡x+sin⁡x) for an arbitrary real constant a: a one-dimensional real vector space with basis cos⁡x+sin⁡x, the diagonal A=B inside the two-dimensional family Acos⁡x+Bsin⁡x that the differentiated equation admits

The whiteboard, beat by beat

1 · Orient · beat 1 of 7

Predict the shape of the answer before computing anything

f′(x)=f(−x)(∀x∈ℝ),f:ℝ→ℝ differentiable
prediction: LINE≠plane
f(x)=a(cos⁡x+sin⁡x)
x=0:f′(0)=f(0)
one free number up front
What you say, out loud

This is a first-order equation, so I expect one constant of integration; but it is not separable, because the unknown sits at two arguments at once: the slope at x is tied to the value at minus x. Before computing anything I want to say what kind of object the answer is.

The equation is linear and homogeneous in f: if two functions work, so does any combination of them, and the zero function works. So the answer is not one function but a vector space, and the real question is its dimension. My prediction is one, and the reason is the substitution x equals zero, which forces f prime of zero to equal f of zero: even at the origin the value and the slope are one piece of data, not two.

What would refute the prediction: a function that satisfies the equation but has different value and slope at zero, or two independent directions surviving the substitution, or none at all.

Why this beat exists: Interviewers are listening for hypothesis-first behaviour: name the shape of the answer, name the single free parameter, and name the check that would kill the guess.
2 · Set up the language · beat 2 of 7

Two operators and one anticommutation - plus parity as a spare language

D=ddx,(Mf)(x)=f(−x),M2=I,DM=−MD
Df=Mf
M2=I⇒M eliminable
f=f(x)+f(−x)2⏟E even+f(x)−f(−x)2⏟O odd,Df=E′+O′
What you say, out loud

Let me name the two operations. D is differentiation and M is the mirror, the map that replaces x by minus x. Two facts decide everything: applying the mirror twice is the identity, and differentiation anticommutes with it, because the chain rule hands back a minus sign.

The equation says these two operators agree on f. Compose both sides with M: the right side collapses to f, since M squared is I, and the left side becomes minus D squared f, by the anticommutation. That is the whole trick in one line. But it is legal only once I know I may differentiate twice, which I will come back to rather than assume.

The second language is parity. Every f splits into an even part E and an odd part O, and differentiation swaps parity. I am banking that now, because it gives an independent route later that never mentions a second-order equation.

Why this beat exists: Naming D M equals minus M D and M squared equals I up front turns a computation into a plan; the parity split is deliberately left unused until the stress test.
3 · First decisive move · beat 3 of 7

Differentiate once more and read the equation at minus x

f′(x)=f(−x) ⇒ f′′(x)=−f′(−x)=−f(x)read the equation at −x
f′′+f=0constant coefficients:  f=Acos⁡x+Bsin⁡x
one-way implication only
re-check original on A,B
the mirror test: is f prime (x) the curve f (-x)?x = 0: the mirror line-pi-pi/2pi/2pif prime (-pi/4) = f (pi/4) = sqrt 2navy solid: y = f(x) = cos x + sin xgreen dashes: y = f(-x); brick dots: y = f prime (x)thin grey: decoy cos x and its derivative -sin x48 px per unit on both axes; 161 points, step pi/80
Both axes at 48 px per unit, so the drawn vertical axis x = 0 is the mirror itself: screen_x = 225 + 48x, screen_y = 150 - 48y. Every polyline is drawn from the exact closed form on the 161-point grid x = -pi + k*pi/80, k = 0..160. Navy solid: f(x) = cos x + sin x, whose maximum vertex (pi/4, sqrt 2) is drawn at (262.6991,82.1177) and whose minimum (-3pi/4, -sqrt 2) is drawn at (111.9027,217.8823), with zeros at x = -pi/4 and x = 3pi/4. Green dashes: y = f(-x) = cos x - sin x; brick dots: y = f prime (x) = cos x - sin x. Those two polylines have 161 identical vertex pairs - the largest difference between their drawn y-coordinates is 0.000000 px - which is the answer satisfying the equation, and the marked pair reads f prime (-pi/4) = f (pi/4) = sqrt 2 at screen height 82.12. Thin grey: the decoy g = cos x and its derivative -sin x; g is even, so its mirror is itself and the pair separates by up to sqrt 2 = 1.414214, that is 67.88 px, at x = pi/4 and x = -3pi/4 - the decoy fails exactly where the answer does not.
What you say, out loud

Here is the move the question is built to reward. Differentiate both sides: the left becomes f double prime of x, and the right, by the chain rule, is minus f prime of minus x. Now read the original equation at the point minus x, where it says f prime of minus x equals f of x. Substitute and the minus sign survives: f double prime equals minus f.

That is a second-order equation with constant coefficients, and I know its solutions: A cosine plus B sine, two constants. This is exactly where most people stop and write the wrong answer. Differentiating can only enlarge the solution set. I have shown that every solution of the original equation is of this form, not the converse, so I keep both constants in view and plan to filter.

The picture is what the equation literally says: the slope of the navy curve at a point must equal the height of its own mirror image, so the derivative curve and the mirrored curve have to be one and the same curve. Where those two coincide vertex for vertex, the equation holds; the thin grey pair shows a function for which they visibly do not.

Why this beat exists: The sentence differentiating is one-way is marked far more highly than the algebra, which is standard; awareness of what the algebra does not give is the discriminator.
4 · Execute · beat 4 of 7

Run the filter, then reach the same space by power series

g=Acos⁡x+Bsin⁡x:g′(x)−g(−x)=(B−A)(cos⁡x+sin⁡x)=(B−A)2sin⁡(x+π4)
g′−g(−⋅)≡0⟺B=A
one condition on two constants
route 2: f=∑n≥0anxn,(n+1)an+1=(−1)nan,a1=a0
an=(−1)⌊n/2⌋a0n!⇒f=a0(cos⁡x+sin⁡x),a0=f(0)=A
What you say, out loud

Filter first. For A cosine plus B sine the residual, derivative minus mirror, factors completely: it is B minus A times the quantity cosine plus sine, equivalently B minus A times root two sine of x plus pi over four. For that to vanish as a function and not merely at one point I need B minus A equals zero. The plane of candidates collapses to the line A equals B, one condition on two constants, so the surviving family is A times the quantity cosine plus sine. Dimension one, as predicted.

Now a route that never differentiates the equation. Write f as a power series with coefficients a sub n. Differentiation shifts the coefficients and the mirror only alternates their signs, so equating coefficients gives n plus one times a sub n plus one equals minus one to the n times a sub n. Iterating: a sub n equals minus one to the floor of n over two, times a sub zero, over n factorial, and the first few read one, one, minus one half, minus one sixth, one twenty-fourth, which is exactly the series for cosine plus sine. Both routes hand back the same single constant, and both identify it as f of zero.

Why this beat exists: The two routes share no step: one differentiates the equation, the other only differentiates a series term by term. Checking them against each other coefficient by coefficient is what justifies the word all in the question.
5 · Pin the exact value · beat 5 of 7

Every number in the answer, and exactly one piece of free data

f(x)=a(cos⁡x+sin⁡x)=a2sin⁡(x+π4)=a2cos⁡(x−π4)
f(0)=a,f′(0)=a,f(π4)=a2,f(−3π4)=−a2,f(−π4)=f(3π4)=0
period 2π,amplitude |a|2,zeros x=−π4+kπ,k∈ℤ
free data: a=f(0).
What you say, out loud

Exact values only. For a equals one the maximum is root two, attained at x equals pi over four, the minimum is minus root two at x equals minus three pi over four, and the zeros are at minus pi over four plus k pi. Those come from rewriting cosine plus sine as root two sine of x plus pi over four, not from reading a sketch.

The counting is the real content. A second-order equation would be determined by two numbers, the value and the slope at zero; here the equation itself ties them together, f prime of zero equals f of zero, so exactly one number survives. Prescribing the other is not freedom but contradiction: ask for value two and slope five at the origin and no solution exists at all. Conversely any value a at the origin is realised, uniquely, by a times the quantity cosine plus sine.

Why this beat exists: Marks here are for exact constants and for the sentence the initial slope is not free data. Decimals are acceptable only when labelled as approximations of surds.
6 · Test the claim · beat 6 of 7

Break it on purpose: witnesses, parity, and how much smoothness is really given

witnesses of f′′+f=0 failing it
cos⁡x, sin⁡x, cos⁡x+2sin⁡x, 2cos⁡x−sin⁡x
R(0)=B−A=−1, 1, 1, −3≠0;maxx⁡|R(x)|=2|B−A|=1.414214, 1.414214, 1.414214, 4.242641
third route, parity only: O′=E, E′=−O ⇒ O′′=−O ⇒ O=bsin⁡x, E=bcos⁡x
f∈C1⇒C2⇒⋯⇒C∞
the filter: residual R(x) = f prime (x) - f (minus x)B-A = +1B-A = -1B-A = -33 sqrt 2 = 4.2426-3 sqrt 2navy: B = A, the answer: R is the zero line, all 161 vertices on y = 152x scale 48 px/unit, y scale 26 px/unit
The filter, drawn: screen_x = 225 + 48x and screen_y = 152 - 26y, so heights are read as residual values at 26 px per unit rather than as angles. Each polyline is the exact residual R(x) = g'(x) - g(-x) of g = A cos x + B sin x on the same 161-point grid x = -pi + k*pi/80, and symbolically R(x) = (B - A)(cos x + sin x). Navy: the surviving case B = A, whose residual is identically zero - all 161 drawn vertices sit at height 152.0000, so the answer line and the x-axis coincide. Green (A,B) = (1,0), brick (1,2), slate (2,-1): measured off the drawn paths their peak deviations from that line are 36.77, 36.77 and 110.31 px, that is sqrt 2, sqrt 2 and 3 sqrt 2 = 1.414214, 1.414214 and 4.242641 in data units, so the maximum of |R| equals root two times the absolute value of B minus A; each crosses zero at x = -pi/4 and x = 3pi/4, and R(0) = B - A = -1, 1, -3 exactly.
What you say, out loud

Now I attack my own answer. Four members of the second-order family with A different from B, namely cosine, sine, cosine plus two sine and two cosine minus sine, each fail at x equals zero by exactly B minus A, and the drawn residuals have peak heights root two times the absolute value of B minus A: 1.414, 1.414 and 4.243 for the three plotted pairs. That is the evidence that I did not widen the answer: the enlarged family is visibly too big, and the diagonal A equals B is precisely where the residual dies.

Two further checks. Parity alone, with no second-order equation for f anywhere, gives the same line: the even and odd parts satisfy O prime equals E and E prime equals minus O, so O solves O double prime plus O equals zero and is odd, which kills the cosine and leaves b sine, and then E is forced to be b cosine. Same answer, third time.

And honesty about the hypothesis. The statement only assumes differentiability, but f prime equals f composed with the mirror means the derivative is as smooth as f itself, so bootstrapping gives smoothness of every order; the fact that buys it is that the map taking x to minus x is a smooth change of variable with a smooth inverse. Once f is twice differentiable the differentiation in the first route is legal, and once f solves f double prime plus f equals zero its Taylor remainder is bounded by a constant times t to the k plus one over k factorial, which tends to zero, so the series route was never an extra assumption in disguise.

Why this beat exists: The question says all functions, which is a claim about a space and about completeness. A candidate who never exhibits a single function that fails has not proved that the word all means anything.
7 · Conclude and generalise · beat 7 of 7

Verdict, and what one symbol at a time does to the space

 f(x)=a(cos⁡x+sin⁡x), a∈ℝ dimension 1, basis cos⁡x+sin⁡x
f′=λf(−⋅)→a(cos⁡λx+sin⁡λx) (λ≠0);f′=−f(−⋅)→a(cos⁡x−sin⁡x)
f′=f→aex;f′=f(−⋅)+1→a(cos⁡x+sin⁡x)−1;f′′=f(−⋅)→bsin⁡x+ccosh⁡x
What you say, out loud

Conclusion: the functions are exactly the multiples of the quantity cosine plus sine, that is a line through the origin inside the span of cosine and sine rather than a plane, and the single parameter is the value at zero.

Changing one symbol at a time, all of it computed rather than asserted. A factor lambda in front of the mirror keeps dimension one and rescales the argument; flipping its sign swaps the winner to cosine minus sine; deleting the mirror returns the separable exponential, which is what the syllabus usually asks for. Adding a constant keeps the dimension at one but destroys the vector space, since the answer becomes an affine line that no longer contains zero; and raising the order, asking for f double prime equals f of minus x, grows the space to dimension two, spanned by sine and hyperbolic cosine.

The one change that breaks the method entirely is replacing the mirror by a delay, f prime equals f of x minus one. Then differentiating gives f double prime equals f of x minus two, and the chain never closes, because a shift has no finite order, while the mirror squares to the identity; and a delay equation is only well posed after a whole history function is given, so its solution space is infinite-dimensional. That contrast is the reason this question is answerable at all.

Why this beat exists: Ending on the mirror-versus-delay comparison shows the structural reason the trick works: the substitution x to minus x has order two, which is exactly what makes one extra differentiation close the system.

Where the interviewer pushes next

“Why can the variables not be separated here - what exactly goes wrong?”
What you say, out loud

Separation needs the equation to read g of x times h of f of x equals f prime, one factor depending only on x and one only on the value of f. Here the right side depends on the value of f at a different point, minus x, so no rearrangement puts all the x terms on one side: writing f prime over f of minus x equals one still mixes the two arguments. It is a first-order equation that is not separable, and that is the whole point of the question.

What replaces separation is an operator identity: the mirror has order two, so one more differentiation expresses f double prime in terms of f and the mirror disappears. The cost is that the order goes up, and with it one spurious constant that the original equation then has to reject.

separable would need f′=g(x)h(f(x))
f(−x) uses f at another point
M2=I⇒D eliminates M
price: one extra constant
“Is the initial value problem well posed? What if I prescribe both f(0) and f'(0)?”
What you say, out loud

Half of it. The value at zero may be anything, and then the solution is unique: a equals f of zero gives a times the quantity cosine plus sine. But the slope at zero is not data, it is a consequence, since the equation read at zero is exactly the statement f prime of zero equals f of zero. Prescribe value two and slope five and there is no solution, not even a rough one, because the mismatch is visible at a single point.

That is also the cleanest way to see the dimension count. The second-order equation f double prime plus f equals zero is governed by two numbers, its solution space has dimension two, and the original equation imposes exactly one relation between them, so the answer has dimension one. If I ever get two free constants back, I have solved the differentiated equation and forgotten to filter.

IVP: f′=f(−⋅), f(0)=a ⇒ f=a(cos⁡x+sin⁡x) uniquely
f(0)=2, f′(0)=5: no solution, since f′(0)=f(0) is forced
dim⁡=2 (from f′′+f=0) − 1 (from B=A) = 1
“What if the mirror is replaced by a delay, f'(x) = f(x - 1)?”
What you say, out loud

The method dies and the answer changes kind. Differentiating gives f double prime of x equals f prime of x minus one equals f of x minus two, and so on: the argument keeps sliding, so no finite system is ever reached. The mirror closes in one step precisely because minus x composed with minus x is x again.

Exponentials still give a first solution: f equals e to the mu x needs mu equals e to the minus mu, that is mu times e to the mu equals one, so mu is the Lambert W function at one, about zero point five six seven one four three two nine. But a delay equation is only posed after a history function on the interval from minus one to zero is supplied, so its solution space is infinite-dimensional, a genuinely different world from the one-parameter line here.

f′(x)=f(x−1) ⇒ f′′(x)=f(x−2), f′′′(x)=f(x−3),… never closes
f=eμx: μ=e−μ⟺μeμ=1⟺μ=W(1)=0.5671432904…
delay needs a history on [−1,0]
free functions, not one number

Traps on this question

  • Answering A cos x + B sin x. That is the solution space of the differentiated equation f'' + f = 0, and half of it is spurious: f = cos x has f(0) = 1 but f'(0) = 0, so it fails f'(0) = f(0) at a single point. Differentiation enlarges; only substituting back filters.
  • Trying to separate variables: f'(x) over f(-x) equals one still mixes the two arguments, so nothing cancels. The equation is first order but not separable, and the way out is an extra differentiation, not an integral on both sides.
  • Assuming the solution must be even or odd because f(-x) appears. The derivative of an even function is odd, so a single parity cannot satisfy the equation; the answer cos x + sin x is deliberately neither, and its two halves are locked together by the equation.
  • Claiming two free constants because the second-order equation has two, or one because the equation is first order, without saying which. The equation itself imposes f'(0) = f(0), so exactly one number is free; prescribing value and slope independently gives either a unique solution or no solution at all.
  • Objecting that the equation only says differentiable, so a power-series or twice-differentiated argument is illegal - or, worse, quietly assuming smoothness. The mirror is a smooth change of variable with a smooth inverse, so f' = f composed with minus x makes f as smooth as f itself: differentiability bootstraps to every order, and every solution is automatically analytic. Say the step instead of assuming it.

What gets written on the assessor’s form

  • Reads the equation as a relation between two operators, differentiation and the mirror, predicts that the answer is a vector space, and states the expected dimension and what would refute it before computing.
  • Produces f'' + f = 0 by differentiating and re-substituting the equation read at -x, and explicitly flags that the implication is one-way, so the second-order family must be filtered.
  • Runs the filter exactly: the residual of A cos x + B sin x factors as (B - A)(cos x + sin x), so B = A and the solution space is a line with basis cos x + sin x; states the free data as a = f(0) and notes that f'(0) = f(0) is forced.
  • Supplies a second, independent route (the coefficient recurrence (n+1) a_{n+1} = (-1)^n a_n, giving a_n = (-1)^{floor(n/2)} a_0/n!) and cross-checks it against the first route constant by constant.
  • Proves the word all: exhibits concrete members of the enlarged family that fail (cos x, sin x, cos x + 2 sin x, 2 cos x - sin x, with residual B - A at x = 0), and settles the regularity question - differentiability bootstraps to smoothness because x to minus x is a diffeomorphism.