title: Finding solution to Cauchy prob. in Matlab
body: <p>I need some help with finding solution to Cauchy problem in Matlab.
  The problem: 
  y''+10xy = 0, y(0) = 7, y '(0) = 3
  Also I need to plot the graph. 
  I wrote some code but, I'm not sure whether it's correct or not. Particularly in function section.
  Can somebody check it? If it's not correct, where I made a mistake?<br>
  Here is separate function in other .m file:</p>
  
  <pre><code>function dydx = funpr12(x,y) 
      dydx = y(2)+10*x*y 
  end
  </code></pre>
  
  <p>Main:</p>
  
  <pre><code>%% Cauchy problem
  clear all, clc
  xint = [0,5]; % interval
  y0 = [7;3]; % initial conditions
  % numerical solution using ode45
  sol = ode45(@funpr12,xint,y0);
  xx = [0:0.01:5]; % vector of x values
  y = deval(sol,xx); % vector of y values
  plot(xx,y(1,:),'r', 'LineWidth',3)
  legend('y1(x)')
  xlabel('x')
  ylabel('y(x)')
  </code></pre>
  
  <p>I get this graph:</p>
  
  <p><img src="https://i.stack.imgur.com/jZFHY.jpg" alt="Here is the graph"></p>