Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations

Example 7: Curve through (1,1)(1, 1) with x dy=(2x2+1) dxx\,dy = (2x^2+1)\,dx

ExamplesVariables separable, curve through a point · Sections 9.3 and 9.4.1
The question

Find the equation of the curve passing through the point (1,1)(1, 1) whose differential equation is x dy=(2x2+1) dxx\,dy = (2x^2 + 1)\,dx (x≠0)(x \ne 0)⁠.

Exam answer

Since x≠0x \ne 0⁠, the equation can be written as

dy=(2x+1x)dxdy = \left(2x + \frac{1}{x}\right)dx

Integrating both sides,

∫dy=∫(2x+1x)dxy=x2+log⁡∣x∣+C…(i)\begin{aligned} \int dy &= \int\left(2x + \frac{1}{x}\right)dx \\ y &= x^2 + \log|x| + C\quad\ldots(\text{i}) \end{aligned}

The curve passes through (1,1)(1, 1)⁠. Putting x=1x = 1⁠, y=1y = 1 in (i): 1=1+log⁡1+C1 = 1 + \log 1 + C⁠, so C=0C = 0 (as log⁡1=0\log 1 = 0⁠).

∴\therefore The required curve is y=x2+log⁡∣x∣y = x^2 + \log|x| (x>0x > 0 on this curve).

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Dividing by xx leaves dydy on one side and a function of xx alone on the other, so the variables are already separated. Integrating gives a family of curves y=x2+log⁡∣x∣+Cy = x^2 + \log|x| + C⁠, all the same shape, shifted up and down. The point (1,1)(1, 1) picks one of them.

Given, to find, and the plan
Given
x dy=(2x2+1) dxx\,dy = (2x^2 + 1)\,dx with x≠0x \ne 0⁠, that is, xdydx=2x2+1x\frac{dy}{dx} = 2x^2 + 1⁠; the curve passes through (1,1)(1, 1)⁠.
To find
The equation of that curve (a particular solution).
Plan
(1) Divide by xx to separate. (2) Integrate, with one constant. (3) Use (1,1)(1, 1) to find CC⁠. (4) Decide which branch of log⁡∣x∣\log|x| the curve uses. (5) Check by substitution.

Basics you need

1Variables separable

An equation dy=g(x) dxdy = g(x)\,dx is the simplest separable case (h(y)=1h(y) = 1⁠): integrate both sides (Section 9.4.1). Lesson: separate, then integrate

2The log integral

∫1x dx=log⁡∣x∣+C\int\frac{1}{x}\,dx = \log|x| + C for x≠0x \ne 0 (Section 7.2, formula (xii)). Basics: every method ends with an integral

3A curve through a point

"The curve passes through (1,1)(1, 1)" means y=1y = 1 when x=1x = 1⁠: it fixes the constant and gives a particular solution (Section 9.3). Lesson: general and particular solutions

4log⁡1=0\log 1 = 0

Because e0=1e^0 = 1⁠. Basics: e and its rate

Solution

  1. Divide by xx⁠: the variables separate

    Since x≠0x \ne 0⁠, divide both sides of x dy=(2x2+1) dxx\,dy = (2x^2 + 1)\,dx by xx⁠:

    dy=2x2+1x dx=(2x+1x)dx.dy = \frac{2x^2 + 1}{x}\,dx = \left(2x + \frac{1}{x}\right)dx.
    The left side has only dydy and the right side only xx and dxdx⁠: this is the separated form with h(y)=1h(y) = 1⁠. Splitting the fraction term by term, 2x2x=2x\frac{2x^2}{x} = 2x and 1x\frac{1}{x}⁠, turns it into two standard integrals.
    Section 9.4.1: separate, then integrate. Basics: dy = y′ dx
  2. Integrate both sides, with one constant

    ∫dy=∫(2x+1x)dx\int dy = \int\left(2x + \frac{1}{x}\right)dx y=x2+log⁡∣x∣+C…(1)y = x^2 + \log|x| + C\quad\ldots(1)

    Check by differentiating: ddx(x2+log⁡∣x∣)=2x+1x\frac{d}{dx}\left(x^2 + \log|x|\right) = 2x + \frac{1}{x} for x≠0x \ne 0⁠.

    ∫2x dx=x2\int 2x\,dx = x^2 by the power rule, and ∫1x dx=log⁡∣x∣\int\frac1x\,dx = \log|x|⁠; the absolute value makes the formula correct for negative xx too. One constant CC for this first order equation. Equation (1) is the general solution: a family of curves, each a vertical shift of the others.
    Section 7.2, formulas (i) and (xii). Basics: every method ends with an integral
  3. Use the point (1,1)(1, 1) to find CC

    Put x=1x = 1⁠, y=1y = 1 in (1):

    1=12+log⁡∣1∣+C=1+0+C⇒ C=0.\begin{aligned} 1 &= 1^2 + \log|1| + C = 1 + 0 + C \\ \Rightarrow\ C &= 0. \end{aligned}

    So the curve is y=x2+log⁡∣x∣y = x^2 + \log|x|⁠.

    Among all the curves of the family, exactly one passes through (1,1)(1, 1)⁠. Substituting the point gives one equation for the one unknown CC⁠.
    log⁡1=0\log 1 = 0⁠; particular solution, Section 9.3. Basics: one constant, one condition
  4. Which branch is the curve through (1,1)(1, 1)⁠?

    The equation is not defined at x=0x = 0⁠, so a solution curve cannot cross the yy-axis. The curve through (1,1)(1, 1) therefore lives on x>0x > 0⁠, where ∣x∣=x|x| = x⁠:

    y=x2+log⁡x,x>0.y = x^2 + \log x,\quad x > 0.

    The formula y=x2+log⁡∣x∣y = x^2 + \log|x| also has a branch for x<0x < 0⁠. That branch is a separate solution curve that does not pass through (1,1)(1, 1)⁠; the condition at (1,1)(1, 1) says nothing about it.

    X Y X′ Y′ (1, 1) y = x² + log x branch for negative x O
    Slope field of dydx=2x+1x\frac{dy}{dx} = 2x + \frac{1}{x} with equal scales; the slope depends on xx only, so the marks in each column are parallel. The bold curve is y=x2+log⁡xy = x^2 + \log x through (1,1)(1, 1)⁠. The dashed curve is the branch of y=x2+log⁡∣x∣y = x^2 + \log|x| for x<0x < 0⁠.
    The book's answer y=x2+log⁡∣x∣y = x^2 + \log|x| is right, and on the curve through (1,1)(1, 1) it reads y=x2+log⁡xy = x^2 + \log x⁠. Noticing that x=0x = 0 splits the plane explains why the absolute value is harmless here.
    A solution curve follows the slope marks and cannot pass where the equation is undefined. Basics: dy/dx = F(x, y) draws an arrow at every point
  5. Check: substitute back

    For y=x2+log⁡∣x∣y = x^2 + \log|x| (x≠0x \ne 0⁠): dydx=2x+1x\frac{dy}{dx} = 2x + \frac1x⁠, so

    xdydx=x(2x+1x)=2x2+1,x\frac{dy}{dx} = x\left(2x + \frac1x\right) = 2x^2 + 1,

    which is x dy=(2x2+1) dxx\,dy = (2x^2 + 1)\,dx⁠. And at x=1x = 1⁠, y=1+log⁡1=1y = 1 + \log 1 = 1⁠.

    Both the equation and the point are satisfied, so this is the required curve.
    ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x (Section 7.2, formula (xii)). Basics: y′ is the slope
Result

The general solution is y=x2+log⁡∣x∣+Cy = x^2 + \log|x| + C⁠; the point (1,1)(1, 1) gives C=0C = 0⁠. The required curve is y=x2+log⁡∣x∣y = x^2 + \log|x|⁠; the curve through (1,1)(1, 1) is its branch x>0x > 0⁠, where it reads y=x2+log⁡xy = x^2 + \log x⁠. (Textbook answer: y=x2+log⁡∣x∣y = x^2 + \log|x|⁠.)

Check it with numbers

At x=2x = 2⁠: y=4+log⁡2≈4.6931472y = 4 + \log 2 \approx 4.6931472⁠, and the equation gives the slope 2x2+1x=92=4.5\frac{2x^2 + 1}{x} = \frac{9}{2} = 4.5⁠.

The curve itself: y(2.001)≈4.6976480556y(2.001) \approx 4.6976480556 and y(1.999)≈4.6886480555y(1.999) \approx 4.6886480555⁠, so

4.6976480556−4.68864805550.002≈4.50000.\begin{aligned} &\frac{4.6976480556 - 4.6886480555}{0.002} \\ &\approx 4.50000. \end{aligned}
Common mistakes
  1. Integrating 2x2+1x\frac{2x^2 + 1}{x} as a whole instead of splitting it into 2x+1x2x + \frac1x⁠.
  2. Writing log⁡x\log x without the absolute value in the general solution. Use log⁡∣x∣\log|x| there; the point then shows that x>0x > 0 on our curve.
  3. Taking log⁡1=1\log 1 = 1⁠. It is 0, which is why C=0C = 0⁠.
What to take away
  1. "Curve through a point" = particular solution: integrate, add CC⁠, then substitute the point.
  2. When the slope depends on xx only, all solution curves are vertical shifts of each other.
  3. A point where the equation is undefined (here x=0x = 0⁠) cuts the solution curves into separate pieces.

Every fact used, and where it comes from

FactUsed inSource
Separating and integrating both sidesSteps 1, 2Section 9.4.1 (Lesson)
∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n + 1} + C⁠; ∫1x dx=log⁡∣x∣+C\int\frac1x\,dx = \log|x| + CStep 2Section 7.2, formulas (i) and (xii) (Basics)
A particular solution from a given pointStep 3Section 9.3 (Lesson)
log⁡1=0\log 1 = 0Steps 3, 5Chapter 5, Section 5.4 (Basics)
A solution curve stays where the equation makes sense, here x≠0x \ne 0Step 4The condition in the question (Basics)
ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1xStep 5Section 7.2, formula (xii) (Basics)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →