help with q25 please. Thanks.

First, I'll make f(x) = sin(px) + cos(px) because this expression shows up quite a lot, and such a substitution makes life a bit easier for us.
Let's apply the first derivative of this f(x) function.
[tex]f(x) = \sin(px)+\cos(px)\\\\f'(x) = \frac{d}{dx}[f(x)]\\\\f'(x) = \frac{d}{dx}[\sin(px)+\cos(px)]\\\\f'(x) = \frac{d}{dx}[\sin(px)]+\frac{d}{dx}[\cos(px)]\\\\f'(x) = p\cos(px)-p\sin(px)\\\\ f'(x) = p(\cos(px)-\sin(px))\\\\[/tex]
Now apply the derivative to that to get the second derivative
[tex]f''(x) = \frac{d}{dx}[f'(x)]\\\\f''(x) = \frac{d}{dx}[p(\cos(px)-\sin(px))]\\\\ f''(x) = p*\left(\frac{d}{dx}[\cos(px)]-\frac{d}{dx}[\sin(px)]\right)\\\\ f''(x) = p*\left(-p\sin(px)-p\cos(px)\right)\\\\ f''(x) = -p^2*\left(\sin(px)+\cos(px)\right)\\\\ f''(x) = -p^2*f(x)\\\\[/tex]
We can see that f '' (x) is just a scalar multiple of f(x). That multiple of course being -p^2.
Keep in mind that we haven't actually found dy/dx yet, or its second derivative counterpart either.
-----------------------------------
Let's compute dy/dx. We'll use f(x) as defined earlier.
[tex]y = \ln\left(\sin(px)+\cos(px)\right)\\\\y = \ln\left(f(x)\right)\\\\\frac{dy}{dx} = \frac{d}{dx}\left[y\right]\\\\\frac{dy}{dx} = \frac{d}{dx}\left[\ln\left(f(x)\right)\right]\\\\\frac{dy}{dx} = \frac{1}{f(x)}*\frac{d}{dx}\left[f(x)\right]\\\\\frac{dy}{dx} = \frac{f'(x)}{f(x)}\\\\[/tex]
Use the chain rule here.
There's no need to plug in the expressions f(x) or f ' (x) as you'll see in the last section below.
Now use the quotient rule to find the second derivative of y
[tex]\frac{d^2y}{dx^2} = \frac{d}{dx}\left[\frac{dy}{dx}\right]\\\\\frac{d^2y}{dx^2} = \frac{d}{dx}\left[\frac{f'(x)}{f(x)}\right]\\\\\frac{d^2y}{dx^2} = \frac{f''(x)*f(x)-f'(x)*f'(x)}{(f(x))^2}\\\\\frac{d^2y}{dx^2} = \frac{f''(x)*f(x)-(f'(x))^2}{(f(x))^2}\\\\[/tex]
If you need a refresher on the quotient rule, then
[tex]\frac{d}{dx}\left[\frac{P}{Q}\right] = \frac{P'*Q - P*Q'}{Q^2}\\\\[/tex]
where P and Q are functions of x.
-----------------------------------
This then means
[tex]\frac{d^2y}{dx^2} + \left(\frac{dy}{dx}\right)^2 + p^2\\\\\frac{f''(x)*f(x)-(f'(x))^2}{(f(x))^2} + \left(\frac{f'(x)}{f(x)}\right)^2 + p^2\\\\\frac{f''(x)*f(x)-(f'(x))^2}{(f(x))^2} +\frac{(f'(x))^2}{(f(x))^2} + p^2\\\\\frac{f''(x)*f(x)-(f'(x))^2+(f'(x))^2}{(f(x))^2} + p^2\\\\\frac{f''(x)*f(x)}{(f(x))^2} + p^2\\\\[/tex]
Note the cancellation of -(f ' (x))^2 with (f ' (x))^2
------------------------------------
Let's then replace f '' (x) with -p^2*f(x)
This allows us to form ( f(x) )^2 in the numerator to cancel out with the denominator.
[tex]\frac{f''(x)*f(x)}{(f(x))^2} + p^2\\\\\frac{-p^2*f(x)*f(x)}{(f(x))^2} + p^2\\\\\frac{-p^2*(f(x))^2}{(f(x))^2} + p^2\\\\-p^2 + p^2\\\\0\\\\[/tex]
So this concludes the proof that [tex]\frac{d^2y}{dx^2} + \left(\frac{dy}{dx}\right)^2 + p^2 = 0\\\\[/tex] when [tex]y = \ln\left(\sin(px)+\cos(px)\right)\\\\[/tex]
Side note: This is an example of showing that the given y function is a solution to the given second order linear differential equation.