The tangent at the point (x,y)(x, y) on the curve with equation y=f(x)y = \mathrm{f}(x) passes through the point (a,x)(a, x), where aa is a positive constant and x<ax < a.

  1. (i)

    Write down a differential equation relating dydx\frac{\mathrm{d}y}{\mathrm{d}x}, aa, xx and yy.

  2. (ii)

    Using the substitution y=(a−x)zy = (a - x)z, show that the differential equation can be transformed to

    dzdx=x(a−x)2\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{x}{(a - x)^2}

    By using partial fractions, find the general solution for yy in terms of aa and xx.

  3. (iii)

    Given that the curve y=f(x)y = \mathrm{f}(x) passes through the origin, show that f(x)=(a−x)ln⁡(a−xa)+x\mathrm{f}(x) = (a - x)\ln\left(\frac{a - x}{a}\right) + x.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

6(i)

1. Express the gradient of the tangent using the given points

The gradient of the tangent to the curve at the point (x,y)(x, y) is given by the derivative dydx\frac{\mathrm{d}y}{\mathrm{d}x}.

Since the tangent line also passes through the point (a,x)(a, x), we can calculate its gradient using the two-point formula m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}:
Gradient=x−ya−x\text{Gradient} = \frac{x - y}{a - x}

2. Equate the two expressions to form the differential equation

Equating the two expressions for the gradient gives the differential equation:
dydx=x−ya−x\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{x - y}{a - x}

Answer

dydx=x−ya−x\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{x - y}{a - x}

6(ii)

1. Determine the differential equation from part (i) to establish the starting point.

The tangent at (x,y)(x,y) passes through (a,x)(a,x). The gradient of this tangent is dydx\frac{\mathrm{d}y}{\mathrm{d}x}.
dydx=x−ya−x\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{x - y}{a - x}

2. Differentiate the given substitution $y = (a - x)z$ with respect to $x$.

Using the product rule:
dydx=−z+(a−x)dzdx\frac{\mathrm{d}y}{\mathrm{d}x} = -z + (a - x)\frac{\mathrm{d}z}{\mathrm{d}x}

3. Substitute into the differential equation to show the transformed equation.

Substitute y=(a−x)zy = (a - x)z and dydx\frac{\mathrm{d}y}{\mathrm{d}x} into the differential equation:
−z+(a−x)dzdx=x−(a−x)za−x-z + (a - x)\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{x - (a - x)z}{a - x}
−z+(a−x)dzdx=xa−x−z-z + (a - x)\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{x}{a - x} - z
(a−x)dzdx=xa−x(a - x)\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{x}{a - x}
dzdx=x(a−x)2(shown)\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{x}{(a - x)^2} \quad \text{(shown)}

4. Express the right hand side using partial fractions.

Let x(a−x)2=Aa−x+B(a−x)2\frac{x}{(a - x)^2} = \frac{A}{a - x} + \frac{B}{(a - x)^2}
x=A(a−x)+Bx = A(a - x) + B
Substituting x=ax = a gives B=aB = a.
Comparing coefficients of xx gives −A=1  ⟹  A=−1-A = 1 \implies A = -1.
Thus,
dzdx=−1a−x+a(a−x)2\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{-1}{a - x} + \frac{a}{(a - x)^2}

5. Integrate to find $z$.

z=∫(−1a−x+a(a−x)2) dxz = \int \left( \frac{-1}{a - x} + \frac{a}{(a - x)^2} \right) \,\mathrm{d}x
z=ln⁡(a−x)+aa−x+Cz = \ln(a - x) + \frac{a}{a - x} + C
(Note: Since x<ax < a, a−x>0a - x > 0, so no absolute value is required for the natural logarithm.)

6. Substitute $z$ back to find the general solution for $y$.

Since z=ya−xz = \frac{y}{a - x},
ya−x=ln⁡(a−x)+aa−x+C\frac{y}{a - x} = \ln(a - x) + \frac{a}{a - x} + C
y=(a−x)ln⁡(a−x)+a+C(a−x)y = (a - x)\ln(a - x) + a + C(a - x)
where CC is an arbitrary constant.

Answer

y=(a−x)ln⁡(a−x)+a+C(a−x)y = (a - x)\ln(a - x) + a + C(a - x)

6(iii)

1. First, derive the general solution for $y$ from the differential equation in part (ii).

dzdx=x(a−x)2=−(a−x)+a(a−x)2=−1a−x+a(a−x)2\frac{\mathrm{d}z}{\mathrm{d}x} = \frac{x}{(a - x)^2} = \frac{-(a - x) + a}{(a - x)^2} = -\frac{1}{a - x} + \frac{a}{(a - x)^2}
z=∫(−1a−x+a(a−x)2)dxz = \int \left( -\frac{1}{a - x} + \frac{a}{(a - x)^2} \right) \mathrm{d}x
z=ln⁡(a−x)+aa−x+cz = \ln(a - x) + \frac{a}{a - x} + c
y=(a−x)z=(a−x)ln⁡(a−x)+a+c(a−x)y = (a - x)z = (a - x)\ln(a - x) + a + c(a - x)

2. Use the given initial condition (the origin) to find the constant of integration $c$.

Given that the curve passes through (0,0)(0, 0):
0=(a−0)ln⁡(a−0)+a+c(a−0)0 = (a - 0)\ln(a - 0) + a + c(a - 0)
0=aln⁡(a)+a+ca0 = a\ln(a) + a + ca
Since a>0a > 0, we can divide the equation by aa:
0=ln⁡(a)+1+c0 = \ln(a) + 1 + c
c=−1−ln⁡(a)c = -1 - \ln(a)

3. Substitute $c$ back into the general solution and simplify using logarithm properties to obtain the required expression.

f(x)=(a−x)ln⁡(a−x)+a+(−1−ln⁡(a))(a−x)\mathrm{f}(x) = (a - x)\ln(a - x) + a + (-1 - \ln(a))(a - x)
f(x)=(a−x)ln⁡(a−x)+a−(a−x)−(a−x)ln⁡(a)\mathrm{f}(x) = (a - x)\ln(a - x) + a - (a - x) - (a - x)\ln(a)
f(x)=(a−x)[ln⁡(a−x)−ln⁡(a)]+a−a+x\mathrm{f}(x) = (a - x)[\ln(a - x) - \ln(a)] + a - a + x
f(x)=(a−x)ln⁡(a−xa)+x\mathrm{f}(x) = (a - x)\ln\left(\frac{a - x}{a}\right) + x

Answer

f(x)=(a−x)ln⁡(a−xa)+x\mathrm{f}(x) = (a - x)\ln\left(\frac{a - x}{a}\right) + x

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1The points (x,y)(x,y) on a curve satisfy the equations x=12t2−2tx = \tfrac{1}{2}t^2 - 2t and dydx=12t−1\dfrac{dy}{dx} = \dfrac{1}{2t - 1}…
  2. 2In a large town, the number of people infected by a particular virus tt days after the virus was first discovered is xx…
  3. 3Consider the second order differential equation d2xdt2+adxdt=b,\frac{d^{2}x}{dt^{2}} + a\frac{dx}{dt} = b, where aa and bb are no…
  4. 4A freshly brewed cup of tea, initially at a temperature of 85∘C85^\circ\text{C}, is left out to cool in a room with a room…
  5. 5In a large town, the number of people infected by a particular virus tt days after the virus was first discovered is xx…