You can get a one and the same name affidavit duly notarised in India stating that your name Rakesh and Rakesh Upendra Patil are one and the same.
If you are likely to use this document in a foreign country, you may get this document apostilled by Ministry of Home affairs.
Once apostilled, this affidavit becomes legally valid internationally.
If you are currently in Germany, you can directly execute the same affidavit at the Indian Embassy or Consulate there.
They’ll attest the declaration, and you can use it for your child’s VISA or passport application and for any foreign authority verifying your name identity.
This is often simpler than doing it in India because the embassy’s attestation automatically carries international validity.