1
$\begingroup$

Got an exam tomorrow and my head is no longer working. Could someone walk through the integration of this function

$$\int\left(2-\frac x2\right)^2dx$$

I understand integration by parts and stuff like that.

$\endgroup$
2
  • 1
    $\begingroup$ just expand the square $\endgroup$
    – roger
    Commented Jun 2, 2013 at 15:19
  • 1
    $\begingroup$ @Mattis:what are u trying ? $\endgroup$
    – M.H
    Commented Jun 2, 2013 at 15:19

2 Answers 2

3
$\begingroup$

Hint: $\displaystyle \int u'(x)(u(x))^2dx=\dfrac{(u(x))^3}{3}+C$

$\endgroup$
5
  • 1
    $\begingroup$ That's it, all I need. Thanks! $\endgroup$
    – Mattis
    Commented Jun 2, 2013 at 15:21
  • 2
    $\begingroup$ So, try to memorize it. Git will not be with you while taking the exam. ;-) $\endgroup$
    – Mikasa
    Commented Jun 2, 2013 at 15:24
  • 2
    $\begingroup$ @BabakS. Funny ^_^ $\endgroup$
    – Git Gud
    Commented Jun 2, 2013 at 15:25
  • $\begingroup$ @Mattis Remmber that the u(x) need to be linear when you do that. $\endgroup$
    – Ofir Attia
    Commented Jun 2, 2013 at 15:28
  • $\begingroup$ @OfirAttia I don't know what you mean: $$\left( \dfrac{(u(x))^3}{3} +C \right)'=u'(x)(u(x))^2$$. $\endgroup$
    – Git Gud
    Commented Jun 2, 2013 at 15:31
1
$\begingroup$

Sometimes when you've got a hammer, everything looks like nail. i.e. when you've been practicing all the complicated reverse chain rules and integration by parts and substitution, etc. you tend to be madly trying to apply one of these tricks to every problem and miss the much simpler solutions.

In this case, just expand (it's only to the power of two, nothing terrible) and then integrate term by term.

Good luck for the exam!

$\endgroup$
2
  • $\begingroup$ I did, at first, but there are a lot of terms like that in different variations and it becomes hell pretty fast. I have the solution the teacher did, and I want to learn how he did it. $\endgroup$
    – Mattis
    Commented Jun 2, 2013 at 15:25
  • 1
    $\begingroup$ Well actually in this case the "reverse chain rule" will work. To do this, we look at the derivative of what's inside the brackets and see if it's present outside the brackets up to a constant. In this case, this holds, the derivative is simply -1/2. So we can do a "reverse chain rule" i.e. raise the power by one and divide by the new power, but also divide by the -1/2. Try differentiating the answer to see why this works. $\endgroup$
    – john
    Commented Jun 2, 2013 at 15:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .