Navigation

Back to Blog
Study Strategies

Why Factoring Out Before Integrating Can Wreck Your Integral in Calculus

8 min read
An open notebook with a pen lies on a wooden outdoor table in dappled sunlight, next to a glass of water and loose papers.

You can pull a number out of an integral, but never a piece that still contains the variable you are integrating. Outside the integral sign that variable is stranded, beyond the reach of the bounds, so an integral that should be a number comes out as an expression in xx. Multiply out first, or substitute, then integrate.

Suppose one WeBWorK problem is left on Sunday night: ∫02x(x+1) dx\int_0^2 x(x+1)\,dx. The xx out front looks like clutter, so you slide it outside, integrate what is left, get an answer with an xx in it, and submit.

A Number May Leave the Integral Sign; a Variable May Not

The rule being borrowed here is the constant multiple rule. If ff is integrable on [a,b][a,b] and cc keeps the same value at every point of the interval, then

∫abc⋅f(x) dx=c∫abf(x) dx.\int_a^b c \cdot f(x)\,dx = c \int_a^b f(x)\,dx.

Test it with c=5c = 5: ∫025x dx=5∫02x dx=10\int_0^2 5x\,dx = 5\int_0^2 x\,dx = 10, which direct integration confirms. The same condition governs the indefinite case, ∫c⋅f(x) dx=c∫f(x) dx\int c \cdot f(x)\,dx = c \int f(x)\,dx, where there are no bounds to catch you.

Everything hangs on one word. "Constant" does not mean "the factor out front." It means a quantity that does not change as xx sweeps the interval. As xx runs from 00 to 22, the number 55 stays 55; the quantity xx does not, and nor does x+1x+1, or sin⁡(x)\sin(x), or anything else with an xx in it. The test is not what the factor looks like; it is whether it holds still.

Factoring Out Gives Two Different Answers, So It Cannot Be a Rule

Here is the move carried to the end:

∫02x(x+1) dx=x∫02(x+1) dx=x[12x2+x]02=x (2+2)=4x.\begin{aligned} \int_0^2 x(x+1)\,dx &= x \int_0^2 (x+1)\,dx \\[6pt] &= x \left[ \frac{1}{2}x^2 + x \right]_{0}^{2} \\[6pt] &= x\,(2 + 2) = 4x. \end{aligned}

Stop there. The bounds are numbers, so the integral is a number. The xx inside never takes a value of its own: it runs from 00 to 22 and is used up. The xx now parked out front is a free variable the bounds never reach, so an xx surviving to the final line proves the integration never happened.

Now do the same thing to the other factor:

∫02x(x+1) dx=(x+1)∫02x dx=(x+1)[12x2]02=2(x+1)=2x+2.\int_0^2 x(x+1)\,dx = (x+1)\int_0^2 x\,dx = (x+1)\left[\frac{1}{2}x^2\right]_0^2 = 2(x+1) = 2x+2.

One integral, two shortcuts, two different answers. 4x4x and 2x+22x+2 agree only at x=1x=1; at x=2x=2 one says 88, the other 66. A legitimate step cannot depend on which factor you grabbed. This is not a rule with an exception; it is not a rule.

The Correct Path Ends in a Single Number

Multiply the product out, then integrate term by term:

∫02x(x+1) dx=∫02(x2+x) dx=[x33+x22]02=(83+2)−0=143.\int_0^2 x(x+1)\,dx = \int_0^2 (x^2 + x)\,dx = \left[\frac{x^3}{3} + \frac{x^2}{2}\right]_0^2 = \left(\frac{8}{3} + 2\right) - 0 = \frac{14}{3}.

Check it against the picture: between 00 and 22 the height x(x+1)x(x+1) never exceeds 66, so the area is under 2×6=122 \times 6 = 12, and 143\frac{14}{3}, about 4.674.67, fits. The discarded 4x4x cannot face that check.

Why the Rule You Know Best Is the One That Trips You

The move feels right because it is right nearly everywhere else: pulling a common factor to the front is a reflex built over years of algebra. My own read, as judgment and nothing firmer — the rule was learned; its condition was not.

That shape of failure has been studied, though not in calculus. More than a thousand children in grades two through eight sat a written arithmetic test and reached for proportion where it plainly did not apply[1]. Those errors grew more common as their skill with proportional reasoning grew, peaking around grade five, and a considerable number were still slipping in grade eight[1]. These are children doing word problems, so it is a suggestive parallel, not proof about calculus[1].

Closer to home, undergraduates who had already passed a full year of calculus were asked five questions about integration, and as a group did not show a satisfactory grasp of what it means[2]. The ones who understood the idea were also the ones who carried out the steps well, which is as much as that study can say[2]. A year of correct answers is no guarantee that a picture of the operation came with it.

Experienced calculus students working on pure mathematics and physics problems drew on several mental images of the integral, and adding up many small pieces looked especially useful in multivariable and physics settings[3]. That image also makes the error easy to see — my argument, not the study's. If the integral totals many thin strips, each with its own xx, moving an xx out in front of the whole sum leaves nothing to say which strip it came from.

Substitution Is the Move You Actually Wanted

Sometimes the variable out front is the hinge the problem turns on. Take

∫012ysin⁡(y2) dy.\int_0^1 2y\sin(y^2)\,dy.

The 2y2y depends on yy, so it cannot leave. Let u=y2u = y^2, so du=2y dydu = 2y\,dy; as yy goes from 00 to 11, so does uu, and the integral becomes

∫01sin⁡(u) du=[−cos⁡(u)]01=−cos⁡(1)+cos⁡(0)=1−cos⁡(1)≈0.46.\int_0^1 \sin(u)\,du = \Big[-\cos(u)\Big]_0^1 = -\cos(1) + \cos(0) = 1 - \cos(1) \approx 0.46.

The factor you wanted to discard is what made the substitution work. Sometimes it is the only reason a problem can be finished: ex2e^{x^2} has no antiderivative you can write with the usual functions, so in ∫13xex2 dx\int_1^3 x e^{x^2}\,dx that lone xx is everything.

Explaining the Broken Line Back to Yourself

Showing the broken derivation, and marking where it dies, was deliberate.

In two experiments with students learning probability problems, a wrong solution shown beside a correct one helped learners who already had a good grounding when they moved on to new problems, while those with little background did better from correct solutions alone[4]. A review pooling 40 studies across subjects agreed in part: examples with a mistake in them can help, but how much depends on whether the mistake is explained or highlighted, and how students work with it[5].

So, the exercise. Before you compute ∫13xex2 dx\int_1^3 x e^{x^2}\,dx, say out loud, in a full sentence, why the xx cannot come out front. Then find the substitution that uses it, carry the bounds across, and check you land on 12(e9−e)\frac{1}{2}\left(e^9 - e\right). A review of students learning mathematics found a small lift from prompting them to explain material to themselves, measured straight afterwards; its authors recommend asking learners to explain why a common mistake is wrong[6]. The sentence, not the answer, is what I want you carrying to the next problem.

What the Research Behind This Post Does Not Settle

The mathematics above needs no study behind it; it is proved on the page. The research is here for two narrower questions — why this slip happens, and what helps — and on both it leaves gaps. Nothing cited is about this error: no study tested the constant multiple rule, or what happens when a variable is pulled outside an integral sign[1][2][3]. The closest work measures how well calculus students grasp integration in general[2] and which mental images they use[3]; neither asked whether naming a rule's condition out loud prevents the mistake[2][3]. And the over-reaching finding comes from children doing arithmetic word problems, so it says nothing about how often this slip happens in first-year calculus[1].

The work on learning from wrong examples disagrees with itself: the two experiments found it helped only learners who already had a grounding in the topic[4], while the larger review called the evidence on prior background mixed and asked for more research[5]. So I cannot promise the broken derivation helps someone meeting integrals for the first time[4][5]; if that is you, work the correct path until it is steady, then come back for the wreckage. The explain-it-back exercise has its own hedge: that lift showed up in immediate testing, and the evidence that it lasts, or survives an ordinary classroom, is much weaker[6].

The Check That Takes Three Seconds

Before moving anything across an integral sign, ask whether it changes as the variable runs between the bounds. If it does, it stays. And if the variable is still in your answer, you have not integrated yet.

Summary

  • Only a true constant may leave. Anything containing the variable stays inside the integral.
  • Two shortcuts, two answers. Pulling out xx gives 4x4x; pulling out x+1x+1 gives 2x+22x+2.
  • The real answer is one number. Multiply out first and the integral comes to 143\frac{14}{3}.
  • The research here is thin. Nothing cited tested this exact error in calculus.

References

  1. Van Dooren, W., De Bock, D., Hessels, A., Janssens, D., & Verschaffel, L. (2005). Not Everything Is Proportional: Effects of Age and Problem Type on Propensities for Overgeneralization. Cognition and Instruction, 23(1), 57–86. https://doi.org/10.1207/s1532690xci2301_3
  2. Mahir, N. (2009). Conceptual and procedural performance of undergraduate students in integration. International Journal of Mathematical Education in Science and Technology, 40(2), 201–211. https://doi.org/10.1080/00207390802213591
  3. Jones, S. R. (2013). Understanding the integral: Students’ symbolic forms. The Journal of Mathematical Behavior, 32(2), 122–141. https://doi.org/10.1016/j.jmathb.2012.12.004
  4. Große, C. S., & Renkl, A. (2007). Finding and fixing errors in worked examples: Can this foster learning outcomes?. Learning and Instruction, 17(6), 612–634. https://doi.org/10.1016/j.learninstruc.2007.09.008
  5. Dieterich, S., Rumann, S., & Rodemer, M. (2025). Conditions for Effective Learning from Erroneous Examples: A Systematic Review. Educational Psychology Review, 37(4). https://doi.org/10.1007/s10648-025-10071-x
  6. Rittle-Johnson, B., Loehr, A. M., & Durkin, K. (2017). Promoting self-explanation to improve mathematics learning: A meta-analysis and instructional design principles. ZDM, 49(4), 599–611. https://doi.org/10.1007/s11858-017-0834-z

Need Help With Your Math Course?

Our experienced tutors specialize in first-year university math. Get personalized support to boost your confidence and improve your grades.

Related Posts

Keep reading with closely related study tips and math learning guides.