Solution:
Concept: By the chain rule, dxdcos(logx)=−xsin(logx) and dxdsin(logx)=xcos(logx). Multiplying by x before differentiating again keeps the working simple.
To keep the working short, we write y1 for dxdy and y2 for dx2d2y.
Step 1 — Differentiate once.
We apply the chain rule to each term of y=3cos(logx)+4sin(logx):
y1=−x3sin(logx)+x4cos(logx)
Step 2 — Clear the fraction.
We multiply both sides by x:
xy1=−3sin(logx)+4cos(logx)
Step 3 — Differentiate again.
We use the product rule on xy1 on the left and the chain rule on the right:
xy2+y1=−x3cos(logx)−x4sin(logx)
Step 4 — Recognise y on the right.
The right side is −x1[3cos(logx)+4sin(logx)], and the bracket is y:
xy2+y1=−xy
Step 5 — Multiply by x and rearrange.
We multiply both sides by x and move −y to the left:
x2y2+xy1=−y
x2y2+xy1+y=0
Therefore, x2dx2d2y+xdxdy+y=0.